public class PolicyAssignmentInner
extends com.azure.core.management.ProxyResource
| Constructor and Description |
|---|
PolicyAssignmentInner() |
| 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.
|
Identity |
identity()
Get the identity property: The managed identity associated with the policy assignment.
|
String |
location()
Get the location property: The location of the policy assignment.
|
Object |
metadata()
Get the metadata property: The policy assignment metadata.
|
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.
|
PolicySku |
sku()
Get the sku property: The policy sku.
|
void |
validate()
Validates the instance.
|
PolicyAssignmentInner |
withDescription(String description)
Set the description property: This message will be part of response in case of policy violation.
|
PolicyAssignmentInner |
withDisplayName(String displayName)
Set the displayName property: The display name of the policy assignment.
|
PolicyAssignmentInner |
withEnforcementMode(EnforcementMode enforcementMode)
Set the enforcementMode property: The policy assignment enforcement mode.
|
PolicyAssignmentInner |
withIdentity(Identity identity)
Set the identity property: The managed identity associated with the policy assignment.
|
PolicyAssignmentInner |
withLocation(String location)
Set the location property: The location of the policy assignment.
|
PolicyAssignmentInner |
withMetadata(Object metadata)
Set the metadata property: The policy assignment metadata.
|
PolicyAssignmentInner |
withNotScopes(List<String> notScopes)
Set the notScopes property: The policy's excluded scopes.
|
PolicyAssignmentInner |
withParameters(Map<String,ParameterValuesValue> parameters)
Set the parameters property: The parameter values for the assigned policy rule.
|
PolicyAssignmentInner |
withPolicyDefinitionId(String policyDefinitionId)
Set the policyDefinitionId property: The ID of the policy definition or policy set definition being assigned.
|
PolicyAssignmentInner |
withScope(String scope)
Set the scope property: The scope for the policy assignment.
|
PolicyAssignmentInner |
withSku(PolicySku sku)
Set the sku property: The policy sku.
|
public PolicySku sku()
public PolicyAssignmentInner withSku(PolicySku sku)
sku - the sku value to set.public String location()
public PolicyAssignmentInner withLocation(String location)
location - the location value to set.public Identity identity()
public PolicyAssignmentInner withIdentity(Identity identity)
identity - the identity value to set.public String displayName()
public PolicyAssignmentInner withDisplayName(String displayName)
displayName - the displayName value to set.public String policyDefinitionId()
public PolicyAssignmentInner withPolicyDefinitionId(String policyDefinitionId)
policyDefinitionId - the policyDefinitionId value to set.public String scope()
public PolicyAssignmentInner withScope(String scope)
scope - the scope value to set.public List<String> notScopes()
public PolicyAssignmentInner withNotScopes(List<String> notScopes)
notScopes - the notScopes value to set.public Map<String,ParameterValuesValue> parameters()
public PolicyAssignmentInner withParameters(Map<String,ParameterValuesValue> parameters)
parameters - the parameters value to set.public String description()
public PolicyAssignmentInner withDescription(String description)
description - the description value to set.public Object metadata()
public PolicyAssignmentInner withMetadata(Object metadata)
metadata - the metadata value to set.public EnforcementMode enforcementMode()
public PolicyAssignmentInner withEnforcementMode(EnforcementMode enforcementMode)
enforcementMode - the enforcementMode value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.