Class PolicyAssignmentUpdate
java.lang.Object
com.azure.resourcemanager.resources.models.PolicyAssignmentUpdate
The policy assignment for Patch request.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PolicyAssignmentUpdate class. -
Method Summary
Modifier and TypeMethodDescriptionidentity()Get the identity property: The managed identity associated with the policy assignment.location()Get the location property: The location of the policy assignment.Get 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.withIdentity(Identity identity) Set the identity property: The managed identity associated with the policy assignment.withLocation(String location) Set the location property: The location of the policy assignment.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
-
PolicyAssignmentUpdate
public PolicyAssignmentUpdate()Creates an instance of PolicyAssignmentUpdate class.
-
-
Method Details
-
location
Get the location property: The location of the policy assignment. Only required when utilizing managed identity.- Returns:
- the location value.
-
withLocation
Set the location property: The location of the policy assignment. Only required when utilizing managed identity.- Parameters:
location- the location value to set.- Returns:
- the PolicyAssignmentUpdate object itself.
-
identity
Get the identity property: The managed identity associated with the policy assignment.- Returns:
- the identity value.
-
withIdentity
Set the identity property: The managed identity associated with the policy assignment.- Parameters:
identity- the identity value to set.- Returns:
- the PolicyAssignmentUpdate object itself.
-
resourceSelectors
Get the resourceSelectors property: The resource selector list to filter policies by resource properties.- Returns:
- the resourceSelectors value.
-
withResourceSelectors
Set the resourceSelectors property: The resource selector list to filter policies by resource properties.- Parameters:
resourceSelectors- the resourceSelectors value to set.- Returns:
- the PolicyAssignmentUpdate 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 PolicyAssignmentUpdate object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-