ExpandedPropertiesPrincipal Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.models.ExpandedPropertiesPrincipal

Implements

public final class ExpandedPropertiesPrincipal
implements JsonSerializable<ExpandedPropertiesPrincipal>

Details of the principal.

Constructor Summary

Constructor Description
ExpandedPropertiesPrincipal()

Creates an instance of ExpandedPropertiesPrincipal class.

Method Summary

Modifier and Type Method and Description
String displayName()

Get the displayName property: Display name of the principal.

String email()

Get the email property: Email id of the principal.

static ExpandedPropertiesPrincipal fromJson(JsonReader jsonReader)

Reads an instance of ExpandedPropertiesPrincipal from the JsonReader.

String id()

Get the id property: Id of the principal.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of the principal.

void validate()

Validates the instance.

ExpandedPropertiesPrincipal withDisplayName(String displayName)

Set the displayName property: Display name of the principal.

ExpandedPropertiesPrincipal withEmail(String email)

Set the email property: Email id of the principal.

ExpandedPropertiesPrincipal withId(String id)

Set the id property: Id of the principal.

ExpandedPropertiesPrincipal withType(String type)

Set the type property: Type of the principal.

Methods inherited from java.lang.Object

Constructor Details

ExpandedPropertiesPrincipal

public ExpandedPropertiesPrincipal()

Creates an instance of ExpandedPropertiesPrincipal class.

Method Details

displayName

public String displayName()

Get the displayName property: Display name of the principal.

Returns:

the displayName value.

email

public String email()

Get the email property: Email id of the principal.

Returns:

the email value.

fromJson

public static ExpandedPropertiesPrincipal fromJson(JsonReader jsonReader)

Reads an instance of ExpandedPropertiesPrincipal from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Id of the principal.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of the principal.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDisplayName

public ExpandedPropertiesPrincipal withDisplayName(String displayName)

Set the displayName property: Display name of the principal.

Parameters:

displayName - the displayName value to set.

Returns:

the ExpandedPropertiesPrincipal object itself.

withEmail

public ExpandedPropertiesPrincipal withEmail(String email)

Set the email property: Email id of the principal.

Parameters:

email - the email value to set.

Returns:

the ExpandedPropertiesPrincipal object itself.

withId

public ExpandedPropertiesPrincipal withId(String id)

Set the id property: Id of the principal.

Parameters:

id - the id value to set.

Returns:

the ExpandedPropertiesPrincipal object itself.

withType

public ExpandedPropertiesPrincipal withType(String type)

Set the type property: Type of the principal.

Parameters:

type - the type value to set.

Returns:

the ExpandedPropertiesPrincipal object itself.

Applies to