Class PolicyAssignmentUpdateProperties

java.lang.Object
com.azure.resourcemanager.resources.fluent.models.PolicyAssignmentUpdateProperties

public final class PolicyAssignmentUpdateProperties extends Object
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.