Class KubernetesConnectionDetails
java.lang.Object
com.azure.resourcemanager.devspaces.models.OrchestratorSpecificConnectionDetails
com.azure.resourcemanager.devspaces.models.KubernetesConnectionDetails
Contains information used to connect to a Kubernetes cluster.
-
Constructor Summary
ConstructorDescriptionCreates an instance of KubernetesConnectionDetails class. -
Method Summary
Modifier and TypeMethodDescriptionGet the kubeConfig property: Gets the kubeconfig for the cluster.void
validate()
Validates the instance.withKubeConfig
(String kubeConfig) Set the kubeConfig property: Gets the kubeconfig for the cluster.
-
Constructor Details
-
KubernetesConnectionDetails
public KubernetesConnectionDetails()Creates an instance of KubernetesConnectionDetails class.
-
-
Method Details
-
kubeConfig
Get the kubeConfig property: Gets the kubeconfig for the cluster.- Returns:
- the kubeConfig value.
-
withKubeConfig
Set the kubeConfig property: Gets the kubeconfig for the cluster.- Parameters:
kubeConfig
- the kubeConfig value to set.- Returns:
- the KubernetesConnectionDetails object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classOrchestratorSpecificConnectionDetails
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-