public final class PolicyExemptionInner
extends com.azure.core.management.ProxyResource
| Constructor and Description |
|---|
PolicyExemptionInner() |
| Modifier and Type | Method and Description |
|---|---|
String |
description()
Get the description property: The description of the policy exemption.
|
String |
displayName()
Get the displayName property: The display name of the policy exemption.
|
ExemptionCategory |
exemptionCategory()
Get the exemptionCategory property: The policy exemption category.
|
OffsetDateTime |
expiresOn()
Get the expiresOn property: The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the
policy exemption.
|
Object |
metadata()
Get the metadata property: The policy exemption metadata.
|
String |
policyAssignmentId()
Get the policyAssignmentId property: The ID of the policy assignment that is being exempted.
|
List<String> |
policyDefinitionReferenceIds()
Get the policyDefinitionReferenceIds property: The policy definition reference ID list when the associated policy
assignment is an assignment of a policy set definition.
|
com.azure.core.management.SystemData |
systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
|
void |
validate()
Validates the instance.
|
PolicyExemptionInner |
withDescription(String description)
Set the description property: The description of the policy exemption.
|
PolicyExemptionInner |
withDisplayName(String displayName)
Set the displayName property: The display name of the policy exemption.
|
PolicyExemptionInner |
withExemptionCategory(ExemptionCategory exemptionCategory)
Set the exemptionCategory property: The policy exemption category.
|
PolicyExemptionInner |
withExpiresOn(OffsetDateTime expiresOn)
Set the expiresOn property: The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the
policy exemption.
|
PolicyExemptionInner |
withMetadata(Object metadata)
Set the metadata property: The policy exemption metadata.
|
PolicyExemptionInner |
withPolicyAssignmentId(String policyAssignmentId)
Set the policyAssignmentId property: The ID of the policy assignment that is being exempted.
|
PolicyExemptionInner |
withPolicyDefinitionReferenceIds(List<String> policyDefinitionReferenceIds)
Set the policyDefinitionReferenceIds property: The policy definition reference ID list when the associated policy
assignment is an assignment of a policy set definition.
|
public com.azure.core.management.SystemData systemData()
public String policyAssignmentId()
public PolicyExemptionInner withPolicyAssignmentId(String policyAssignmentId)
policyAssignmentId - the policyAssignmentId value to set.public List<String> policyDefinitionReferenceIds()
public PolicyExemptionInner withPolicyDefinitionReferenceIds(List<String> policyDefinitionReferenceIds)
policyDefinitionReferenceIds - the policyDefinitionReferenceIds value to set.public ExemptionCategory exemptionCategory()
public PolicyExemptionInner withExemptionCategory(ExemptionCategory exemptionCategory)
exemptionCategory - the exemptionCategory value to set.public OffsetDateTime expiresOn()
public PolicyExemptionInner withExpiresOn(OffsetDateTime expiresOn)
expiresOn - the expiresOn value to set.public String displayName()
public PolicyExemptionInner withDisplayName(String displayName)
displayName - the displayName value to set.public String description()
public PolicyExemptionInner withDescription(String description)
description - the description value to set.public Object metadata()
public PolicyExemptionInner withMetadata(Object metadata)
metadata - the metadata value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.