Class PolicyInsightsPolicyStateCreatedEventData
java.lang.Object
com.azure.messaging.eventgrid.systemevents.PolicyInsightsPolicyStateCreatedEventData
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PolicyInsightsPolicyStateCreatedEventData>
public final class PolicyInsightsPolicyStateCreatedEventData
extends Object
implements com.azure.json.JsonSerializable<PolicyInsightsPolicyStateCreatedEventData>
Schema of the Data property of an EventGridEvent for a Microsoft.PolicyInsights.PolicyStateCreated event.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PolicyInsightsPolicyStateCreatedEventData from the JsonReader.Get the complianceReasonCode property: The compliance reason code.Get the complianceState property: The compliance state of the resource with respect to the policy assignment.Get the policyAssignmentId property: The resource ID of the policy assignment.Get the policyDefinitionId property: The resource ID of the policy definition.Get the policyDefinitionReferenceId property: The reference ID for the policy definition inside the initiative definition, if the policy assignment is for an initiative.Get the subscriptionId property: The subscription ID of the resource.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.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
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
Get the policyAssignmentId property: The resource ID of the policy assignment.- Returns:
- the policyAssignmentId value.
-
getPolicyDefinitionId
Get the policyDefinitionId property: The resource ID of the policy definition.- Returns:
- the policyDefinitionId value.
-
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
Get the complianceState property: The compliance state of the resource with respect to the policy assignment.- Returns:
- the complianceState value.
-
getSubscriptionId
Get the subscriptionId property: The subscription ID of the resource.- Returns:
- the subscriptionId value.
-
getComplianceReasonCode
Get the complianceReasonCode property: The compliance reason code. May be empty.- Returns:
- the complianceReasonCode value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<PolicyInsightsPolicyStateCreatedEventData>- Throws:
IOException
-
fromJson
public static PolicyInsightsPolicyStateCreatedEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PolicyInsightsPolicyStateCreatedEventData from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PolicyInsightsPolicyStateCreatedEventData 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 PolicyInsightsPolicyStateCreatedEventData.
-