Class PolicyAssignmentUpdate

java.lang.Object
com.azure.resourcemanager.resources.models.PolicyAssignmentUpdate

public final class PolicyAssignmentUpdate extends Object
The PolicyAssignmentUpdate model.
  • Constructor Details

    • PolicyAssignmentUpdate

      public PolicyAssignmentUpdate()
  • Method Details

    • 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.