public final class PolicyAssignmentProperties extends Object
| Constructor and Description |
|---|
PolicyAssignmentProperties() |
| Modifier and Type | Method and Description |
|---|---|
String |
description()
Get the description property: This message will be part of response in case of policy violation.
|
String |
displayName()
Get the displayName property: The display name of the policy assignment.
|
EnforcementMode |
enforcementMode()
Get the enforcementMode property: The policy assignment enforcement mode.
|
Object |
metadata()
Get the metadata property: The policy assignment metadata.
|
List<NonComplianceMessage> |
nonComplianceMessages()
Get the nonComplianceMessages property: The messages that describe why a resource is non-compliant with the
policy.
|
List<String> |
notScopes()
Get the notScopes property: The policy's excluded scopes.
|
Map<String,ParameterValuesValue> |
parameters()
Get the parameters property: The parameter values for the assigned policy rule.
|
String |
policyDefinitionId()
Get the policyDefinitionId property: The ID of the policy definition or policy set definition being assigned.
|
String |
scope()
Get the scope property: The scope for the policy assignment.
|
void |
validate()
Validates the instance.
|
PolicyAssignmentProperties |
withDescription(String description)
Set the description property: This message will be part of response in case of policy violation.
|
PolicyAssignmentProperties |
withDisplayName(String displayName)
Set the displayName property: The display name of the policy assignment.
|
PolicyAssignmentProperties |
withEnforcementMode(EnforcementMode enforcementMode)
Set the enforcementMode property: The policy assignment enforcement mode.
|
PolicyAssignmentProperties |
withMetadata(Object metadata)
Set the metadata property: The policy assignment metadata.
|
PolicyAssignmentProperties |
withNonComplianceMessages(List<NonComplianceMessage> nonComplianceMessages)
Set the nonComplianceMessages property: The messages that describe why a resource is non-compliant with the
policy.
|
PolicyAssignmentProperties |
withNotScopes(List<String> notScopes)
Set the notScopes property: The policy's excluded scopes.
|
PolicyAssignmentProperties |
withParameters(Map<String,ParameterValuesValue> parameters)
Set the parameters property: The parameter values for the assigned policy rule.
|
PolicyAssignmentProperties |
withPolicyDefinitionId(String policyDefinitionId)
Set the policyDefinitionId property: The ID of the policy definition or policy set definition being assigned.
|
public String displayName()
public PolicyAssignmentProperties withDisplayName(String displayName)
displayName - the displayName value to set.public String policyDefinitionId()
public PolicyAssignmentProperties withPolicyDefinitionId(String policyDefinitionId)
policyDefinitionId - the policyDefinitionId value to set.public String scope()
public List<String> notScopes()
public PolicyAssignmentProperties withNotScopes(List<String> notScopes)
notScopes - the notScopes value to set.public Map<String,ParameterValuesValue> parameters()
public PolicyAssignmentProperties withParameters(Map<String,ParameterValuesValue> parameters)
parameters - the parameters value to set.public String description()
public PolicyAssignmentProperties withDescription(String description)
description - the description value to set.public Object metadata()
public PolicyAssignmentProperties withMetadata(Object metadata)
metadata - the metadata value to set.public EnforcementMode enforcementMode()
public PolicyAssignmentProperties withEnforcementMode(EnforcementMode enforcementMode)
enforcementMode - the enforcementMode value to set.public List<NonComplianceMessage> nonComplianceMessages()
public PolicyAssignmentProperties withNonComplianceMessages(List<NonComplianceMessage> nonComplianceMessages)
nonComplianceMessages - the nonComplianceMessages value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.