ApplicationUserAssignedIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.servicefabric.models.ApplicationUserAssignedIdentity

Implements

public final class ApplicationUserAssignedIdentity
implements JsonSerializable<ApplicationUserAssignedIdentity>

The ApplicationUserAssignedIdentity model.

Constructor Summary

Constructor Description
ApplicationUserAssignedIdentity()

Creates an instance of ApplicationUserAssignedIdentity class.

Method Summary

Modifier and Type Method and Description
static ApplicationUserAssignedIdentity fromJson(JsonReader jsonReader)

Reads an instance of ApplicationUserAssignedIdentity from the JsonReader.

String name()

Get the name property: The friendly name of user assigned identity.

String principalId()

Get the principalId property: The principal id of user assigned identity.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApplicationUserAssignedIdentity withName(String name)

Set the name property: The friendly name of user assigned identity.

ApplicationUserAssignedIdentity withPrincipalId(String principalId)

Set the principalId property: The principal id of user assigned identity.

Methods inherited from java.lang.Object

Constructor Details

ApplicationUserAssignedIdentity

public ApplicationUserAssignedIdentity()

Creates an instance of ApplicationUserAssignedIdentity class.

Method Details

fromJson

public static ApplicationUserAssignedIdentity fromJson(JsonReader jsonReader)

Reads an instance of ApplicationUserAssignedIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The friendly name of user assigned identity.

Returns:

the name value.

principalId

public String principalId()

Get the principalId property: The principal id of user assigned identity.

Returns:

the principalId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public ApplicationUserAssignedIdentity withName(String name)

Set the name property: The friendly name of user assigned identity.

Parameters:

name - the name value to set.

Returns:

the ApplicationUserAssignedIdentity object itself.

withPrincipalId

public ApplicationUserAssignedIdentity withPrincipalId(String principalId)

Set the principalId property: The principal id of user assigned identity.

Parameters:

principalId - the principalId value to set.

Returns:

the ApplicationUserAssignedIdentity object itself.

Applies to