Class PolicyExemptionInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.resources.fluent.models.PolicyExemptionInner
public final class PolicyExemptionInner
extends com.azure.core.management.ProxyResource
The policy exemption.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the assignmentScopeValidation property: The option whether validate the exemption is at or under the assignment scope.Get the description property: The description of the policy exemption.Get the displayName property: The display name of the policy exemption.Get the exemptionCategory property: The policy exemption category.Get the expiresOn property: The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption.metadata()Get the metadata property: The policy exemption metadata.Get the policyAssignmentId property: The ID of the policy assignment that is being exempted.Get the policyDefinitionReferenceIds property: The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.Get the resourceSelectors property: The resource selector list to filter policies by resource properties.com.azure.core.management.SystemDataGet the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.voidvalidate()Validates the instance.withAssignmentScopeValidation(AssignmentScopeValidation assignmentScopeValidation) Set the assignmentScopeValidation property: The option whether validate the exemption is at or under the assignment scope.withDescription(String description) Set the description property: The description of the policy exemption.withDisplayName(String displayName) Set the displayName property: The display name of the policy exemption.withExemptionCategory(ExemptionCategory exemptionCategory) Set the exemptionCategory property: The policy exemption category.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.withMetadata(Object metadata) Set the metadata property: The policy exemption metadata.withPolicyAssignmentId(String policyAssignmentId) Set the policyAssignmentId property: The ID of the policy assignment that is being exempted.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.withResourceSelectors(List<ResourceSelector> resourceSelectors) Set the resourceSelectors property: The resource selector list to filter policies by resource properties.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
PolicyExemptionInner
public PolicyExemptionInner()Creates an instance of PolicyExemptionInner class.
-
-
Method Details
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.- Returns:
- the systemData value.
-
policyAssignmentId
Get the policyAssignmentId property: The ID of the policy assignment that is being exempted.- Returns:
- the policyAssignmentId value.
-
withPolicyAssignmentId
Set the policyAssignmentId property: The ID of the policy assignment that is being exempted.- Parameters:
policyAssignmentId- the policyAssignmentId value to set.- Returns:
- the PolicyExemptionInner object itself.
-
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 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.- Parameters:
policyDefinitionReferenceIds- the policyDefinitionReferenceIds value to set.- Returns:
- the PolicyExemptionInner object itself.
-
exemptionCategory
Get the exemptionCategory property: The policy exemption category. Possible values are Waiver and Mitigated.- Returns:
- the exemptionCategory value.
-
withExemptionCategory
Set the exemptionCategory property: The policy exemption category. Possible values are Waiver and Mitigated.- Parameters:
exemptionCategory- the exemptionCategory value to set.- Returns:
- the PolicyExemptionInner object itself.
-
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
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 PolicyExemptionInner object itself.
-
displayName
Get the displayName property: The display name of the policy exemption.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The display name of the policy exemption.- Parameters:
displayName- the displayName value to set.- Returns:
- the PolicyExemptionInner object itself.
-
description
Get the description property: The description of the policy exemption.- Returns:
- the description value.
-
withDescription
Set the description property: The description of the policy exemption.- Parameters:
description- the description value to set.- Returns:
- the PolicyExemptionInner object itself.
-
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
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 PolicyExemptionInner object itself.
-
resourceSelectors
Get the resourceSelectors property: The resource selector list to filter policies by resource properties.- Returns:
- the resourceSelectors value.
-
withResourceSelectors
Set the resourceSelectors property: The resource selector list to filter policies by resource properties.- Parameters:
resourceSelectors- the resourceSelectors value to set.- Returns:
- the PolicyExemptionInner object itself.
-
assignmentScopeValidation
Get the assignmentScopeValidation property: The option whether validate the exemption is at or under the assignment scope.- Returns:
- the assignmentScopeValidation value.
-
withAssignmentScopeValidation
public PolicyExemptionInner withAssignmentScopeValidation(AssignmentScopeValidation assignmentScopeValidation) Set the assignmentScopeValidation property: The option whether validate the exemption is at or under the assignment scope.- Parameters:
assignmentScopeValidation- the assignmentScopeValidation value to set.- Returns:
- the PolicyExemptionInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-