Class PolicyExemptionUpdateProperties
java.lang.Object
com.azure.resourcemanager.resources.fluent.models.PolicyExemptionUpdateProperties
The policy exemption properties for Patch request.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PolicyExemptionUpdateProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the assignmentScopeValidation property: The option whether validate the exemption is at or under the assignment scope.Get the resourceSelectors property: The resource selector list to filter policies by resource properties.voidvalidate()Validates the instance.withAssignmentScopeValidation(AssignmentScopeValidation assignmentScopeValidation) Set the assignmentScopeValidation property: The option whether validate the exemption is at or under the assignment scope.withResourceSelectors(List<ResourceSelector> resourceSelectors) Set the resourceSelectors property: The resource selector list to filter policies by resource properties.
-
Constructor Details
-
PolicyExemptionUpdateProperties
public PolicyExemptionUpdateProperties()Creates an instance of PolicyExemptionUpdateProperties class.
-
-
Method Details
-
resourceSelectors
Get the resourceSelectors property: The resource selector list to filter policies by resource properties.- Returns:
- the resourceSelectors value.
-
withResourceSelectors
public PolicyExemptionUpdateProperties 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 PolicyExemptionUpdateProperties object itself.
-
assignmentScopeValidation
Get the assignmentScopeValidation property: The option whether validate the exemption is at or under the assignment scope.- Returns:
- the assignmentScopeValidation value.
-
withAssignmentScopeValidation
public PolicyExemptionUpdateProperties withAssignmentScopeValidation(AssignmentScopeValidation assignmentScopeValidation) Set the assignmentScopeValidation property: The option whether validate the exemption is at or under the assignment scope.- Parameters:
assignmentScopeValidation- the assignmentScopeValidation value to set.- Returns:
- the PolicyExemptionUpdateProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-