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 Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of HealthcareFhirResourceCreatedEventData from the JsonReader.Get the resourceFhirAccount property: Domain name of FHIR account for this resource.Get the resourceFhirId property: Id of HL7 FHIR resource.Get the resourceType property: Type of HL7 FHIR resource.longGet the resourceVersionId property: VersionId of HL7 FHIR resource.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
-
getResourceType
Get the resourceType property: Type of HL7 FHIR resource.- Returns:
- the resourceType value.
-
getResourceFhirAccount
Get the resourceFhirAccount property: Domain name of FHIR account for this resource.- Returns:
- the resourceFhirAccount value.
-
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
- Specified by:
toJsonin interfacecom.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.
-