Class HealthcareFhirResourceDeletedEventData

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

public final class HealthcareFhirResourceDeletedEventData extends Object implements com.azure.json.JsonSerializable<HealthcareFhirResourceDeletedEventData>
Schema of the Data property of an EventGridEvent for a Microsoft.HealthcareApis.FhirResourceDeleted event.
  • Method Details

    • getResourceType

      public HealthcareFhirResourceType getResourceType()
      Get the resourceType property: Type of HL7 FHIR resource.
      Returns:
      the resourceType value.
    • getResourceFhirAccount

      public String getResourceFhirAccount()
      Get the resourceFhirAccount property: Domain name of FHIR account for this resource.
      Returns:
      the resourceFhirAccount value.
    • getResourceFhirId

      public String getResourceFhirId()
      Get the resourceFhirId property: Id of HL7 FHIR resource.
      Returns:
      the resourceFhirId value.
    • getResourceVersionId

      public long getResourceVersionId()
      Get the resourceVersionId property: VersionId of HL7 FHIR resource. It changes when the resource is created, updated, or deleted(soft-deletion).
      Returns:
      the resourceVersionId value.
    • toJson

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

      public static HealthcareFhirResourceDeletedEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of HealthcareFhirResourceDeletedEventData from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of HealthcareFhirResourceDeletedEventData 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 HealthcareFhirResourceDeletedEventData.