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

package com.azure.resourcemanager.devspaces.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Contains information used to connect to a Kubernetes cluster. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "instanceType")
@JsonTypeName("Kubernetes")
@Fluent
public final class KubernetesConnectionDetails extends OrchestratorSpecificConnectionDetails {
    /*
     * Gets the kubeconfig for the cluster.
     */
    @JsonProperty(value = "kubeConfig")
    private String kubeConfig;

    /** Creates an instance of KubernetesConnectionDetails class. */
    public KubernetesConnectionDetails() {
    }

    /**
     * Get the kubeConfig property: Gets the kubeconfig for the cluster.
     *
     * @return the kubeConfig value.
     */
    public String kubeConfig() {
        return this.kubeConfig;
    }

    /**
     * Set the kubeConfig property: Gets the kubeconfig for the cluster.
     *
     * @param kubeConfig the kubeConfig value to set.
     * @return the KubernetesConnectionDetails object itself.
     */
    public KubernetesConnectionDetails withKubeConfig(String kubeConfig) {
        this.kubeConfig = kubeConfig;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    @Override
    public void validate() {
        super.validate();
    }
}
