Class CheckRestrictionsRequest

java.lang.Object
com.azure.resourcemanager.policyinsights.models.CheckRestrictionsRequest

public final class CheckRestrictionsRequest extends Object
The check policy restrictions parameters describing the resource that is being evaluated.
  • Constructor Details

    • CheckRestrictionsRequest

      public CheckRestrictionsRequest()
      Creates an instance of CheckRestrictionsRequest class.
  • Method Details

    • resourceDetails

      public CheckRestrictionsResourceDetails resourceDetails()
      Get the resourceDetails property: The information about the resource that will be evaluated.
      Returns:
      the resourceDetails value.
    • withResourceDetails

      public CheckRestrictionsRequest withResourceDetails(CheckRestrictionsResourceDetails resourceDetails)
      Set the resourceDetails property: The information about the resource that will be evaluated.
      Parameters:
      resourceDetails - the resourceDetails value to set.
      Returns:
      the CheckRestrictionsRequest object itself.
    • pendingFields

      public List<PendingField> pendingFields()
      Get the pendingFields property: The list of fields and values that should be evaluated for potential restrictions.
      Returns:
      the pendingFields value.
    • withPendingFields

      public CheckRestrictionsRequest withPendingFields(List<PendingField> pendingFields)
      Set the pendingFields property: The list of fields and values that should be evaluated for potential restrictions.
      Parameters:
      pendingFields - the pendingFields value to set.
      Returns:
      the CheckRestrictionsRequest object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.