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 Summary
Constructors Constructor Description CheckRestrictionsRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<PendingField>
pendingFields()
Get the pendingFields property: The list of fields and values that should be evaluated for potential restrictions.CheckRestrictionsResourceDetails
resourceDetails()
Get the resourceDetails property: The information about the resource that will be evaluated.void
validate()
Validates the instance.CheckRestrictionsRequest
withPendingFields(List<PendingField> pendingFields)
Set the pendingFields property: The list of fields and values that should be evaluated for potential restrictions.CheckRestrictionsRequest
withResourceDetails(CheckRestrictionsResourceDetails resourceDetails)
Set the resourceDetails property: The information about the resource that will be evaluated.
-
-
-
Method Detail
-
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.
-
-