Class ManagedClusterServicePrincipalProfile
- java.lang.Object
-
- com.azure.resourcemanager.containerservice.models.ManagedClusterServicePrincipalProfile
-
public final class ManagedClusterServicePrincipalProfile extends Object
Information about a service principal identity for the cluster to use for manipulating Azure APIs.
-
-
Constructor Summary
Constructors Constructor Description ManagedClusterServicePrincipalProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclientId()Get the clientId property: The ID for the service principal.Stringsecret()Get the secret property: The secret password associated with the service principal in plain text.voidvalidate()Validates the instance.ManagedClusterServicePrincipalProfilewithClientId(String clientId)Set the clientId property: The ID for the service principal.ManagedClusterServicePrincipalProfilewithSecret(String secret)Set the secret property: The secret password associated with the service principal in plain text.
-
-
-
Method Detail
-
clientId
public String clientId()
Get the clientId property: The ID for the service principal.- Returns:
- the clientId value.
-
withClientId
public ManagedClusterServicePrincipalProfile withClientId(String clientId)
Set the clientId property: The ID for the service principal.- Parameters:
clientId- the clientId value to set.- Returns:
- the ManagedClusterServicePrincipalProfile object itself.
-
secret
public String secret()
Get the secret property: The secret password associated with the service principal in plain text.- Returns:
- the secret value.
-
withSecret
public ManagedClusterServicePrincipalProfile withSecret(String secret)
Set the secret property: The secret password associated with the service principal in plain text.- Parameters:
secret- the secret value to set.- Returns:
- the ManagedClusterServicePrincipalProfile object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-