Class PolicyProperties

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

public final class PolicyProperties extends Object implements com.azure.json.JsonSerializable<PolicyProperties>
Expanded info of resource scope.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of PolicyProperties class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of PolicyProperties from the JsonReader.
    Get the scope property: Details of the resource scope.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • PolicyProperties

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

    • scope

      public PolicyPropertiesScope scope()
      Get the scope property: Details of the resource scope.
      Returns:
      the scope value.
    • 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<PolicyProperties>
      Throws:
      IOException
    • fromJson

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