Class PolicyDescriptionContractProperties

java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.PolicyDescriptionContractProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<PolicyDescriptionContractProperties>

public final class PolicyDescriptionContractProperties extends Object implements com.azure.json.JsonSerializable<PolicyDescriptionContractProperties>
Policy description properties.
  • Constructor Details

    • PolicyDescriptionContractProperties

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

    • description

      public String description()
      Get the description property: Policy description.
      Returns:
      the description value.
    • scope

      public Long scope()
      Get the scope property: Binary OR value of the Snippet 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<PolicyDescriptionContractProperties>
      Throws:
      IOException
    • fromJson

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