MediaJobOutputStateChangeEventData Class

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

Implements

public class MediaJobOutputStateChangeEventData
implements JsonSerializable<MediaJobOutputStateChangeEventData>

Schema of the Data property of an EventGridEvent for a Microsoft.Media.JobOutputStateChange event.

Constructor Summary

Constructor Description
MediaJobOutputStateChangeEventData()

Creates an instance of MediaJobOutputStateChangeEventData class.

Method Summary

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

Reads an instance of MediaJobOutputStateChangeEventData from the JsonReader.

Map<String,String> getJobCorrelationData()

Get the jobCorrelationData property: Gets the Job correlation data.

MediaJobOutput getOutput()

Get the output property: Gets the output.

MediaJobState getPreviousState()

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

MediaJobOutputStateChangeEventData setJobCorrelationData(Map<String,String> jobCorrelationData)

Set the jobCorrelationData property: Gets the Job correlation data.

MediaJobOutputStateChangeEventData setOutput(MediaJobOutput output)

Set the output property: Gets the output.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

MediaJobOutputStateChangeEventData

public MediaJobOutputStateChangeEventData()

Creates an instance of MediaJobOutputStateChangeEventData class.

Method Details

fromJson

public static MediaJobOutputStateChangeEventData fromJson(JsonReader jsonReader)

Reads an instance of MediaJobOutputStateChangeEventData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getJobCorrelationData

public Map getJobCorrelationData()

Get the jobCorrelationData property: Gets the Job correlation data.

Returns:

the jobCorrelationData value.

getOutput

public MediaJobOutput getOutput()

Get the output property: Gets the output.

Returns:

the output value.

getPreviousState

public MediaJobState getPreviousState()

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

Returns:

the previousState value.

setJobCorrelationData

public MediaJobOutputStateChangeEventData setJobCorrelationData(Map jobCorrelationData)

Set the jobCorrelationData property: Gets the Job correlation data.

Parameters:

jobCorrelationData - the jobCorrelationData value to set.

Returns:

the MediaJobOutputStateChangeEventData object itself.

setOutput

public MediaJobOutputStateChangeEventData setOutput(MediaJobOutput output)

Set the output property: Gets the output.

Parameters:

output - the output value to set.

Returns:

the MediaJobOutputStateChangeEventData object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to