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

public class AcsRouterWorkerEventData extends AcsRouterEventData
Schema of common properties of all Router Worker events.
  • Constructor Details

    • AcsRouterWorkerEventData

      protected AcsRouterWorkerEventData()
      Creates an instance of AcsRouterWorkerEventData class.
  • Method Details

    • getWorkerId

      public String getWorkerId()
      Get the workerId property: Router Worker events Worker Id.
      Returns:
      the workerId value.
    • getChannelId

      public String getChannelId()
      Get the channelId property: Router Event Channel ID.
      Overrides:
      getChannelId in class AcsRouterEventData
      Returns:
      the channelId value.
    • getChannelReference

      public String getChannelReference()
      Get the channelReference property: Router Event Channel Reference.
      Overrides:
      getChannelReference in class AcsRouterEventData
      Returns:
      the channelReference value.
    • getJobId

      public String getJobId()
      Get the jobId property: Router Event Job ID.
      Overrides:
      getJobId in class AcsRouterEventData
      Returns:
      the jobId value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AcsRouterEventData>
      Overrides:
      toJson in class AcsRouterEventData
      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.