public final class NonComplianceMessage extends Object
| Constructor and Description |
|---|
NonComplianceMessage() |
| Modifier and Type | Method and Description |
|---|---|
String |
message()
Get the message property: A message that describes why a resource is non-compliant with the policy.
|
String |
policyDefinitionReferenceId()
Get the policyDefinitionReferenceId property: The policy definition reference ID within a policy set definition
the message is intended for.
|
void |
validate()
Validates the instance.
|
NonComplianceMessage |
withMessage(String message)
Set the message property: A message that describes why a resource is non-compliant with the policy.
|
NonComplianceMessage |
withPolicyDefinitionReferenceId(String policyDefinitionReferenceId)
Set the policyDefinitionReferenceId property: The policy definition reference ID within a policy set definition
the message is intended for.
|
public String message()
public NonComplianceMessage withMessage(String message)
message - the message value to set.public String policyDefinitionReferenceId()
public NonComplianceMessage withPolicyDefinitionReferenceId(String policyDefinitionReferenceId)
policyDefinitionReferenceId - the policyDefinitionReferenceId value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.