Class PolicyInsightsPolicyStateCreatedEventData
java.lang.Object
com.azure.messaging.eventgrid.systemevents.PolicyInsightsPolicyStateCreatedEventData
Schema of the Data property of an EventGridEvent for a Microsoft.PolicyInsights.PolicyStateCreated event.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet 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.setComplianceReasonCode
(String complianceReasonCode) Set the complianceReasonCode property: The compliance reason code.setComplianceState
(String complianceState) Set the complianceState property: The compliance state of the resource with respect to the policy assignment.setPolicyAssignmentId
(String policyAssignmentId) Set the policyAssignmentId property: The resource ID of the policy assignment.setPolicyDefinitionId
(String policyDefinitionId) Set the policyDefinitionId property: The resource ID of the policy definition.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.setSubscriptionId
(String subscriptionId) Set the subscriptionId property: The subscription ID of the resource.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.
-
Constructor Details
-
PolicyInsightsPolicyStateCreatedEventData
public PolicyInsightsPolicyStateCreatedEventData()
-
-
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.
-
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 PolicyInsightsPolicyStateCreatedEventData object itself.
-
getPolicyAssignmentId
Get the policyAssignmentId property: The resource ID of the policy assignment.- Returns:
- the policyAssignmentId value.
-
setPolicyAssignmentId
Set the policyAssignmentId property: The resource ID of the policy assignment.- Parameters:
policyAssignmentId
- the policyAssignmentId value to set.- Returns:
- the PolicyInsightsPolicyStateCreatedEventData object itself.
-
getPolicyDefinitionId
Get the policyDefinitionId property: The resource ID of the policy definition.- Returns:
- the policyDefinitionId value.
-
setPolicyDefinitionId
Set the policyDefinitionId property: The resource ID of the policy definition.- Parameters:
policyDefinitionId
- the policyDefinitionId value to set.- Returns:
- the PolicyInsightsPolicyStateCreatedEventData object itself.
-
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 PolicyInsightsPolicyStateCreatedEventData 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 PolicyInsightsPolicyStateCreatedEventData object itself.
-
getComplianceState
Get the complianceState property: The compliance state of the resource with respect to the policy assignment.- Returns:
- the complianceState value.
-
setComplianceState
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 PolicyInsightsPolicyStateCreatedEventData object itself.
-
getSubscriptionId
Get the subscriptionId property: The subscription ID of the resource.- Returns:
- the subscriptionId value.
-
setSubscriptionId
Set the subscriptionId property: The subscription ID of the resource.- Parameters:
subscriptionId
- the subscriptionId value to set.- Returns:
- the PolicyInsightsPolicyStateCreatedEventData object itself.
-
getComplianceReasonCode
Get the complianceReasonCode property: The compliance reason code. May be empty.- Returns:
- the complianceReasonCode value.
-
setComplianceReasonCode
public PolicyInsightsPolicyStateCreatedEventData setComplianceReasonCode(String complianceReasonCode) Set the complianceReasonCode property: The compliance reason code. May be empty.- Parameters:
complianceReasonCode
- the complianceReasonCode value to set.- Returns:
- the PolicyInsightsPolicyStateCreatedEventData object itself.
-