Class PolicyExemptionInner


  • public final class PolicyExemptionInner
    extends com.azure.core.management.ProxyResource
    The policy exemption.
    • Constructor Detail

      • PolicyExemptionInner

        public PolicyExemptionInner()
    • Method Detail

      • 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

        public String policyAssignmentId()
        Get the policyAssignmentId property: The ID of the policy assignment that is being exempted.
        Returns:
        the policyAssignmentId value.
      • withPolicyAssignmentId

        public PolicyExemptionInner 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 PolicyExemptionInner 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 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

        public ExemptionCategory exemptionCategory()
        Get the exemptionCategory property: The policy exemption category. Possible values are Waiver and Mitigated.
        Returns:
        the exemptionCategory value.
      • withExemptionCategory

        public PolicyExemptionInner 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 PolicyExemptionInner 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 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.
        Parameters:
        expiresOn - the expiresOn value to set.
        Returns:
        the PolicyExemptionInner object itself.
      • displayName

        public String displayName()
        Get the displayName property: The display name of the policy exemption.
        Returns:
        the displayName value.
      • withDisplayName

        public PolicyExemptionInner withDisplayName​(String displayName)
        Set the displayName property: The display name of the policy exemption.
        Parameters:
        displayName - the displayName value to set.
        Returns:
        the PolicyExemptionInner object itself.
      • description

        public String description()
        Get the description property: The description of the policy exemption.
        Returns:
        the description value.
      • withDescription

        public PolicyExemptionInner withDescription​(String description)
        Set the description property: The description of the policy exemption.
        Parameters:
        description - the description value to set.
        Returns:
        the PolicyExemptionInner 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 PolicyExemptionInner 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 PolicyExemptionInner object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.