PolicyViolation Class
- java.
lang. Object - com.
azure. resourcemanager. devtestlabs. models. PolicyViolation
- com.
public final class PolicyViolation
Policy violation.
Constructor Summary
Constructor | Description |
---|---|
PolicyViolation() |
Creates an instance of Policy |
Method Summary
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. |
Policy |
withCode(String code)
Set the code property: The code of the policy violation. |
Policy |
withMessage(String message)
Set the message property: The message of the policy violation. |
Methods inherited from java.lang.Object
Constructor Details
PolicyViolation
public PolicyViolation()
Creates an instance of PolicyViolation class.
Method Details
code
public String code()
Get the code property: The code of the policy violation.
Returns:
message
public String message()
Get the message property: The message of the policy violation.
Returns:
validate
public void validate()
Validates the instance.
withCode
public PolicyViolation withCode(String code)
Set the code property: The code of the policy violation.
Parameters:
Returns:
withMessage
public PolicyViolation withMessage(String message)
Set the message property: The message of the policy violation.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for