Class PolicyInsightsPolicyStateCreatedEventData

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

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

    • PolicyInsightsPolicyStateCreatedEventData

      public PolicyInsightsPolicyStateCreatedEventData()
  • 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 PolicyInsightsPolicyStateCreatedEventData object itself.
    • getPolicyAssignmentId

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

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

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

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

      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 PolicyInsightsPolicyStateCreatedEventData 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 PolicyInsightsPolicyStateCreatedEventData object itself.
    • getSubscriptionId

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

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

      public String 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.