Class ManagedClusterServicePrincipalProfile
java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterServicePrincipalProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterServicePrincipalProfile>
public final class ManagedClusterServicePrincipalProfile
extends Object
implements com.azure.json.JsonSerializable<ManagedClusterServicePrincipalProfile>
Information about a service principal identity for the cluster to use for manipulating Azure APIs.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterServicePrincipalProfile class. -
Method Summary
Modifier and TypeMethodDescriptionclientId()Get the clientId property: The ID for the service principal.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterServicePrincipalProfile from the JsonReader.secret()Get the secret property: The secret password associated with the service principal in plain text.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withClientId(String clientId) Set the clientId property: The ID for the service principal.withSecret(String secret) Set the secret property: The secret password associated with the service principal in plain text.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagedClusterServicePrincipalProfile
public ManagedClusterServicePrincipalProfile()Creates an instance of ManagedClusterServicePrincipalProfile class.
-
-
Method Details
-
clientId
Get the clientId property: The ID for the service principal.- Returns:
- the clientId value.
-
withClientId
Set the clientId property: The ID for the service principal.- Parameters:
clientId- the clientId value to set.- Returns:
- the ManagedClusterServicePrincipalProfile object itself.
-
secret
Get the secret property: The secret password associated with the service principal in plain text.- Returns:
- the secret value.
-
withSecret
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedClusterServicePrincipalProfile>- Throws:
IOException
-
fromJson
public static ManagedClusterServicePrincipalProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedClusterServicePrincipalProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedClusterServicePrincipalProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ManagedClusterServicePrincipalProfile.
-