Class PolicyExemptionProperties
- java.lang.Object
-
- com.azure.resourcemanager.resources.fluent.models.PolicyExemptionProperties
-
public final class PolicyExemptionProperties extends Object
The policy exemption properties.
-
-
Constructor Summary
Constructors Constructor Description PolicyExemptionProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()Get the description property: The description of the policy exemption.StringdisplayName()Get the displayName property: The display name of the policy exemption.ExemptionCategoryexemptionCategory()Get the exemptionCategory property: The policy exemption category.OffsetDateTimeexpiresOn()Get the expiresOn property: The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption.Objectmetadata()Get the metadata property: The policy exemption metadata.StringpolicyAssignmentId()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.voidvalidate()Validates the instance.PolicyExemptionPropertieswithDescription(String description)Set the description property: The description of the policy exemption.PolicyExemptionPropertieswithDisplayName(String displayName)Set the displayName property: The display name of the policy exemption.PolicyExemptionPropertieswithExemptionCategory(ExemptionCategory exemptionCategory)Set the exemptionCategory property: The policy exemption category.PolicyExemptionPropertieswithExpiresOn(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.PolicyExemptionPropertieswithMetadata(Object metadata)Set the metadata property: The policy exemption metadata.PolicyExemptionPropertieswithPolicyAssignmentId(String policyAssignmentId)Set the policyAssignmentId property: The ID of the policy assignment that is being exempted.PolicyExemptionPropertieswithPolicyDefinitionReferenceIds(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.
-
-
-
Method Detail
-
policyAssignmentId
public String policyAssignmentId()
Get the policyAssignmentId property: The ID of the policy assignment that is being exempted.- Returns:
- the policyAssignmentId value.
-
withPolicyAssignmentId
public PolicyExemptionProperties withPolicyAssignmentId(String policyAssignmentId)
Set the policyAssignmentId property: The ID of the policy assignment that is being exempted.- Parameters:
policyAssignmentId- the policyAssignmentId value to set.- Returns:
- the PolicyExemptionProperties object itself.
-
policyDefinitionReferenceIds
public 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.- Returns:
- the policyDefinitionReferenceIds value.
-
withPolicyDefinitionReferenceIds
public 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.- Parameters:
policyDefinitionReferenceIds- the policyDefinitionReferenceIds value to set.- Returns:
- the PolicyExemptionProperties object itself.
-
exemptionCategory
public ExemptionCategory exemptionCategory()
Get the exemptionCategory property: The policy exemption category. Possible values are Waiver and Mitigated.- Returns:
- the exemptionCategory value.
-
withExemptionCategory
public PolicyExemptionProperties withExemptionCategory(ExemptionCategory exemptionCategory)
Set the exemptionCategory property: The policy exemption category. Possible values are Waiver and Mitigated.- Parameters:
exemptionCategory- the exemptionCategory value to set.- Returns:
- the PolicyExemptionProperties object itself.
-
expiresOn
public 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.- Returns:
- the expiresOn value.
-
withExpiresOn
public 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.- Parameters:
expiresOn- the expiresOn value to set.- Returns:
- the PolicyExemptionProperties object itself.
-
displayName
public String displayName()
Get the displayName property: The display name of the policy exemption.- Returns:
- the displayName value.
-
withDisplayName
public PolicyExemptionProperties withDisplayName(String displayName)
Set the displayName property: The display name of the policy exemption.- Parameters:
displayName- the displayName value to set.- Returns:
- the PolicyExemptionProperties object itself.
-
description
public String description()
Get the description property: The description of the policy exemption.- Returns:
- the description value.
-
withDescription
public PolicyExemptionProperties withDescription(String description)
Set the description property: The description of the policy exemption.- Parameters:
description- the description value to set.- Returns:
- the PolicyExemptionProperties object itself.
-
metadata
public Object metadata()
Get the metadata property: The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs.- Returns:
- the metadata value.
-
withMetadata
public PolicyExemptionProperties withMetadata(Object metadata)
Set the metadata property: The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs.- Parameters:
metadata- the metadata value to set.- Returns:
- the PolicyExemptionProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-