public final class Restriction extends Object
| Constructor and Description |
|---|
Restriction() |
| Modifier and Type | Method and Description |
|---|---|
ReasonCode |
reasonCode()
Get the reasonCode property: The reason for the restriction.
|
String |
type()
Get the type property: The type of restrictions.
|
void |
validate()
Validates the instance.
|
List<String> |
values()
Get the values property: The value of restrictions.
|
Restriction |
withReasonCode(ReasonCode reasonCode)
Set the reasonCode property: The reason for the restriction.
|
public String type()
public List<String> values()
public ReasonCode reasonCode()
public Restriction withReasonCode(ReasonCode reasonCode)
reasonCode - the reasonCode value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.