Class PendingField
java.lang.Object
com.azure.resourcemanager.policyinsights.models.PendingField
A field that should be evaluated against Azure Policy to determine restrictions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfield()
Get the field property: The name of the field.void
validate()
Validates the instance.values()
Get the values property: The list of potential values for the field that should be evaluated against Azure Policy.Set the field property: The name of the field.withValues
(List<String> values) Set the values property: The list of potential values for the field that should be evaluated against Azure Policy.
-
Constructor Details
-
PendingField
public PendingField()Creates an instance of PendingField class.
-
-
Method Details
-
field
Get the field property: The name of the field. This can be a top-level property like 'name' or 'type' or an Azure Policy field alias.- Returns:
- the field value.
-
withField
Set the field property: The name of the field. This can be a top-level property like 'name' or 'type' or an Azure Policy field alias.- Parameters:
field
- the field value to set.- Returns:
- the PendingField object itself.
-
values
Get the values property: The list of potential values for the field that should be evaluated against Azure Policy.- Returns:
- the values value.
-
withValues
Set the values property: The list of potential values for the field that should be evaluated against Azure Policy.- Parameters:
values
- the values value to set.- Returns:
- the PendingField object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-