Class CheckRestrictionsRequest
java.lang.Object
com.azure.resourcemanager.policyinsights.models.CheckRestrictionsRequest
The check policy restrictions parameters describing the resource that is being evaluated.
-
Constructor Summary
ConstructorDescriptionCreates an instance of CheckRestrictionsRequest class. -
Method Summary
Modifier and TypeMethodDescriptionGet the pendingFields property: The list of fields and values that should be evaluated for potential restrictions.Get the resourceDetails property: The information about the resource that will be evaluated.void
validate()
Validates the instance.withPendingFields
(List<PendingField> pendingFields) Set the pendingFields property: The list of fields and values that should be evaluated for potential restrictions.withResourceDetails
(CheckRestrictionsResourceDetails resourceDetails) Set the resourceDetails property: The information about the resource that will be evaluated.
-
Constructor Details
-
CheckRestrictionsRequest
public CheckRestrictionsRequest()Creates an instance of CheckRestrictionsRequest class.
-
-
Method Details
-
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
Get the pendingFields property: The list of fields and values that should be evaluated for potential restrictions.- Returns:
- the pendingFields value.
-
withPendingFields
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.
-