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

package com.azure.resourcemanager.resourceconnector.implementation;

import com.azure.resourcemanager.resourceconnector.fluent.models.ApplianceListCredentialResultsInner;
import com.azure.resourcemanager.resourceconnector.models.ApplianceCredentialKubeconfig;
import com.azure.resourcemanager.resourceconnector.models.ApplianceListCredentialResults;
import com.azure.resourcemanager.resourceconnector.models.HybridConnectionConfig;
import java.util.Collections;
import java.util.List;

public final class ApplianceListCredentialResultsImpl implements ApplianceListCredentialResults {
    private ApplianceListCredentialResultsInner innerObject;

    private final com.azure.resourcemanager.resourceconnector.AppliancesManager serviceManager;

    ApplianceListCredentialResultsImpl(
        ApplianceListCredentialResultsInner innerObject,
        com.azure.resourcemanager.resourceconnector.AppliancesManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

    public HybridConnectionConfig hybridConnectionConfig() {
        return this.innerModel().hybridConnectionConfig();
    }

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

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

    private com.azure.resourcemanager.resourceconnector.AppliancesManager manager() {
        return this.serviceManager;
    }
}
