Class PolicyInsightsPolicyStateDeletedEventData

java.lang.Object
com.azure.messaging.eventgrid.systemevents.PolicyInsightsPolicyStateDeletedEventData
All Implemented Interfaces:
com.azure.json.JsonSerializable<PolicyInsightsPolicyStateDeletedEventData>

public final class PolicyInsightsPolicyStateDeletedEventData extends Object implements com.azure.json.JsonSerializable<PolicyInsightsPolicyStateDeletedEventData>
Schema of the Data property of an EventGridEvent for a Microsoft.PolicyInsights.PolicyStateDeleted event.
  • 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.
    • getPolicyAssignmentId

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

      public String getPolicyDefinitionId()
      Get the policyDefinitionId property: The resource ID of the policy definition.
      Returns:
      the policyDefinitionId value.
    • 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.
    • getComplianceState

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

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

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<PolicyInsightsPolicyStateDeletedEventData>
      Throws:
      IOException
    • fromJson

      public static PolicyInsightsPolicyStateDeletedEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of PolicyInsightsPolicyStateDeletedEventData from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of PolicyInsightsPolicyStateDeletedEventData if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the PolicyInsightsPolicyStateDeletedEventData.