// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.automation.implementation;

import com.azure.resourcemanager.automation.fluent.models.NodeCountsInner;
import com.azure.resourcemanager.automation.models.NodeCount;
import com.azure.resourcemanager.automation.models.NodeCounts;
import java.util.Collections;
import java.util.List;

public final class NodeCountsImpl implements NodeCounts {
    private NodeCountsInner innerObject;

    private final com.azure.resourcemanager.automation.AutomationManager serviceManager;

    NodeCountsImpl(NodeCountsInner innerObject, com.azure.resourcemanager.automation.AutomationManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

    public List<NodeCount> value() {
        List<NodeCount> inner = this.innerModel().value();
        if (inner != null) {
            return Collections.unmodifiableList(inner);
        } else {
            return Collections.emptyList();
        }
    }

    public Integer totalCount() {
        return this.innerModel().totalCount();
    }

    public NodeCountsInner innerModel() {
        return this.innerObject;
    }

    private com.azure.resourcemanager.automation.AutomationManager manager() {
        return this.serviceManager;
    }
}
