Class AllPoliciesContractProperties

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

public final class AllPoliciesContractProperties extends Object implements com.azure.json.JsonSerializable<AllPoliciesContractProperties>
AllPolicies Properties.
  • Constructor Details

    • AllPoliciesContractProperties

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

    • referencePolicyId

      public String referencePolicyId()
      Get the referencePolicyId property: Policy Identifier.
      Returns:
      the referencePolicyId value.
    • withReferencePolicyId

      public AllPoliciesContractProperties withReferencePolicyId(String referencePolicyId)
      Set the referencePolicyId property: Policy Identifier.
      Parameters:
      referencePolicyId - the referencePolicyId value to set.
      Returns:
      the AllPoliciesContractProperties object itself.
    • complianceState

      public PolicyComplianceState complianceState()
      Get the complianceState property: Policy Restriction Compliance State.
      Returns:
      the complianceState value.
    • withComplianceState

      public AllPoliciesContractProperties withComplianceState(PolicyComplianceState complianceState)
      Set the complianceState property: Policy Restriction Compliance State.
      Parameters:
      complianceState - the complianceState value to set.
      Returns:
      the AllPoliciesContractProperties 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<AllPoliciesContractProperties>
      Throws:
      IOException
    • fromJson

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