Class PolicyInsightsPolicyStateDeletedEventData


  • public final class PolicyInsightsPolicyStateDeletedEventData
    extends Object
    Schema of the Data property of an EventGridEvent for a Microsoft.PolicyInsights.PolicyStateDeleted event.
    • Constructor Detail

      • PolicyInsightsPolicyStateDeletedEventData

        public PolicyInsightsPolicyStateDeletedEventData()
    • Method Detail

      • getTimestamp

        public OffsetDateTime getTimestamp()
        Get the timestamp property: The time that the resource was scanned by Azure Policy in the Universal ISO 8601 DateTime format yyyy-MM-ddTHH:mm:ss.fffffffZ.
        Returns:
        the timestamp value.
      • setTimestamp

        public PolicyInsightsPolicyStateDeletedEventData setTimestamp​(OffsetDateTime timestamp)
        Set the timestamp property: The time that the resource was scanned by Azure Policy in the Universal ISO 8601 DateTime format yyyy-MM-ddTHH:mm:ss.fffffffZ.
        Parameters:
        timestamp - the timestamp value to set.
        Returns:
        the PolicyInsightsPolicyStateDeletedEventData object itself.
      • getPolicyAssignmentId

        public String getPolicyAssignmentId()
        Get the policyAssignmentId property: The resource ID of the policy assignment.
        Returns:
        the policyAssignmentId value.
      • setPolicyAssignmentId

        public PolicyInsightsPolicyStateDeletedEventData setPolicyAssignmentId​(String policyAssignmentId)
        Set the policyAssignmentId property: The resource ID of the policy assignment.
        Parameters:
        policyAssignmentId - the policyAssignmentId value to set.
        Returns:
        the PolicyInsightsPolicyStateDeletedEventData object itself.
      • getPolicyDefinitionId

        public String getPolicyDefinitionId()
        Get the policyDefinitionId property: The resource ID of the policy definition.
        Returns:
        the policyDefinitionId value.
      • setPolicyDefinitionId

        public PolicyInsightsPolicyStateDeletedEventData setPolicyDefinitionId​(String policyDefinitionId)
        Set the policyDefinitionId property: The resource ID of the policy definition.
        Parameters:
        policyDefinitionId - the policyDefinitionId value to set.
        Returns:
        the PolicyInsightsPolicyStateDeletedEventData object itself.
      • getPolicyDefinitionReferenceId

        public String getPolicyDefinitionReferenceId()
        Get the policyDefinitionReferenceId property: The reference ID for the policy definition inside the initiative definition, if the policy assignment is for an initiative. May be empty.
        Returns:
        the policyDefinitionReferenceId value.
      • setPolicyDefinitionReferenceId

        public PolicyInsightsPolicyStateDeletedEventData setPolicyDefinitionReferenceId​(String policyDefinitionReferenceId)
        Set the policyDefinitionReferenceId property: The reference ID for the policy definition inside the initiative definition, if the policy assignment is for an initiative. May be empty.
        Parameters:
        policyDefinitionReferenceId - the policyDefinitionReferenceId value to set.
        Returns:
        the PolicyInsightsPolicyStateDeletedEventData object itself.
      • getComplianceState

        public String getComplianceState()
        Get the complianceState property: The compliance state of the resource with respect to the policy assignment.
        Returns:
        the complianceState value.
      • setComplianceState

        public PolicyInsightsPolicyStateDeletedEventData setComplianceState​(String complianceState)
        Set the complianceState property: The compliance state of the resource with respect to the policy assignment.
        Parameters:
        complianceState - the complianceState value to set.
        Returns:
        the PolicyInsightsPolicyStateDeletedEventData object itself.
      • getSubscriptionId

        public String getSubscriptionId()
        Get the subscriptionId property: The subscription ID of the resource.
        Returns:
        the subscriptionId value.
      • setSubscriptionId

        public PolicyInsightsPolicyStateDeletedEventData setSubscriptionId​(String subscriptionId)
        Set the subscriptionId property: The subscription ID of the resource.
        Parameters:
        subscriptionId - the subscriptionId value to set.
        Returns:
        the PolicyInsightsPolicyStateDeletedEventData object itself.
      • getComplianceReasonCode

        public String getComplianceReasonCode()
        Get the complianceReasonCode property: The compliance reason code. May be empty.
        Returns:
        the complianceReasonCode value.
      • setComplianceReasonCode

        public PolicyInsightsPolicyStateDeletedEventData setComplianceReasonCode​(String complianceReasonCode)
        Set the complianceReasonCode property: The compliance reason code. May be empty.
        Parameters:
        complianceReasonCode - the complianceReasonCode value to set.
        Returns:
        the PolicyInsightsPolicyStateDeletedEventData object itself.