MediaJobCancelingEventData Class

public final class MediaJobCancelingEventData
extends MediaJobStateChangeEventData

Job canceling event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobCanceling event.

Constructor Summary

Constructor Description
MediaJobCancelingEventData()

Creates an instance of MediaJobCancelingEventData class.

Method Summary

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

Reads an instance of MediaJobCancelingEventData from the JsonReader.

MediaJobState getPreviousState()

Get the previousState property: The previous state of the Job.

MediaJobState getState()

Get the state property: The new state of the Job.

MediaJobCancelingEventData setCorrelationData(Map<String,String> correlationData)

Set the correlationData property: Gets the Job correlation data.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from MediaJobStateChangeEventData

Methods inherited from java.lang.Object

Constructor Details

MediaJobCancelingEventData

public MediaJobCancelingEventData()

Creates an instance of MediaJobCancelingEventData class.

Method Details

fromJson

public static MediaJobCancelingEventData fromJson(JsonReader jsonReader)

Reads an instance of MediaJobCancelingEventData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MediaJobCancelingEventData 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 MediaJobCancelingEventData.

getPreviousState

public MediaJobState getPreviousState()

Get the previousState property: The previous state of the Job.

Overrides:

MediaJobCancelingEventData.getPreviousState()

Returns:

the previousState value.

getState

public MediaJobState getState()

Get the state property: The new state of the Job.

Overrides:

MediaJobCancelingEventData.getState()

Returns:

the state value.

setCorrelationData

public MediaJobCancelingEventData setCorrelationData(Map correlationData)

Set the correlationData property: Gets the Job correlation data.

Overrides:

MediaJobCancelingEventData.setCorrelationData(Map<String,String> correlationData)

Parameters:

correlationData

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MediaJobCancelingEventData.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to

Azure SDK for Java

Latest