Class PolicyAssignmentUpdateProperties

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

public final class PolicyAssignmentUpdateProperties extends Object implements com.azure.json.JsonSerializable<PolicyAssignmentUpdateProperties>
The policy assignment properties for Patch request.
  • Constructor Details

    • PolicyAssignmentUpdateProperties

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

    • resourceSelectors

      public List<ResourceSelector> resourceSelectors()
      Get the resourceSelectors property: The resource selector list to filter policies by resource properties.
      Returns:
      the resourceSelectors value.
    • withResourceSelectors

      public PolicyAssignmentUpdateProperties withResourceSelectors(List<ResourceSelector> resourceSelectors)
      Set the resourceSelectors property: The resource selector list to filter policies by resource properties.
      Parameters:
      resourceSelectors - the resourceSelectors value to set.
      Returns:
      the PolicyAssignmentUpdateProperties object itself.
    • overrides

      public List<OverrideModel> overrides()
      Get the overrides property: The policy property value override.
      Returns:
      the overrides value.
    • withOverrides

      public PolicyAssignmentUpdateProperties withOverrides(List<OverrideModel> overrides)
      Set the overrides property: The policy property value override.
      Parameters:
      overrides - the overrides value to set.
      Returns:
      the PolicyAssignmentUpdateProperties 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<PolicyAssignmentUpdateProperties>
      Throws:
      IOException
    • fromJson

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