Class AcsRouterWorkerEventData
java.lang.Object
com.azure.messaging.eventgrid.systemevents.AcsRouterEventData
com.azure.messaging.eventgrid.systemevents.AcsRouterWorkerEventData
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AcsRouterEventData>
- Direct Known Subclasses:
AcsRouterWorkerDeletedEventData,AcsRouterWorkerOfferAcceptedEventData,AcsRouterWorkerOfferDeclinedEventData,AcsRouterWorkerOfferExpiredEventData,AcsRouterWorkerOfferIssuedEventData,AcsRouterWorkerOfferRevokedEventData
Schema of common properties of all Router Worker events.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates an instance of AcsRouterWorkerEventData class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AcsRouterWorkerEventDatafromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AcsRouterWorkerEventData from the JsonReader.Get the channelId property: Router Event Channel ID.Get the channelReference property: Router Event Channel Reference.getJobId()Get the jobId property: Router Event Job ID.Get the workerId property: Router Worker events Worker Id.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
-
Constructor Details
-
AcsRouterWorkerEventData
protected AcsRouterWorkerEventData()Creates an instance of AcsRouterWorkerEventData class.
-
-
Method Details
-
getWorkerId
Get the workerId property: Router Worker events Worker Id.- Returns:
- the workerId value.
-
getChannelId
Get the channelId property: Router Event Channel ID.- Overrides:
getChannelIdin classAcsRouterEventData- Returns:
- the channelId value.
-
getChannelReference
Get the channelReference property: Router Event Channel Reference.- Overrides:
getChannelReferencein classAcsRouterEventData- Returns:
- the channelReference value.
-
getJobId
Get the jobId property: Router Event Job ID.- Overrides:
getJobIdin classAcsRouterEventData- Returns:
- the jobId value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AcsRouterEventData>- Overrides:
toJsonin classAcsRouterEventData- Throws:
IOException
-
fromJson
public static AcsRouterWorkerEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AcsRouterWorkerEventData from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AcsRouterWorkerEventData if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the AcsRouterWorkerEventData.
-