Class MediaJobOutput
- java.lang.Object
-
- com.microsoft.azure.eventgrid.models.MediaJobOutput
-
- Direct Known Subclasses:
MediaJobOutputAsset
public class MediaJobOutput extends Object
The event data for a Job output.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMediaJobOutput()Private constructor for deserialization.MediaJobOutput(long progress, MediaJobState state)Creates an instance of MediaJobOutput class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaJobErrorerror()Get gets the Job output error.Stringlabel()Get gets the Job output label.longprogress()Get gets the Job output progress.MediaJobStatestate()Get gets the Job output state.MediaJobOutputwithError(MediaJobError error)Set gets the Job output error.MediaJobOutputwithLabel(String label)Set gets the Job output label.
-
-
-
Constructor Detail
-
MediaJobOutput
public MediaJobOutput(long progress, MediaJobState state)Creates an instance of MediaJobOutput class.- Parameters:
progress- gets the Job output progress.state- gets the Job output state. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled'.
-
MediaJobOutput
protected MediaJobOutput()
Private constructor for deserialization.
-
-
Method Detail
-
error
public MediaJobError error()
Get gets the Job output error.- Returns:
- the error value
-
withError
public MediaJobOutput withError(MediaJobError error)
Set gets the Job output error.- Parameters:
error- the error value to set- Returns:
- the MediaJobOutput object itself.
-
label
public String label()
Get gets the Job output label.- Returns:
- the label value
-
withLabel
public MediaJobOutput withLabel(String label)
Set gets the Job output label.- Parameters:
label- the label value to set- Returns:
- the MediaJobOutput object itself.
-
progress
public long progress()
Get gets the Job output progress.- Returns:
- the progress value
-
state
public MediaJobState state()
Get gets the Job output state. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled'.- Returns:
- the state value
-
-