/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.elastictranscoder.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A section of the response body that provides information about the job that is created. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Job implements Serializable, Cloneable, StructuredPojo { /** ** The identifier that Elastic Transcoder assigned to the job. You use this value to get settings for the job or to * delete the job. *
*/ private String id; /** ** The Amazon Resource Name (ARN) for the job. *
*/ private String arn; /** *
* The Id
of the pipeline that you want Elastic Transcoder to use for transcoding. The pipeline
* determines several settings, including the Amazon S3 bucket from which Elastic Transcoder gets the files to
* transcode and the bucket into which Elastic Transcoder puts the transcoded files.
*
* A section of the request or response body that provides information about the file that is being transcoded. *
*/ private JobInput input; /** ** Information about the files that you're transcoding. If you specified multiple files for this job, Elastic * Transcoder stitches the files together to make one output. *
*/ private com.amazonaws.internal.SdkInternalList* If you specified one output for a job, information about that output. If you specified multiple outputs for a * job, the Output object lists information about the first output. This duplicates the information that is listed * for the first output in the Outputs object. *
** Outputs recommended instead. *
** A section of the request or response body that provides information about the transcoded (target) file. *
*/ private JobOutput output; /** *
* Information about the output files. We recommend that you use the Outputs
syntax for all jobs, even
* when you want Elastic Transcoder to transcode a file into only one format. Do not use both the
* Outputs
and Output
syntaxes in the same request. You can create a maximum of 30 outputs
* per job.
*
* If you specify more than one output for a job, Elastic Transcoder creates the files for each output in the order * in which you specify them in the job. *
*/ private com.amazonaws.internal.SdkInternalList
* The value, if any, that you want Elastic Transcoder to prepend to the names of all files that this job creates,
* including output files, thumbnails, and playlists. We recommend that you add a / or some other delimiter to the
* end of the OutputKeyPrefix
.
*
* Outputs in Fragmented MP4 or MPEG-TS format only. *
*
* If you specify a preset in PresetId
for which the value of Container
is fmp4
* (Fragmented MP4) or ts (MPEG-TS), Playlists
contains information about the master playlists that you
* want Elastic Transcoder to create.
*
* The maximum number of master playlists in a job is 30. *
*/ private com.amazonaws.internal.SdkInternalList
* The status of the job: Submitted
, Progressing
, Complete
,
* Canceled
, or Error
.
*
* User-defined metadata that you want to associate with an Elastic Transcoder job. You specify metadata in
* key/value
pairs, and you can add up to 10 key/value
pairs per job. Elastic Transcoder
* does not guarantee that key/value
pairs are returned in the same order in which you specify them.
*
* Metadata keys
and values
must use characters from the following list:
*
* 0-9
*
* A-Z
and a-z
*
* Space
*
* The following symbols: _.:/=+-%@
*
* Details about the timing of a job. *
*/ private Timing timing; /** ** The identifier that Elastic Transcoder assigned to the job. You use this value to get settings for the job or to * delete the job. *
* * @param id * The identifier that Elastic Transcoder assigned to the job. You use this value to get settings for the job * or to delete the job. */ public void setId(String id) { this.id = id; } /** ** The identifier that Elastic Transcoder assigned to the job. You use this value to get settings for the job or to * delete the job. *
* * @return The identifier that Elastic Transcoder assigned to the job. You use this value to get settings for the * job or to delete the job. */ public String getId() { return this.id; } /** ** The identifier that Elastic Transcoder assigned to the job. You use this value to get settings for the job or to * delete the job. *
* * @param id * The identifier that Elastic Transcoder assigned to the job. You use this value to get settings for the job * or to delete the job. * @return Returns a reference to this object so that method calls can be chained together. */ public Job withId(String id) { setId(id); return this; } /** ** The Amazon Resource Name (ARN) for the job. *
* * @param arn * The Amazon Resource Name (ARN) for the job. */ public void setArn(String arn) { this.arn = arn; } /** ** The Amazon Resource Name (ARN) for the job. *
* * @return The Amazon Resource Name (ARN) for the job. */ public String getArn() { return this.arn; } /** ** The Amazon Resource Name (ARN) for the job. *
* * @param arn * The Amazon Resource Name (ARN) for the job. * @return Returns a reference to this object so that method calls can be chained together. */ public Job withArn(String arn) { setArn(arn); return this; } /** *
* The Id
of the pipeline that you want Elastic Transcoder to use for transcoding. The pipeline
* determines several settings, including the Amazon S3 bucket from which Elastic Transcoder gets the files to
* transcode and the bucket into which Elastic Transcoder puts the transcoded files.
*
Id
of the pipeline that you want Elastic Transcoder to use for transcoding. The pipeline
* determines several settings, including the Amazon S3 bucket from which Elastic Transcoder gets the files
* to transcode and the bucket into which Elastic Transcoder puts the transcoded files.
*/
public void setPipelineId(String pipelineId) {
this.pipelineId = pipelineId;
}
/**
*
* The Id
of the pipeline that you want Elastic Transcoder to use for transcoding. The pipeline
* determines several settings, including the Amazon S3 bucket from which Elastic Transcoder gets the files to
* transcode and the bucket into which Elastic Transcoder puts the transcoded files.
*
Id
of the pipeline that you want Elastic Transcoder to use for transcoding. The pipeline
* determines several settings, including the Amazon S3 bucket from which Elastic Transcoder gets the files
* to transcode and the bucket into which Elastic Transcoder puts the transcoded files.
*/
public String getPipelineId() {
return this.pipelineId;
}
/**
*
* The Id
of the pipeline that you want Elastic Transcoder to use for transcoding. The pipeline
* determines several settings, including the Amazon S3 bucket from which Elastic Transcoder gets the files to
* transcode and the bucket into which Elastic Transcoder puts the transcoded files.
*
Id
of the pipeline that you want Elastic Transcoder to use for transcoding. The pipeline
* determines several settings, including the Amazon S3 bucket from which Elastic Transcoder gets the files
* to transcode and the bucket into which Elastic Transcoder puts the transcoded files.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Job withPipelineId(String pipelineId) {
setPipelineId(pipelineId);
return this;
}
/**
* * A section of the request or response body that provides information about the file that is being transcoded. *
* * @param input * A section of the request or response body that provides information about the file that is being * transcoded. */ public void setInput(JobInput input) { this.input = input; } /** ** A section of the request or response body that provides information about the file that is being transcoded. *
* * @return A section of the request or response body that provides information about the file that is being * transcoded. */ public JobInput getInput() { return this.input; } /** ** A section of the request or response body that provides information about the file that is being transcoded. *
* * @param input * A section of the request or response body that provides information about the file that is being * transcoded. * @return Returns a reference to this object so that method calls can be chained together. */ public Job withInput(JobInput input) { setInput(input); return this; } /** ** Information about the files that you're transcoding. If you specified multiple files for this job, Elastic * Transcoder stitches the files together to make one output. *
* * @return Information about the files that you're transcoding. If you specified multiple files for this job, * Elastic Transcoder stitches the files together to make one output. */ public java.util.List* Information about the files that you're transcoding. If you specified multiple files for this job, Elastic * Transcoder stitches the files together to make one output. *
* * @param inputs * Information about the files that you're transcoding. If you specified multiple files for this job, Elastic * Transcoder stitches the files together to make one output. */ public void setInputs(java.util.Collection* Information about the files that you're transcoding. If you specified multiple files for this job, Elastic * Transcoder stitches the files together to make one output. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setInputs(java.util.Collection)} or {@link #withInputs(java.util.Collection)} if you want to override the * existing values. *
* * @param inputs * Information about the files that you're transcoding. If you specified multiple files for this job, Elastic * Transcoder stitches the files together to make one output. * @return Returns a reference to this object so that method calls can be chained together. */ public Job withInputs(JobInput... inputs) { if (this.inputs == null) { setInputs(new com.amazonaws.internal.SdkInternalList* Information about the files that you're transcoding. If you specified multiple files for this job, Elastic * Transcoder stitches the files together to make one output. *
* * @param inputs * Information about the files that you're transcoding. If you specified multiple files for this job, Elastic * Transcoder stitches the files together to make one output. * @return Returns a reference to this object so that method calls can be chained together. */ public Job withInputs(java.util.Collection* If you specified one output for a job, information about that output. If you specified multiple outputs for a * job, the Output object lists information about the first output. This duplicates the information that is listed * for the first output in the Outputs object. *
** Outputs recommended instead. *
** A section of the request or response body that provides information about the transcoded (target) file. *
* * @param output * If you specified one output for a job, information about that output. If you specified multiple outputs * for a job, the Output object lists information about the first output. This duplicates the information * that is listed for the first output in the Outputs object.* Outputs recommended instead. *
** A section of the request or response body that provides information about the transcoded (target) file. */ public void setOutput(JobOutput output) { this.output = output; } /** *
* If you specified one output for a job, information about that output. If you specified multiple outputs for a * job, the Output object lists information about the first output. This duplicates the information that is listed * for the first output in the Outputs object. *
** Outputs recommended instead. *
** A section of the request or response body that provides information about the transcoded (target) file. *
* * @return If you specified one output for a job, information about that output. If you specified multiple outputs * for a job, the Output object lists information about the first output. This duplicates the information * that is listed for the first output in the Outputs object.* Outputs recommended instead. *
** A section of the request or response body that provides information about the transcoded (target) file. */ public JobOutput getOutput() { return this.output; } /** *
* If you specified one output for a job, information about that output. If you specified multiple outputs for a * job, the Output object lists information about the first output. This duplicates the information that is listed * for the first output in the Outputs object. *
** Outputs recommended instead. *
** A section of the request or response body that provides information about the transcoded (target) file. *
* * @param output * If you specified one output for a job, information about that output. If you specified multiple outputs * for a job, the Output object lists information about the first output. This duplicates the information * that is listed for the first output in the Outputs object.* Outputs recommended instead. *
** A section of the request or response body that provides information about the transcoded (target) file. * @return Returns a reference to this object so that method calls can be chained together. */ public Job withOutput(JobOutput output) { setOutput(output); return this; } /** *
* Information about the output files. We recommend that you use the Outputs
syntax for all jobs, even
* when you want Elastic Transcoder to transcode a file into only one format. Do not use both the
* Outputs
and Output
syntaxes in the same request. You can create a maximum of 30 outputs
* per job.
*
* If you specify more than one output for a job, Elastic Transcoder creates the files for each output in the order * in which you specify them in the job. *
* * @return Information about the output files. We recommend that you use theOutputs
syntax for all
* jobs, even when you want Elastic Transcoder to transcode a file into only one format. Do not use both the
* Outputs
and Output
syntaxes in the same request. You can create a maximum of 30
* outputs per job.
*
* If you specify more than one output for a job, Elastic Transcoder creates the files for each output in
* the order in which you specify them in the job.
*/
public java.util.List
* Information about the output files. We recommend that you use the
* If you specify more than one output for a job, Elastic Transcoder creates the files for each output in the order
* in which you specify them in the job.
* Outputs
syntax for all jobs, even
* when you want Elastic Transcoder to transcode a file into only one format. Do not use both the
* Outputs
and Output
syntaxes in the same request. You can create a maximum of 30 outputs
* per job.
* Outputs
syntax for all
* jobs, even when you want Elastic Transcoder to transcode a file into only one format. Do not use both the
* Outputs
and Output
syntaxes in the same request. You can create a maximum of 30
* outputs per job.
* If you specify more than one output for a job, Elastic Transcoder creates the files for each output in the
* order in which you specify them in the job.
*/
public void setOutputs(java.util.Collection
* Information about the output files. We recommend that you use the
* If you specify more than one output for a job, Elastic Transcoder creates the files for each output in the order
* in which you specify them in the job.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setOutputs(java.util.Collection)} or {@link #withOutputs(java.util.Collection)} if you want to override
* the existing values.
* Outputs
syntax for all jobs, even
* when you want Elastic Transcoder to transcode a file into only one format. Do not use both the
* Outputs
and Output
syntaxes in the same request. You can create a maximum of 30 outputs
* per job.
* Outputs
syntax for all
* jobs, even when you want Elastic Transcoder to transcode a file into only one format. Do not use both the
* Outputs
and Output
syntaxes in the same request. You can create a maximum of 30
* outputs per job.
* If you specify more than one output for a job, Elastic Transcoder creates the files for each output in the
* order in which you specify them in the job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Job withOutputs(JobOutput... outputs) {
if (this.outputs == null) {
setOutputs(new com.amazonaws.internal.SdkInternalList
* Information about the output files. We recommend that you use the
* If you specify more than one output for a job, Elastic Transcoder creates the files for each output in the order
* in which you specify them in the job.
* Outputs
syntax for all jobs, even
* when you want Elastic Transcoder to transcode a file into only one format. Do not use both the
* Outputs
and Output
syntaxes in the same request. You can create a maximum of 30 outputs
* per job.
* Outputs
syntax for all
* jobs, even when you want Elastic Transcoder to transcode a file into only one format. Do not use both the
* Outputs
and Output
syntaxes in the same request. You can create a maximum of 30
* outputs per job.
* If you specify more than one output for a job, Elastic Transcoder creates the files for each output in the
* order in which you specify them in the job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Job withOutputs(java.util.Collection
* The value, if any, that you want Elastic Transcoder to prepend to the names of all files that this job creates,
* including output files, thumbnails, and playlists. We recommend that you add a / or some other delimiter to the
* end of the
* The value, if any, that you want Elastic Transcoder to prepend to the names of all files that this job creates,
* including output files, thumbnails, and playlists. We recommend that you add a / or some other delimiter to the
* end of the
* The value, if any, that you want Elastic Transcoder to prepend to the names of all files that this job creates,
* including output files, thumbnails, and playlists. We recommend that you add a / or some other delimiter to the
* end of the
* Outputs in Fragmented MP4 or MPEG-TS format only.
*
* If you specify a preset in
* The maximum number of master playlists in a job is 30.
*
* Outputs in Fragmented MP4 or MPEG-TS format only.
*
* If you specify a preset in
* The maximum number of master playlists in a job is 30.
*/
public java.util.List
* Outputs in Fragmented MP4 or MPEG-TS format only.
*
* If you specify a preset in
* The maximum number of master playlists in a job is 30.
*
* Outputs in Fragmented MP4 or MPEG-TS format only.
*
* If you specify a preset in
* The maximum number of master playlists in a job is 30.
*/
public void setPlaylists(java.util.Collection
* Outputs in Fragmented MP4 or MPEG-TS format only.
*
* If you specify a preset in
* The maximum number of master playlists in a job is 30.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setPlaylists(java.util.Collection)} or {@link #withPlaylists(java.util.Collection)} if you want to
* override the existing values.
*
* Outputs in Fragmented MP4 or MPEG-TS format only.
*
* If you specify a preset in
* The maximum number of master playlists in a job is 30.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Job withPlaylists(Playlist... playlists) {
if (this.playlists == null) {
setPlaylists(new com.amazonaws.internal.SdkInternalList
* Outputs in Fragmented MP4 or MPEG-TS format only.
*
* If you specify a preset in
* The maximum number of master playlists in a job is 30.
*
* Outputs in Fragmented MP4 or MPEG-TS format only.
*
* If you specify a preset in
* The maximum number of master playlists in a job is 30.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Job withPlaylists(java.util.Collection
* The status of the job:
* The status of the job:
* The status of the job:
* User-defined metadata that you want to associate with an Elastic Transcoder job. You specify metadata in
*
* Metadata
*
*
*
* The following symbols:
* Metadata
*
*
*
* The following symbols:
* User-defined metadata that you want to associate with an Elastic Transcoder job. You specify metadata in
*
* Metadata
*
*
*
* The following symbols:
* Metadata
*
*
*
* The following symbols:
* User-defined metadata that you want to associate with an Elastic Transcoder job. You specify metadata in
*
* Metadata
*
*
*
* The following symbols:
* Metadata
*
*
*
* The following symbols:
* Details about the timing of a job.
*
* Details about the timing of a job.
*
* Details about the timing of a job.
* OutputKeyPrefix
.
* OutputKeyPrefix
.
*/
public void setOutputKeyPrefix(String outputKeyPrefix) {
this.outputKeyPrefix = outputKeyPrefix;
}
/**
* OutputKeyPrefix
.
* OutputKeyPrefix
.
*/
public String getOutputKeyPrefix() {
return this.outputKeyPrefix;
}
/**
* OutputKeyPrefix
.
* OutputKeyPrefix
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Job withOutputKeyPrefix(String outputKeyPrefix) {
setOutputKeyPrefix(outputKeyPrefix);
return this;
}
/**
* PresetId
for which the value of Container
is fmp4
* (Fragmented MP4) or ts (MPEG-TS), Playlists
contains information about the master playlists that you
* want Elastic Transcoder to create.
* PresetId
for which the value of Container
is fmp4
* (Fragmented MP4) or ts (MPEG-TS), Playlists
contains information about the master playlists
* that you want Elastic Transcoder to create.
* PresetId
for which the value of Container
is fmp4
* (Fragmented MP4) or ts (MPEG-TS), Playlists
contains information about the master playlists that you
* want Elastic Transcoder to create.
* PresetId
for which the value of Container
is fmp4
* (Fragmented MP4) or ts (MPEG-TS), Playlists
contains information about the master playlists
* that you want Elastic Transcoder to create.
* PresetId
for which the value of Container
is fmp4
* (Fragmented MP4) or ts (MPEG-TS), Playlists
contains information about the master playlists that you
* want Elastic Transcoder to create.
* PresetId
for which the value of Container
is fmp4
* (Fragmented MP4) or ts (MPEG-TS), Playlists
contains information about the master playlists
* that you want Elastic Transcoder to create.
* PresetId
for which the value of Container
is fmp4
* (Fragmented MP4) or ts (MPEG-TS), Playlists
contains information about the master playlists that you
* want Elastic Transcoder to create.
* PresetId
for which the value of Container
is fmp4
* (Fragmented MP4) or ts (MPEG-TS), Playlists
contains information about the master playlists
* that you want Elastic Transcoder to create.
* Submitted
, Progressing
, Complete
,
* Canceled
, or Error
.
* Submitted
, Progressing
, Complete
,
* Canceled
, or Error
.
*/
public void setStatus(String status) {
this.status = status;
}
/**
* Submitted
, Progressing
, Complete
,
* Canceled
, or Error
.
* Submitted
, Progressing
, Complete
,
* Canceled
, or Error
.
*/
public String getStatus() {
return this.status;
}
/**
* Submitted
, Progressing
, Complete
,
* Canceled
, or Error
.
* Submitted
, Progressing
, Complete
,
* Canceled
, or Error
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Job withStatus(String status) {
setStatus(status);
return this;
}
/**
* key/value
pairs, and you can add up to 10 key/value
pairs per job. Elastic Transcoder
* does not guarantee that key/value
pairs are returned in the same order in which you specify them.
* keys
and values
must use characters from the following list:
*
*
*
* @return User-defined metadata that you want to associate with an Elastic Transcoder job. You specify metadata in
* 0-9
* A-Z
and a-z
* Space
* _.:/=+-%@
* key/value
pairs, and you can add up to 10 key/value
pairs per job. Elastic
* Transcoder does not guarantee that key/value
pairs are returned in the same order in which
* you specify them.keys
and values
must use characters from the following list:
*
*
0-9
* A-Z
and a-z
* Space
* _.:/=+-%@
* key/value
pairs, and you can add up to 10 key/value
pairs per job. Elastic Transcoder
* does not guarantee that key/value
pairs are returned in the same order in which you specify them.
* keys
and values
must use characters from the following list:
*
*
*
* @param userMetadata
* User-defined metadata that you want to associate with an Elastic Transcoder job. You specify metadata in
* 0-9
* A-Z
and a-z
* Space
* _.:/=+-%@
* key/value
pairs, and you can add up to 10 key/value
pairs per job. Elastic
* Transcoder does not guarantee that key/value
pairs are returned in the same order in which
* you specify them.keys
and values
must use characters from the following list:
*
*
0-9
* A-Z
and a-z
* Space
* _.:/=+-%@
* key/value
pairs, and you can add up to 10 key/value
pairs per job. Elastic Transcoder
* does not guarantee that key/value
pairs are returned in the same order in which you specify them.
* keys
and values
must use characters from the following list:
*
*
*
* @param userMetadata
* User-defined metadata that you want to associate with an Elastic Transcoder job. You specify metadata in
* 0-9
* A-Z
and a-z
* Space
* _.:/=+-%@
* key/value
pairs, and you can add up to 10 key/value
pairs per job. Elastic
* Transcoder does not guarantee that key/value
pairs are returned in the same order in which
* you specify them.keys
and values
must use characters from the following list:
*
*
0-9
* A-Z
and a-z
* Space
* _.:/=+-%@
*