Class PolicyInsightsPolicyStateChangedEventData

java.lang.Object
com.azure.messaging.eventgrid.systemevents.PolicyInsightsPolicyStateChangedEventData

public final class PolicyInsightsPolicyStateChangedEventData extends Object
Schema of the Data property of an EventGridEvent for a Microsoft.PolicyInsights.PolicyStateChanged event.
  • Constructor Details

    • PolicyInsightsPolicyStateChangedEventData

      public PolicyInsightsPolicyStateChangedEventData()
  • Method Details

    • 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

      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 PolicyInsightsPolicyStateChangedEventData object itself.
    • getPolicyAssignmentId

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

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

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

      public PolicyInsightsPolicyStateChangedEventData setPolicyDefinitionId(String policyDefinitionId)
      Set the policyDefinitionId property: The resource ID of the policy definition.
      Parameters:
      policyDefinitionId - the policyDefinitionId value to set.
      Returns:
      the PolicyInsightsPolicyStateChangedEventData 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 PolicyInsightsPolicyStateChangedEventData 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 PolicyInsightsPolicyStateChangedEventData 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 PolicyInsightsPolicyStateChangedEventData 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 PolicyInsightsPolicyStateChangedEventData object itself.
    • getSubscriptionId

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

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

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

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