Class ExpandedPropertiesPrincipal
java.lang.Object
com.azure.resourcemanager.authorization.models.ExpandedPropertiesPrincipal
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExpandedPropertiesPrincipal>
public final class ExpandedPropertiesPrincipal
extends Object
implements com.azure.json.JsonSerializable<ExpandedPropertiesPrincipal>
Details of the principal.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ExpandedPropertiesPrincipal class. -
Method Summary
Modifier and TypeMethodDescriptionGet the displayName property: Display name of the principal.email()Get the email property: Email id of the principal.static ExpandedPropertiesPrincipalfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExpandedPropertiesPrincipal from the JsonReader.id()Get the id property: Id of the principal.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of the principal.voidvalidate()Validates the instance.withDisplayName(String displayName) Set the displayName property: Display name of the principal.Set the email property: Email id of the principal.Set the id property: Id of the principal.Set the type property: Type of the principal.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ExpandedPropertiesPrincipal
public ExpandedPropertiesPrincipal()Creates an instance of ExpandedPropertiesPrincipal class.
-
-
Method Details
-
id
Get the id property: Id of the principal.- Returns:
- the id value.
-
withId
Set the id property: Id of the principal.- Parameters:
id- the id value to set.- Returns:
- the ExpandedPropertiesPrincipal object itself.
-
displayName
Get the displayName property: Display name of the principal.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Display name of the principal.- Parameters:
displayName- the displayName value to set.- Returns:
- the ExpandedPropertiesPrincipal object itself.
-
email
Get the email property: Email id of the principal.- Returns:
- the email value.
-
withEmail
Set the email property: Email id of the principal.- Parameters:
email- the email value to set.- Returns:
- the ExpandedPropertiesPrincipal object itself.
-
type
Get the type property: Type of the principal.- Returns:
- the type value.
-
withType
Set the type property: Type of the principal.- Parameters:
type- the type value to set.- Returns:
- the ExpandedPropertiesPrincipal object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ExpandedPropertiesPrincipal>- Throws:
IOException
-
fromJson
public static ExpandedPropertiesPrincipal fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-