Class ExpandedPropertiesPrincipal

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

public final class ExpandedPropertiesPrincipal extends Object
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.