Class DataBoxCopyStartedEventData

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

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

    • getSerialNumber

      public String getSerialNumber()
      Get the serialNumber property: Serial Number of the device associated with the event. The list is comma separated if more than one serial number is associated.
      Returns:
      the serialNumber value.
    • getStageName

      public DataBoxStageName getStageName()
      Get the stageName property: Name of the current Stage.
      Returns:
      the stageName value.
    • getStageTime

      public OffsetDateTime getStageTime()
      Get the stageTime property: The time at which the stage happened.
      Returns:
      the stageTime value.
    • toJson

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

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