public final class PolicyViolation extends Object
Constructor and Description |
---|
PolicyViolation() |
Modifier and Type | Method and Description |
---|---|
String |
code()
Get the code property: The code of the policy violation.
|
String |
message()
Get the message property: The message of the policy violation.
|
void |
validate()
Validates the instance.
|
PolicyViolation |
withCode(String code)
Set the code property: The code of the policy violation.
|
PolicyViolation |
withMessage(String message)
Set the message property: The message of the policy violation.
|
public String code()
public PolicyViolation withCode(String code)
code
- the code value to set.public String message()
public PolicyViolation withMessage(String message)
message
- the message value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.