Class PendingField
- java.lang.Object
-
- com.azure.resourcemanager.policyinsights.models.PendingField
-
public final class PendingField extends Object
A field that should be evaluated against Azure Policy to determine restrictions.
-
-
Constructor Summary
Constructors Constructor Description PendingField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
field()
Get the field property: The name of the field.void
validate()
Validates the instance.List<String>
values()
Get the values property: The list of potential values for the field that should be evaluated against Azure Policy.PendingField
withField(String field)
Set the field property: The name of the field.PendingField
withValues(List<String> values)
Set the values property: The list of potential values for the field that should be evaluated against Azure Policy.
-
-
-
Method Detail
-
field
public String 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
public PendingField withField(String field)
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
public List<String> 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
public PendingField withValues(List<String> values)
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.
-
-