ManagedClusterServicePrincipalProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.ManagedClusterServicePrincipalProfile

Implements

public final class ManagedClusterServicePrincipalProfile
implements JsonSerializable<ManagedClusterServicePrincipalProfile>

Information about a service principal identity for the cluster to use for manipulating Azure APIs.

Constructor Summary

Constructor Description
ManagedClusterServicePrincipalProfile()

Creates an instance of ManagedClusterServicePrincipalProfile class.

Method Summary

Modifier and Type Method and Description
String clientId()

Get the clientId property: The ID for the service principal.

static ManagedClusterServicePrincipalProfile fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterServicePrincipalProfile from the JsonReader.

String secret()

Get the secret property: The secret password associated with the service principal in plain text.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedClusterServicePrincipalProfile withClientId(String clientId)

Set the clientId property: The ID for the service principal.

ManagedClusterServicePrincipalProfile withSecret(String secret)

Set the secret property: The secret password associated with the service principal in plain text.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterServicePrincipalProfile

public ManagedClusterServicePrincipalProfile()

Creates an instance of ManagedClusterServicePrincipalProfile class.

Method Details

clientId

public String clientId()

Get the clientId property: The ID for the service principal.

Returns:

the clientId value.

fromJson

public static ManagedClusterServicePrincipalProfile fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

secret

public String secret()

Get the secret property: The secret password associated with the service principal in plain text.

Returns:

the secret value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to