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

package com.azure.resourcemanager.hybridcontainerservice.implementation;

import com.azure.resourcemanager.hybridcontainerservice.fluent.models.OrchestratorVersionProfileListResultInner;
import com.azure.resourcemanager.hybridcontainerservice.models.OrchestratorVersionProfile;
import com.azure.resourcemanager.hybridcontainerservice.models.OrchestratorVersionProfileListResult;
import java.util.Collections;
import java.util.List;

public final class OrchestratorVersionProfileListResultImpl implements OrchestratorVersionProfileListResult {
    private OrchestratorVersionProfileListResultInner innerObject;

    private final com.azure.resourcemanager.hybridcontainerservice.HybridContainerServiceManager serviceManager;

    OrchestratorVersionProfileListResultImpl(
        OrchestratorVersionProfileListResultInner innerObject,
        com.azure.resourcemanager.hybridcontainerservice.HybridContainerServiceManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

    public String id() {
        return this.innerModel().id();
    }

    public String name() {
        return this.innerModel().name();
    }

    public String type() {
        return this.innerModel().type();
    }

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

    private com.azure.resourcemanager.hybridcontainerservice.HybridContainerServiceManager manager() {
        return this.serviceManager;
    }
}
