Class PolicyPropertiesScope

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

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

    • PolicyPropertiesScope

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

    • id

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

      public PolicyPropertiesScope withId(String id)
      Set the id property: Scope id of the resource.
      Parameters:
      id - the id value to set.
      Returns:
      the PolicyPropertiesScope object itself.
    • displayName

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

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

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

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

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