All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.elastictranscoder.model.CreateJobOutput Maven / Gradle / Ivy

Go to download

The Amazon Web Services SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

The newest version!
/*
 * Copyright 2010-2014 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;

/**
 * 

* The CreateJobOutput structure. *

*/ public class CreateJobOutput implements Serializable { /** * The name to assign to the transcoded file. Elastic Transcoder saves * the file in the Amazon S3 bucket specified by the * OutputBucket object in the pipeline that is specified by * the pipeline ID. If a file with the specified name already exists in * the output bucket, the job fails. *

* Constraints:
* Length: 1 - 255
*/ private String key; /** * Whether you want Elastic Transcoder to create thumbnails for your * videos and, if so, how you want Elastic Transcoder to name the files. *

If you don't want Elastic Transcoder to create thumbnails, specify * "".

If you do want Elastic Transcoder to create thumbnails, * specify the information that you want to include in the file name for * each thumbnail. You can specify the following values in any sequence: *

  • {count} (Required): If you want to * create thumbnails, you must include {count} in the * ThumbnailPattern object. Wherever you specify * {count}, Elastic Transcoder adds a five-digit sequence * number (beginning with 00001) to thumbnail file names. The * number indicates where a given thumbnail appears in the sequence of * thumbnails for a transcoded file. If you specify a literal * value and/or {resolution} but you omit * {count}, Elastic Transcoder returns a validation error * and does not create the job.

  • Literal * values (Optional): You can specify literal values anywhere in the * ThumbnailPattern object. For example, you can include * them as a file name prefix or as a delimiter between * {resolution} and {count}.

  • * {resolution} (Optional): If you want Elastic * Transcoder to include the resolution in the file name, include * {resolution} in the ThumbnailPattern object. *

When creating thumbnails, Elastic Transcoder * automatically saves the files in the format (.jpg or .png) that * appears in the preset that you specified in the PresetID * value of CreateJobOutput. Elastic Transcoder also appends * the applicable file name extension. *

* Constraints:
* Pattern: (^$)|(^.*\{count\}.*$)
*/ private String thumbnailPattern; /** * The number of degrees clockwise by which you want Elastic Transcoder * to rotate the output relative to the input. Enter one of the following * values: auto, 0, 90, * 180, 270. The value auto * generally works only if the file that you're transcoding contains * rotation metadata. *

* Constraints:
* Pattern: (^auto$)|(^0$)|(^90$)|(^180$)|(^270$)
*/ private String rotate; /** * The Id of the preset to use for this job. The preset * determines the audio, video, and thumbnail settings that Elastic * Transcoder uses for transcoding. *

* Constraints:
* Pattern: ^\d{13}-\w{6}$
*/ private String presetId; /** * If you specify a preset in PresetId for which the value * of Container is ts (MPEG-TS), SegmentDuration is the * duration of each .ts file in seconds. The range of valid values is 1 * to 60 seconds. *

* Constraints:
* Pattern: ^\d{1,5}(\.\d{0,5})?$
*/ private String segmentDuration; /** * Information about the watermarks that you want Elastic Transcoder to * add to the video during transcoding. You can specify up to four * watermarks for each output. Settings for each watermark must be * defined in the preset for the current output. */ private com.amazonaws.internal.ListWithAutoConstructFlag watermarks; /** * Information about the album art that you want Elastic Transcoder to * add to the file during transcoding. You can specify up to twenty album * artworks for each output. Settings for each artwork must be defined in * the job for the current output. */ private JobAlbumArt albumArt; /** * You can create an output file that contains an excerpt from the input * file. This excerpt, called a clip, can come from the beginning, * middle, or end of the file. The Composition object contains settings * for the clips that make up an output file. For the current release, * you can only specify settings for a single clip per output file. The * Composition object cannot be null. */ private com.amazonaws.internal.ListWithAutoConstructFlag composition; /** * The name to assign to the transcoded file. Elastic Transcoder saves * the file in the Amazon S3 bucket specified by the * OutputBucket object in the pipeline that is specified by * the pipeline ID. If a file with the specified name already exists in * the output bucket, the job fails. *

* Constraints:
* Length: 1 - 255
* * @return The name to assign to the transcoded file. Elastic Transcoder saves * the file in the Amazon S3 bucket specified by the * OutputBucket object in the pipeline that is specified by * the pipeline ID. If a file with the specified name already exists in * the output bucket, the job fails. */ public String getKey() { return key; } /** * The name to assign to the transcoded file. Elastic Transcoder saves * the file in the Amazon S3 bucket specified by the * OutputBucket object in the pipeline that is specified by * the pipeline ID. If a file with the specified name already exists in * the output bucket, the job fails. *

* Constraints:
* Length: 1 - 255
* * @param key The name to assign to the transcoded file. Elastic Transcoder saves * the file in the Amazon S3 bucket specified by the * OutputBucket object in the pipeline that is specified by * the pipeline ID. If a file with the specified name already exists in * the output bucket, the job fails. */ public void setKey(String key) { this.key = key; } /** * The name to assign to the transcoded file. Elastic Transcoder saves * the file in the Amazon S3 bucket specified by the * OutputBucket object in the pipeline that is specified by * the pipeline ID. If a file with the specified name already exists in * the output bucket, the job fails. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 1 - 255
* * @param key The name to assign to the transcoded file. Elastic Transcoder saves * the file in the Amazon S3 bucket specified by the * OutputBucket object in the pipeline that is specified by * the pipeline ID. If a file with the specified name already exists in * the output bucket, the job fails. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateJobOutput withKey(String key) { this.key = key; return this; } /** * Whether you want Elastic Transcoder to create thumbnails for your * videos and, if so, how you want Elastic Transcoder to name the files. *

If you don't want Elastic Transcoder to create thumbnails, specify * "".

If you do want Elastic Transcoder to create thumbnails, * specify the information that you want to include in the file name for * each thumbnail. You can specify the following values in any sequence: *

  • {count} (Required): If you want to * create thumbnails, you must include {count} in the * ThumbnailPattern object. Wherever you specify * {count}, Elastic Transcoder adds a five-digit sequence * number (beginning with 00001) to thumbnail file names. The * number indicates where a given thumbnail appears in the sequence of * thumbnails for a transcoded file. If you specify a literal * value and/or {resolution} but you omit * {count}, Elastic Transcoder returns a validation error * and does not create the job.

  • Literal * values (Optional): You can specify literal values anywhere in the * ThumbnailPattern object. For example, you can include * them as a file name prefix or as a delimiter between * {resolution} and {count}.

  • * {resolution} (Optional): If you want Elastic * Transcoder to include the resolution in the file name, include * {resolution} in the ThumbnailPattern object. *

When creating thumbnails, Elastic Transcoder * automatically saves the files in the format (.jpg or .png) that * appears in the preset that you specified in the PresetID * value of CreateJobOutput. Elastic Transcoder also appends * the applicable file name extension. *

* Constraints:
* Pattern: (^$)|(^.*\{count\}.*$)
* * @return Whether you want Elastic Transcoder to create thumbnails for your * videos and, if so, how you want Elastic Transcoder to name the files. *

If you don't want Elastic Transcoder to create thumbnails, specify * "".

If you do want Elastic Transcoder to create thumbnails, * specify the information that you want to include in the file name for * each thumbnail. You can specify the following values in any sequence: *

  • {count} (Required): If you want to * create thumbnails, you must include {count} in the * ThumbnailPattern object. Wherever you specify * {count}, Elastic Transcoder adds a five-digit sequence * number (beginning with 00001) to thumbnail file names. The * number indicates where a given thumbnail appears in the sequence of * thumbnails for a transcoded file. If you specify a literal * value and/or {resolution} but you omit * {count}, Elastic Transcoder returns a validation error * and does not create the job.

  • Literal * values (Optional): You can specify literal values anywhere in the * ThumbnailPattern object. For example, you can include * them as a file name prefix or as a delimiter between * {resolution} and {count}.

  • * {resolution} (Optional): If you want Elastic * Transcoder to include the resolution in the file name, include * {resolution} in the ThumbnailPattern object. *

When creating thumbnails, Elastic Transcoder * automatically saves the files in the format (.jpg or .png) that * appears in the preset that you specified in the PresetID * value of CreateJobOutput. Elastic Transcoder also appends * the applicable file name extension. */ public String getThumbnailPattern() { return thumbnailPattern; } /** * Whether you want Elastic Transcoder to create thumbnails for your * videos and, if so, how you want Elastic Transcoder to name the files. *

If you don't want Elastic Transcoder to create thumbnails, specify * "".

If you do want Elastic Transcoder to create thumbnails, * specify the information that you want to include in the file name for * each thumbnail. You can specify the following values in any sequence: *

  • {count} (Required): If you want to * create thumbnails, you must include {count} in the * ThumbnailPattern object. Wherever you specify * {count}, Elastic Transcoder adds a five-digit sequence * number (beginning with 00001) to thumbnail file names. The * number indicates where a given thumbnail appears in the sequence of * thumbnails for a transcoded file. If you specify a literal * value and/or {resolution} but you omit * {count}, Elastic Transcoder returns a validation error * and does not create the job.

  • Literal * values (Optional): You can specify literal values anywhere in the * ThumbnailPattern object. For example, you can include * them as a file name prefix or as a delimiter between * {resolution} and {count}.

  • * {resolution} (Optional): If you want Elastic * Transcoder to include the resolution in the file name, include * {resolution} in the ThumbnailPattern object. *

When creating thumbnails, Elastic Transcoder * automatically saves the files in the format (.jpg or .png) that * appears in the preset that you specified in the PresetID * value of CreateJobOutput. Elastic Transcoder also appends * the applicable file name extension. *

* Constraints:
* Pattern: (^$)|(^.*\{count\}.*$)
* * @param thumbnailPattern Whether you want Elastic Transcoder to create thumbnails for your * videos and, if so, how you want Elastic Transcoder to name the files. *

If you don't want Elastic Transcoder to create thumbnails, specify * "".

If you do want Elastic Transcoder to create thumbnails, * specify the information that you want to include in the file name for * each thumbnail. You can specify the following values in any sequence: *

  • {count} (Required): If you want to * create thumbnails, you must include {count} in the * ThumbnailPattern object. Wherever you specify * {count}, Elastic Transcoder adds a five-digit sequence * number (beginning with 00001) to thumbnail file names. The * number indicates where a given thumbnail appears in the sequence of * thumbnails for a transcoded file. If you specify a literal * value and/or {resolution} but you omit * {count}, Elastic Transcoder returns a validation error * and does not create the job.

  • Literal * values (Optional): You can specify literal values anywhere in the * ThumbnailPattern object. For example, you can include * them as a file name prefix or as a delimiter between * {resolution} and {count}.

  • * {resolution} (Optional): If you want Elastic * Transcoder to include the resolution in the file name, include * {resolution} in the ThumbnailPattern object. *

When creating thumbnails, Elastic Transcoder * automatically saves the files in the format (.jpg or .png) that * appears in the preset that you specified in the PresetID * value of CreateJobOutput. Elastic Transcoder also appends * the applicable file name extension. */ public void setThumbnailPattern(String thumbnailPattern) { this.thumbnailPattern = thumbnailPattern; } /** * Whether you want Elastic Transcoder to create thumbnails for your * videos and, if so, how you want Elastic Transcoder to name the files. *

If you don't want Elastic Transcoder to create thumbnails, specify * "".

If you do want Elastic Transcoder to create thumbnails, * specify the information that you want to include in the file name for * each thumbnail. You can specify the following values in any sequence: *

  • {count} (Required): If you want to * create thumbnails, you must include {count} in the * ThumbnailPattern object. Wherever you specify * {count}, Elastic Transcoder adds a five-digit sequence * number (beginning with 00001) to thumbnail file names. The * number indicates where a given thumbnail appears in the sequence of * thumbnails for a transcoded file. If you specify a literal * value and/or {resolution} but you omit * {count}, Elastic Transcoder returns a validation error * and does not create the job.

  • Literal * values (Optional): You can specify literal values anywhere in the * ThumbnailPattern object. For example, you can include * them as a file name prefix or as a delimiter between * {resolution} and {count}.

  • * {resolution} (Optional): If you want Elastic * Transcoder to include the resolution in the file name, include * {resolution} in the ThumbnailPattern object. *

When creating thumbnails, Elastic Transcoder * automatically saves the files in the format (.jpg or .png) that * appears in the preset that you specified in the PresetID * value of CreateJobOutput. Elastic Transcoder also appends * the applicable file name extension. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Pattern: (^$)|(^.*\{count\}.*$)
* * @param thumbnailPattern Whether you want Elastic Transcoder to create thumbnails for your * videos and, if so, how you want Elastic Transcoder to name the files. *

If you don't want Elastic Transcoder to create thumbnails, specify * "".

If you do want Elastic Transcoder to create thumbnails, * specify the information that you want to include in the file name for * each thumbnail. You can specify the following values in any sequence: *

  • {count} (Required): If you want to * create thumbnails, you must include {count} in the * ThumbnailPattern object. Wherever you specify * {count}, Elastic Transcoder adds a five-digit sequence * number (beginning with 00001) to thumbnail file names. The * number indicates where a given thumbnail appears in the sequence of * thumbnails for a transcoded file. If you specify a literal * value and/or {resolution} but you omit * {count}, Elastic Transcoder returns a validation error * and does not create the job.

  • Literal * values (Optional): You can specify literal values anywhere in the * ThumbnailPattern object. For example, you can include * them as a file name prefix or as a delimiter between * {resolution} and {count}.

  • * {resolution} (Optional): If you want Elastic * Transcoder to include the resolution in the file name, include * {resolution} in the ThumbnailPattern object. *

When creating thumbnails, Elastic Transcoder * automatically saves the files in the format (.jpg or .png) that * appears in the preset that you specified in the PresetID * value of CreateJobOutput. Elastic Transcoder also appends * the applicable file name extension. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateJobOutput withThumbnailPattern(String thumbnailPattern) { this.thumbnailPattern = thumbnailPattern; return this; } /** * The number of degrees clockwise by which you want Elastic Transcoder * to rotate the output relative to the input. Enter one of the following * values: auto, 0, 90, * 180, 270. The value auto * generally works only if the file that you're transcoding contains * rotation metadata. *

* Constraints:
* Pattern: (^auto$)|(^0$)|(^90$)|(^180$)|(^270$)
* * @return The number of degrees clockwise by which you want Elastic Transcoder * to rotate the output relative to the input. Enter one of the following * values: auto, 0, 90, * 180, 270. The value auto * generally works only if the file that you're transcoding contains * rotation metadata. */ public String getRotate() { return rotate; } /** * The number of degrees clockwise by which you want Elastic Transcoder * to rotate the output relative to the input. Enter one of the following * values: auto, 0, 90, * 180, 270. The value auto * generally works only if the file that you're transcoding contains * rotation metadata. *

* Constraints:
* Pattern: (^auto$)|(^0$)|(^90$)|(^180$)|(^270$)
* * @param rotate The number of degrees clockwise by which you want Elastic Transcoder * to rotate the output relative to the input. Enter one of the following * values: auto, 0, 90, * 180, 270. The value auto * generally works only if the file that you're transcoding contains * rotation metadata. */ public void setRotate(String rotate) { this.rotate = rotate; } /** * The number of degrees clockwise by which you want Elastic Transcoder * to rotate the output relative to the input. Enter one of the following * values: auto, 0, 90, * 180, 270. The value auto * generally works only if the file that you're transcoding contains * rotation metadata. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Pattern: (^auto$)|(^0$)|(^90$)|(^180$)|(^270$)
* * @param rotate The number of degrees clockwise by which you want Elastic Transcoder * to rotate the output relative to the input. Enter one of the following * values: auto, 0, 90, * 180, 270. The value auto * generally works only if the file that you're transcoding contains * rotation metadata. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateJobOutput withRotate(String rotate) { this.rotate = rotate; return this; } /** * The Id of the preset to use for this job. The preset * determines the audio, video, and thumbnail settings that Elastic * Transcoder uses for transcoding. *

* Constraints:
* Pattern: ^\d{13}-\w{6}$
* * @return The Id of the preset to use for this job. The preset * determines the audio, video, and thumbnail settings that Elastic * Transcoder uses for transcoding. */ public String getPresetId() { return presetId; } /** * The Id of the preset to use for this job. The preset * determines the audio, video, and thumbnail settings that Elastic * Transcoder uses for transcoding. *

* Constraints:
* Pattern: ^\d{13}-\w{6}$
* * @param presetId The Id of the preset to use for this job. The preset * determines the audio, video, and thumbnail settings that Elastic * Transcoder uses for transcoding. */ public void setPresetId(String presetId) { this.presetId = presetId; } /** * The Id of the preset to use for this job. The preset * determines the audio, video, and thumbnail settings that Elastic * Transcoder uses for transcoding. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Pattern: ^\d{13}-\w{6}$
* * @param presetId The Id of the preset to use for this job. The preset * determines the audio, video, and thumbnail settings that Elastic * Transcoder uses for transcoding. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateJobOutput withPresetId(String presetId) { this.presetId = presetId; return this; } /** * If you specify a preset in PresetId for which the value * of Container is ts (MPEG-TS), SegmentDuration is the * duration of each .ts file in seconds. The range of valid values is 1 * to 60 seconds. *

* Constraints:
* Pattern: ^\d{1,5}(\.\d{0,5})?$
* * @return If you specify a preset in PresetId for which the value * of Container is ts (MPEG-TS), SegmentDuration is the * duration of each .ts file in seconds. The range of valid values is 1 * to 60 seconds. */ public String getSegmentDuration() { return segmentDuration; } /** * If you specify a preset in PresetId for which the value * of Container is ts (MPEG-TS), SegmentDuration is the * duration of each .ts file in seconds. The range of valid values is 1 * to 60 seconds. *

* Constraints:
* Pattern: ^\d{1,5}(\.\d{0,5})?$
* * @param segmentDuration If you specify a preset in PresetId for which the value * of Container is ts (MPEG-TS), SegmentDuration is the * duration of each .ts file in seconds. The range of valid values is 1 * to 60 seconds. */ public void setSegmentDuration(String segmentDuration) { this.segmentDuration = segmentDuration; } /** * If you specify a preset in PresetId for which the value * of Container is ts (MPEG-TS), SegmentDuration is the * duration of each .ts file in seconds. The range of valid values is 1 * to 60 seconds. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Pattern: ^\d{1,5}(\.\d{0,5})?$
* * @param segmentDuration If you specify a preset in PresetId for which the value * of Container is ts (MPEG-TS), SegmentDuration is the * duration of each .ts file in seconds. The range of valid values is 1 * to 60 seconds. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateJobOutput withSegmentDuration(String segmentDuration) { this.segmentDuration = segmentDuration; return this; } /** * Information about the watermarks that you want Elastic Transcoder to * add to the video during transcoding. You can specify up to four * watermarks for each output. Settings for each watermark must be * defined in the preset for the current output. * * @return Information about the watermarks that you want Elastic Transcoder to * add to the video during transcoding. You can specify up to four * watermarks for each output. Settings for each watermark must be * defined in the preset for the current output. */ public java.util.List getWatermarks() { if (watermarks == null) { watermarks = new com.amazonaws.internal.ListWithAutoConstructFlag(); watermarks.setAutoConstruct(true); } return watermarks; } /** * Information about the watermarks that you want Elastic Transcoder to * add to the video during transcoding. You can specify up to four * watermarks for each output. Settings for each watermark must be * defined in the preset for the current output. * * @param watermarks Information about the watermarks that you want Elastic Transcoder to * add to the video during transcoding. You can specify up to four * watermarks for each output. Settings for each watermark must be * defined in the preset for the current output. */ public void setWatermarks(java.util.Collection watermarks) { if (watermarks == null) { this.watermarks = null; return; } com.amazonaws.internal.ListWithAutoConstructFlag watermarksCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(watermarks.size()); watermarksCopy.addAll(watermarks); this.watermarks = watermarksCopy; } /** * Information about the watermarks that you want Elastic Transcoder to * add to the video during transcoding. You can specify up to four * watermarks for each output. Settings for each watermark must be * defined in the preset for the current output. *

* Returns a reference to this object so that method calls can be chained together. * * @param watermarks Information about the watermarks that you want Elastic Transcoder to * add to the video during transcoding. You can specify up to four * watermarks for each output. Settings for each watermark must be * defined in the preset for the current output. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateJobOutput withWatermarks(JobWatermark... watermarks) { if (getWatermarks() == null) setWatermarks(new java.util.ArrayList(watermarks.length)); for (JobWatermark value : watermarks) { getWatermarks().add(value); } return this; } /** * Information about the watermarks that you want Elastic Transcoder to * add to the video during transcoding. You can specify up to four * watermarks for each output. Settings for each watermark must be * defined in the preset for the current output. *

* Returns a reference to this object so that method calls can be chained together. * * @param watermarks Information about the watermarks that you want Elastic Transcoder to * add to the video during transcoding. You can specify up to four * watermarks for each output. Settings for each watermark must be * defined in the preset for the current output. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateJobOutput withWatermarks(java.util.Collection watermarks) { if (watermarks == null) { this.watermarks = null; } else { com.amazonaws.internal.ListWithAutoConstructFlag watermarksCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(watermarks.size()); watermarksCopy.addAll(watermarks); this.watermarks = watermarksCopy; } return this; } /** * Information about the album art that you want Elastic Transcoder to * add to the file during transcoding. You can specify up to twenty album * artworks for each output. Settings for each artwork must be defined in * the job for the current output. * * @return Information about the album art that you want Elastic Transcoder to * add to the file during transcoding. You can specify up to twenty album * artworks for each output. Settings for each artwork must be defined in * the job for the current output. */ public JobAlbumArt getAlbumArt() { return albumArt; } /** * Information about the album art that you want Elastic Transcoder to * add to the file during transcoding. You can specify up to twenty album * artworks for each output. Settings for each artwork must be defined in * the job for the current output. * * @param albumArt Information about the album art that you want Elastic Transcoder to * add to the file during transcoding. You can specify up to twenty album * artworks for each output. Settings for each artwork must be defined in * the job for the current output. */ public void setAlbumArt(JobAlbumArt albumArt) { this.albumArt = albumArt; } /** * Information about the album art that you want Elastic Transcoder to * add to the file during transcoding. You can specify up to twenty album * artworks for each output. Settings for each artwork must be defined in * the job for the current output. *

* Returns a reference to this object so that method calls can be chained together. * * @param albumArt Information about the album art that you want Elastic Transcoder to * add to the file during transcoding. You can specify up to twenty album * artworks for each output. Settings for each artwork must be defined in * the job for the current output. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateJobOutput withAlbumArt(JobAlbumArt albumArt) { this.albumArt = albumArt; return this; } /** * You can create an output file that contains an excerpt from the input * file. This excerpt, called a clip, can come from the beginning, * middle, or end of the file. The Composition object contains settings * for the clips that make up an output file. For the current release, * you can only specify settings for a single clip per output file. The * Composition object cannot be null. * * @return You can create an output file that contains an excerpt from the input * file. This excerpt, called a clip, can come from the beginning, * middle, or end of the file. The Composition object contains settings * for the clips that make up an output file. For the current release, * you can only specify settings for a single clip per output file. The * Composition object cannot be null. */ public java.util.List getComposition() { if (composition == null) { composition = new com.amazonaws.internal.ListWithAutoConstructFlag(); composition.setAutoConstruct(true); } return composition; } /** * You can create an output file that contains an excerpt from the input * file. This excerpt, called a clip, can come from the beginning, * middle, or end of the file. The Composition object contains settings * for the clips that make up an output file. For the current release, * you can only specify settings for a single clip per output file. The * Composition object cannot be null. * * @param composition You can create an output file that contains an excerpt from the input * file. This excerpt, called a clip, can come from the beginning, * middle, or end of the file. The Composition object contains settings * for the clips that make up an output file. For the current release, * you can only specify settings for a single clip per output file. The * Composition object cannot be null. */ public void setComposition(java.util.Collection composition) { if (composition == null) { this.composition = null; return; } com.amazonaws.internal.ListWithAutoConstructFlag compositionCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(composition.size()); compositionCopy.addAll(composition); this.composition = compositionCopy; } /** * You can create an output file that contains an excerpt from the input * file. This excerpt, called a clip, can come from the beginning, * middle, or end of the file. The Composition object contains settings * for the clips that make up an output file. For the current release, * you can only specify settings for a single clip per output file. The * Composition object cannot be null. *

* Returns a reference to this object so that method calls can be chained together. * * @param composition You can create an output file that contains an excerpt from the input * file. This excerpt, called a clip, can come from the beginning, * middle, or end of the file. The Composition object contains settings * for the clips that make up an output file. For the current release, * you can only specify settings for a single clip per output file. The * Composition object cannot be null. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateJobOutput withComposition(Clip... composition) { if (getComposition() == null) setComposition(new java.util.ArrayList(composition.length)); for (Clip value : composition) { getComposition().add(value); } return this; } /** * You can create an output file that contains an excerpt from the input * file. This excerpt, called a clip, can come from the beginning, * middle, or end of the file. The Composition object contains settings * for the clips that make up an output file. For the current release, * you can only specify settings for a single clip per output file. The * Composition object cannot be null. *

* Returns a reference to this object so that method calls can be chained together. * * @param composition You can create an output file that contains an excerpt from the input * file. This excerpt, called a clip, can come from the beginning, * middle, or end of the file. The Composition object contains settings * for the clips that make up an output file. For the current release, * you can only specify settings for a single clip per output file. The * Composition object cannot be null. * * @return A reference to this updated object so that method calls can be chained * together. */ public CreateJobOutput withComposition(java.util.Collection composition) { if (composition == null) { this.composition = null; } else { com.amazonaws.internal.ListWithAutoConstructFlag compositionCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(composition.size()); compositionCopy.addAll(composition); this.composition = compositionCopy; } return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getKey() != null) sb.append("Key: " + getKey() + ","); if (getThumbnailPattern() != null) sb.append("ThumbnailPattern: " + getThumbnailPattern() + ","); if (getRotate() != null) sb.append("Rotate: " + getRotate() + ","); if (getPresetId() != null) sb.append("PresetId: " + getPresetId() + ","); if (getSegmentDuration() != null) sb.append("SegmentDuration: " + getSegmentDuration() + ","); if (getWatermarks() != null) sb.append("Watermarks: " + getWatermarks() + ","); if (getAlbumArt() != null) sb.append("AlbumArt: " + getAlbumArt() + ","); if (getComposition() != null) sb.append("Composition: " + getComposition() ); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getKey() == null) ? 0 : getKey().hashCode()); hashCode = prime * hashCode + ((getThumbnailPattern() == null) ? 0 : getThumbnailPattern().hashCode()); hashCode = prime * hashCode + ((getRotate() == null) ? 0 : getRotate().hashCode()); hashCode = prime * hashCode + ((getPresetId() == null) ? 0 : getPresetId().hashCode()); hashCode = prime * hashCode + ((getSegmentDuration() == null) ? 0 : getSegmentDuration().hashCode()); hashCode = prime * hashCode + ((getWatermarks() == null) ? 0 : getWatermarks().hashCode()); hashCode = prime * hashCode + ((getAlbumArt() == null) ? 0 : getAlbumArt().hashCode()); hashCode = prime * hashCode + ((getComposition() == null) ? 0 : getComposition().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateJobOutput == false) return false; CreateJobOutput other = (CreateJobOutput)obj; if (other.getKey() == null ^ this.getKey() == null) return false; if (other.getKey() != null && other.getKey().equals(this.getKey()) == false) return false; if (other.getThumbnailPattern() == null ^ this.getThumbnailPattern() == null) return false; if (other.getThumbnailPattern() != null && other.getThumbnailPattern().equals(this.getThumbnailPattern()) == false) return false; if (other.getRotate() == null ^ this.getRotate() == null) return false; if (other.getRotate() != null && other.getRotate().equals(this.getRotate()) == false) return false; if (other.getPresetId() == null ^ this.getPresetId() == null) return false; if (other.getPresetId() != null && other.getPresetId().equals(this.getPresetId()) == false) return false; if (other.getSegmentDuration() == null ^ this.getSegmentDuration() == null) return false; if (other.getSegmentDuration() != null && other.getSegmentDuration().equals(this.getSegmentDuration()) == false) return false; if (other.getWatermarks() == null ^ this.getWatermarks() == null) return false; if (other.getWatermarks() != null && other.getWatermarks().equals(this.getWatermarks()) == false) return false; if (other.getAlbumArt() == null ^ this.getAlbumArt() == null) return false; if (other.getAlbumArt() != null && other.getAlbumArt().equals(this.getAlbumArt()) == false) return false; if (other.getComposition() == null ^ this.getComposition() == null) return false; if (other.getComposition() != null && other.getComposition().equals(this.getComposition()) == false) return false; return true; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy