Class PolicyAssignmentUpdate
- java.lang.Object
-
- com.azure.resourcemanager.resources.models.PolicyAssignmentUpdate
-
public final class PolicyAssignmentUpdate extends Object
The PolicyAssignmentUpdate model.
-
-
Constructor Summary
Constructors Constructor Description PolicyAssignmentUpdate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Identityidentity()Get the identity property: The managed identity associated with the policy assignment.Stringlocation()Get the location property: The location of the policy assignment.voidvalidate()Validates the instance.PolicyAssignmentUpdatewithIdentity(Identity identity)Set the identity property: The managed identity associated with the policy assignment.PolicyAssignmentUpdatewithLocation(String location)Set the location property: The location of the policy assignment.
-
-
-
Method Detail
-
location
public String location()
Get the location property: The location of the policy assignment. Only required when utilizing managed identity.- Returns:
- the location value.
-
withLocation
public PolicyAssignmentUpdate withLocation(String location)
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
public Identity identity()
Get the identity property: The managed identity associated with the policy assignment.- Returns:
- the identity value.
-
withIdentity
public PolicyAssignmentUpdate withIdentity(Identity identity)
Set the identity property: The managed identity associated with the policy assignment.- Parameters:
identity- the identity value to set.- Returns:
- the PolicyAssignmentUpdate object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-