public final class PolicyExemptionProperties extends Object
| Constructor and Description |
|---|
PolicyExemptionProperties() |
| 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.
|
void |
validate()
Validates the instance.
|
PolicyExemptionProperties |
withDescription(String description)
Set the description property: The description of the policy exemption.
|
PolicyExemptionProperties |
withDisplayName(String displayName)
Set the displayName property: The display name of the policy exemption.
|
PolicyExemptionProperties |
withExemptionCategory(ExemptionCategory exemptionCategory)
Set the exemptionCategory property: The policy exemption category.
|
PolicyExemptionProperties |
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.
|
PolicyExemptionProperties |
withMetadata(Object metadata)
Set the metadata property: The policy exemption metadata.
|
PolicyExemptionProperties |
withPolicyAssignmentId(String policyAssignmentId)
Set the policyAssignmentId property: The ID of the policy assignment that is being exempted.
|
PolicyExemptionProperties |
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 String policyAssignmentId()
public PolicyExemptionProperties withPolicyAssignmentId(String policyAssignmentId)
policyAssignmentId - the policyAssignmentId value to set.public List<String> policyDefinitionReferenceIds()
public PolicyExemptionProperties withPolicyDefinitionReferenceIds(List<String> policyDefinitionReferenceIds)
policyDefinitionReferenceIds - the policyDefinitionReferenceIds value to set.public ExemptionCategory exemptionCategory()
public PolicyExemptionProperties withExemptionCategory(ExemptionCategory exemptionCategory)
exemptionCategory - the exemptionCategory value to set.public OffsetDateTime expiresOn()
public PolicyExemptionProperties withExpiresOn(OffsetDateTime expiresOn)
expiresOn - the expiresOn value to set.public String displayName()
public PolicyExemptionProperties withDisplayName(String displayName)
displayName - the displayName value to set.public String description()
public PolicyExemptionProperties withDescription(String description)
description - the description value to set.public Object metadata()
public PolicyExemptionProperties withMetadata(Object metadata)
metadata - the metadata value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.