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 Details

    • ExpandedPropertiesPrincipal

      public ExpandedPropertiesPrincipal()
      Creates an instance of ExpandedPropertiesPrincipal class.
  • Method Details

    • id

      public String id()
      Get the id property: Id of the principal.
      Returns:
      the id value.
    • 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.
    • displayName

      public String displayName()
      Get the displayName property: Display name of the principal.
      Returns:
      the displayName value.
    • 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.
    • email

      public String email()
      Get the email property: Email id of the principal.
      Returns:
      the email value.
    • 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.
    • type

      public String type()
      Get the type property: Type of the principal.
      Returns:
      the type value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.