Class PolicyAssignmentPropertiesScope

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

public final class PolicyAssignmentPropertiesScope extends Object implements com.azure.json.JsonSerializable<PolicyAssignmentPropertiesScope>
Details of the resource scope.
  • Constructor Details

    • PolicyAssignmentPropertiesScope

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

    • id

      public String id()
      Get the id property: Scope id of the resource.
      Returns:
      the id value.
    • withId

      Set the id property: Scope id of the resource.
      Parameters:
      id - the id value to set.
      Returns:
      the PolicyAssignmentPropertiesScope object itself.
    • displayName

      public String displayName()
      Get the displayName property: Display name of the resource.
      Returns:
      the displayName value.
    • withDisplayName

      public PolicyAssignmentPropertiesScope withDisplayName(String displayName)
      Set the displayName property: Display name of the resource.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the PolicyAssignmentPropertiesScope object itself.
    • type

      public String type()
      Get the type property: Type of the resource.
      Returns:
      the type value.
    • withType

      public PolicyAssignmentPropertiesScope withType(String type)
      Set the type property: Type of the resource.
      Parameters:
      type - the type value to set.
      Returns:
      the PolicyAssignmentPropertiesScope 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<PolicyAssignmentPropertiesScope>
      Throws:
      IOException
    • fromJson

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