Class ExpandedProperties

java.lang.Object
com.azure.resourcemanager.authorization.models.ExpandedProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<ExpandedProperties>

public final class ExpandedProperties extends Object implements com.azure.json.JsonSerializable<ExpandedProperties>
The ExpandedProperties model.
  • Constructor Details

    • ExpandedProperties

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

    • scope

      public ExpandedPropertiesScope scope()
      Get the scope property: Details of the resource scope.
      Returns:
      the scope value.
    • withScope

      public ExpandedProperties withScope(ExpandedPropertiesScope scope)
      Set the scope property: Details of the resource scope.
      Parameters:
      scope - the scope value to set.
      Returns:
      the ExpandedProperties object itself.
    • roleDefinition

      public ExpandedPropertiesRoleDefinition roleDefinition()
      Get the roleDefinition property: Details of role definition.
      Returns:
      the roleDefinition value.
    • withRoleDefinition

      public ExpandedProperties withRoleDefinition(ExpandedPropertiesRoleDefinition roleDefinition)
      Set the roleDefinition property: Details of role definition.
      Parameters:
      roleDefinition - the roleDefinition value to set.
      Returns:
      the ExpandedProperties object itself.
    • principal

      public ExpandedPropertiesPrincipal principal()
      Get the principal property: Details of the principal.
      Returns:
      the principal value.
    • withPrincipal

      public ExpandedProperties withPrincipal(ExpandedPropertiesPrincipal principal)
      Set the principal property: Details of the principal.
      Parameters:
      principal - the principal value to set.
      Returns:
      the ExpandedProperties 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<ExpandedProperties>
      Throws:
      IOException
    • fromJson

      public static ExpandedProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ExpandedProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ExpandedProperties 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 ExpandedProperties.