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

package com.azure.resourcemanager.containerservicefleet.implementation;

import com.azure.resourcemanager.containerservicefleet.fluent.models.FleetCredentialResultsInner;
import com.azure.resourcemanager.containerservicefleet.models.FleetCredentialResult;
import com.azure.resourcemanager.containerservicefleet.models.FleetCredentialResults;
import java.util.Collections;
import java.util.List;

public final class FleetCredentialResultsImpl implements FleetCredentialResults {
    private FleetCredentialResultsInner innerObject;

    private final com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager serviceManager;

    FleetCredentialResultsImpl(
        FleetCredentialResultsInner innerObject,
        com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

    private com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager() {
        return this.serviceManager;
    }
}
