public final class FieldRestrictions extends Object
Constructor and Description |
---|
FieldRestrictions() |
Modifier and Type | Method and Description |
---|---|
String |
field()
Get the field property: The name of the field.
|
List<FieldRestriction> |
restrictions()
Get the restrictions property: The restrictions placed on that field by policy.
|
void |
validate()
Validates the instance.
|
FieldRestrictions |
withRestrictions(List<FieldRestriction> restrictions)
Set the restrictions property: The restrictions placed on that field by policy.
|
public String field()
public List<FieldRestriction> restrictions()
public FieldRestrictions withRestrictions(List<FieldRestriction> restrictions)
restrictions
- the restrictions value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.