ManagedIdentity Class

public final class ManagedIdentity
extends IdentityConfiguration

Managed identity configuration.

Constructor Summary

Constructor Description
ManagedIdentity()

Creates an instance of ManagedIdentity class.

Method Summary

Modifier and Type Method and Description
UUID clientId()

Get the clientId property: Specifies a user-assigned identity by client ID.

static ManagedIdentity fromJson(JsonReader jsonReader)

Reads an instance of ManagedIdentity from the JsonReader.

IdentityConfigurationType identityType()

Get the identityType property: [Required] Specifies the type of identity framework.

UUID objectId()

Get the objectId property: Specifies a user-assigned identity by object ID.

String resourceId()

Get the resourceId property: Specifies a user-assigned identity by ARM resource ID.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedIdentity withClientId(UUID clientId)

Set the clientId property: Specifies a user-assigned identity by client ID.

ManagedIdentity withObjectId(UUID objectId)

Set the objectId property: Specifies a user-assigned identity by object ID.

ManagedIdentity withResourceId(String resourceId)

Set the resourceId property: Specifies a user-assigned identity by ARM resource ID.

Methods inherited from IdentityConfiguration

Methods inherited from java.lang.Object

Constructor Details

ManagedIdentity

public ManagedIdentity()

Creates an instance of ManagedIdentity class.

Method Details

clientId

public UUID clientId()

Get the clientId property: Specifies a user-assigned identity by client ID. For system-assigned, do not set this field.

Returns:

the clientId value.

fromJson

public static ManagedIdentity fromJson(JsonReader jsonReader)

Reads an instance of ManagedIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedIdentity if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ManagedIdentity.

identityType

public IdentityConfigurationType identityType()

Get the identityType property: [Required] Specifies the type of identity framework.

Overrides:

ManagedIdentity.identityType()

Returns:

the identityType value.

objectId

public UUID objectId()

Get the objectId property: Specifies a user-assigned identity by object ID. For system-assigned, do not set this field.

Returns:

the objectId value.

resourceId

public String resourceId()

Get the resourceId property: Specifies a user-assigned identity by ARM resource ID. For system-assigned, do not set this field.

Returns:

the resourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ManagedIdentity.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

ManagedIdentity.validate()

withClientId

public ManagedIdentity withClientId(UUID clientId)

Set the clientId property: Specifies a user-assigned identity by client ID. For system-assigned, do not set this field.

Parameters:

clientId - the clientId value to set.

Returns:

the ManagedIdentity object itself.

withObjectId

public ManagedIdentity withObjectId(UUID objectId)

Set the objectId property: Specifies a user-assigned identity by object ID. For system-assigned, do not set this field.

Parameters:

objectId - the objectId value to set.

Returns:

the ManagedIdentity object itself.

withResourceId

public ManagedIdentity withResourceId(String resourceId)

Set the resourceId property: Specifies a user-assigned identity by ARM resource ID. For system-assigned, do not set this field.

Parameters:

resourceId - the resourceId value to set.

Returns:

the ManagedIdentity object itself.

Applies to