Lezen in het Engels

Delen via


DataBoxCopyStartedEventData Class

  • java.lang.Object
    • com.azure.messaging.eventgrid.systemevents.DataBoxCopyStartedEventData

Implements

public final class DataBoxCopyStartedEventData
implements JsonSerializable<DataBoxCopyStartedEventData>

Schema of the Data property of an EventGridEvent for a Microsoft.DataBox.CopyStarted event.

Constructor Summary

Constructor Description
DataBoxCopyStartedEventData()

Creates an instance of DataBoxCopyStartedEventData class.

Method Summary

Modifier and Type Method and Description
static DataBoxCopyStartedEventData fromJson(JsonReader jsonReader)

Reads an instance of DataBoxCopyStartedEventData from the JsonReader.

String getSerialNumber()

Get the serialNumber property: Serial Number of the device associated with the event.

DataBoxStageName getStageName()

Get the stageName property: Name of the current Stage.

OffsetDateTime getStageTime()

Get the stageTime property: The time at which the stage happened.

DataBoxCopyStartedEventData setSerialNumber(String serialNumber)

Set the serialNumber property: Serial Number of the device associated with the event.

DataBoxCopyStartedEventData setStageName(DataBoxStageName stageName)

Set the stageName property: Name of the current Stage.

DataBoxCopyStartedEventData setStageTime(OffsetDateTime stageTime)

Set the stageTime property: The time at which the stage happened.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

DataBoxCopyStartedEventData

public DataBoxCopyStartedEventData()

Creates an instance of DataBoxCopyStartedEventData class.

Method Details

fromJson

public static DataBoxCopyStartedEventData fromJson(JsonReader jsonReader)

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:

IOException

- If an error occurs while reading the DataBoxCopyStartedEventData.

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.

setSerialNumber

public DataBoxCopyStartedEventData setSerialNumber(String serialNumber)

Set 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.

Parameters:

serialNumber - the serialNumber value to set.

Returns:

the DataBoxCopyStartedEventData object itself.

setStageName

public DataBoxCopyStartedEventData setStageName(DataBoxStageName stageName)

Set the stageName property: Name of the current Stage.

Parameters:

stageName - the stageName value to set.

Returns:

the DataBoxCopyStartedEventData object itself.

setStageTime

public DataBoxCopyStartedEventData setStageTime(OffsetDateTime stageTime)

Set the stageTime property: The time at which the stage happened.

Parameters:

stageTime - the stageTime value to set.

Returns:

the DataBoxCopyStartedEventData object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to

Azure SDK for Java

Latest