Class PolicyAssignmentUpdateProperties
java.lang.Object
com.azure.resourcemanager.resources.fluent.models.PolicyAssignmentUpdateProperties
The policy assignment properties for Patch request.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PolicyAssignmentUpdateProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the overrides property: The policy property value override.Get the resourceSelectors property: The resource selector list to filter policies by resource properties.voidvalidate()Validates the instance.withOverrides(List<OverrideModel> overrides) Set the overrides property: The policy property value override.withResourceSelectors(List<ResourceSelector> resourceSelectors) Set the resourceSelectors property: The resource selector list to filter policies by resource properties.
-
Constructor Details
-
PolicyAssignmentUpdateProperties
public PolicyAssignmentUpdateProperties()Creates an instance of PolicyAssignmentUpdateProperties class.
-
-
Method Details
-
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
Get the overrides property: The policy property value override.- Returns:
- the overrides value.
-
withOverrides
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.
-