UserAssignedIdentity Class

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

Implements

public class UserAssignedIdentity
implements JsonSerializable<UserAssignedIdentity>

Details about a user assigned identity.

Constructor Summary

Constructor Description
UserAssignedIdentity()

Creates an instance of UserAssignedIdentity class.

Method Summary

Modifier and Type Method and Description
String clientId()

Get the clientId property: The client ID of the user assigned identity.

static UserAssignedIdentity fromJson(JsonReader jsonReader)

Reads an instance of UserAssignedIdentity from the JsonReader.

String objectId()

Get the objectId property: The object ID of the user assigned identity.

String resourceId()

Get the resourceId property: The resource ID of the user assigned identity.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

UserAssignedIdentity withClientId(String clientId)

Set the clientId property: The client ID of the user assigned identity.

UserAssignedIdentity withObjectId(String objectId)

Set the objectId property: The object ID of the user assigned identity.

UserAssignedIdentity withResourceId(String resourceId)

Set the resourceId property: The resource ID of the user assigned identity.

Methods inherited from java.lang.Object

Constructor Details

UserAssignedIdentity

public UserAssignedIdentity()

Creates an instance of UserAssignedIdentity class.

Method Details

clientId

public String clientId()

Get the clientId property: The client ID of the user assigned identity.

Returns:

the clientId value.

fromJson

public static UserAssignedIdentity fromJson(JsonReader jsonReader)

Reads an instance of UserAssignedIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of UserAssignedIdentity 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 UserAssignedIdentity.

objectId

public String objectId()

Get the objectId property: The object ID of the user assigned identity.

Returns:

the objectId value.

resourceId

public String resourceId()

Get the resourceId property: The resource ID of the user assigned identity.

Returns:

the resourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withClientId

public UserAssignedIdentity withClientId(String clientId)

Set the clientId property: The client ID of the user assigned identity.

Parameters:

clientId - the clientId value to set.

Returns:

the UserAssignedIdentity object itself.

withObjectId

public UserAssignedIdentity withObjectId(String objectId)

Set the objectId property: The object ID of the user assigned identity.

Parameters:

objectId - the objectId value to set.

Returns:

the UserAssignedIdentity object itself.

withResourceId

public UserAssignedIdentity withResourceId(String resourceId)

Set the resourceId property: The resource ID of the user assigned identity.

Parameters:

resourceId - the resourceId value to set.

Returns:

the UserAssignedIdentity object itself.

Applies to