Class HealthcareFhirResourceCreatedEventData

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

public final class HealthcareFhirResourceCreatedEventData extends Object implements com.azure.json.JsonSerializable<HealthcareFhirResourceCreatedEventData>
Schema of the Data property of an EventGridEvent for a Microsoft.HealthcareApis.FhirResourceCreated 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<HealthcareFhirResourceCreatedEventData>
      Throws:
      IOException
    • fromJson

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