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

package com.azure.resourcemanager.kubernetesconfiguration.implementation;

import com.azure.core.management.SystemData;
import com.azure.resourcemanager.kubernetesconfiguration.fluent.models.SourceControlConfigurationInner;
import com.azure.resourcemanager.kubernetesconfiguration.models.ComplianceStatus;
import com.azure.resourcemanager.kubernetesconfiguration.models.HelmOperatorProperties;
import com.azure.resourcemanager.kubernetesconfiguration.models.OperatorScopeType;
import com.azure.resourcemanager.kubernetesconfiguration.models.OperatorType;
import com.azure.resourcemanager.kubernetesconfiguration.models.ProvisioningStateType;
import com.azure.resourcemanager.kubernetesconfiguration.models.SourceControlConfiguration;
import java.util.Collections;
import java.util.Map;

public final class SourceControlConfigurationImpl implements SourceControlConfiguration {
    private SourceControlConfigurationInner innerObject;

    private final com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager serviceManager;

    SourceControlConfigurationImpl(
        SourceControlConfigurationInner innerObject,
        com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

    public SystemData systemData() {
        return this.innerModel().systemData();
    }

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

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

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

    public OperatorType operatorType() {
        return this.innerModel().operatorType();
    }

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

    public Map<String, String> configurationProtectedSettings() {
        Map<String, String> inner = this.innerModel().configurationProtectedSettings();
        if (inner != null) {
            return Collections.unmodifiableMap(inner);
        } else {
            return Collections.emptyMap();
        }
    }

    public OperatorScopeType operatorScope() {
        return this.innerModel().operatorScope();
    }

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

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

    public Boolean enableHelmOperator() {
        return this.innerModel().enableHelmOperator();
    }

    public HelmOperatorProperties helmOperatorProperties() {
        return this.innerModel().helmOperatorProperties();
    }

    public ProvisioningStateType provisioningState() {
        return this.innerModel().provisioningState();
    }

    public ComplianceStatus complianceStatus() {
        return this.innerModel().complianceStatus();
    }

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

    private com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager manager() {
        return this.serviceManager;
    }
}
