/* * 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; /** *

* The pipeline (queue) that is used to manage jobs. *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Pipeline implements Serializable, Cloneable, StructuredPojo { /** *

* The identifier for the pipeline. You use this value to identify the pipeline in which you want to perform a * variety of operations, such as creating a job or a preset. *

*/ private String id; /** *

* The Amazon Resource Name (ARN) for the pipeline. *

*/ private String arn; /** *

* The name of the pipeline. We recommend that the name be unique within the AWS account, but uniqueness is not * enforced. *

*

* Constraints: Maximum 40 characters *

*/ private String name; /** *

* The current status of the pipeline: *

* */ private String status; /** *

* The Amazon S3 bucket from which Elastic Transcoder gets media files for transcoding and the graphics files, if * any, that you want to use for watermarks. *

*/ private String inputBucket; /** *

* The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files, thumbnails, and playlists. * Either you specify this value, or you specify both ContentConfig and ThumbnailConfig. *

*/ private String outputBucket; /** *

* The IAM Amazon Resource Name (ARN) for the role that Elastic Transcoder uses to transcode jobs for this pipeline. *

*/ private String role; /** *

* The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline. *

*

* If you use either s3 or s3-aws-kms as your Encryption:Mode, you don't need * to provide a key with your job because a default key, known as an AWS-KMS key, is created for you automatically. * You need to provide an AWS-KMS key only if you want to use a non-default AWS-KMS key, or if you are using an * Encryption:Mode of aes-cbc-pkcs7, aes-ctr, or aes-gcm. *

*/ private String awsKmsKeyArn; /** *

* The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status. *

* *

* To receive notifications, you must also subscribe to the new topic in the Amazon SNS console. *

*
* */ private Notifications notifications; /** *

* Information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and * playlists. Either you specify both ContentConfig and ThumbnailConfig, or you specify * OutputBucket. *

* */ private PipelineOutputConfig contentConfig; /** *

* Information about the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. Either you * specify both ContentConfig and ThumbnailConfig, or you specify * OutputBucket. *

* */ private PipelineOutputConfig thumbnailConfig; /** *

* The identifier for the pipeline. You use this value to identify the pipeline in which you want to perform a * variety of operations, such as creating a job or a preset. *

* * @param id * The identifier for the pipeline. You use this value to identify the pipeline in which you want to perform * a variety of operations, such as creating a job or a preset. */ public void setId(String id) { this.id = id; } /** *

* The identifier for the pipeline. You use this value to identify the pipeline in which you want to perform a * variety of operations, such as creating a job or a preset. *

* * @return The identifier for the pipeline. You use this value to identify the pipeline in which you want to perform * a variety of operations, such as creating a job or a preset. */ public String getId() { return this.id; } /** *

* The identifier for the pipeline. You use this value to identify the pipeline in which you want to perform a * variety of operations, such as creating a job or a preset. *

* * @param id * The identifier for the pipeline. You use this value to identify the pipeline in which you want to perform * a variety of operations, such as creating a job or a preset. * @return Returns a reference to this object so that method calls can be chained together. */ public Pipeline withId(String id) { setId(id); return this; } /** *

* The Amazon Resource Name (ARN) for the pipeline. *

* * @param arn * The Amazon Resource Name (ARN) for the pipeline. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name (ARN) for the pipeline. *

* * @return The Amazon Resource Name (ARN) for the pipeline. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name (ARN) for the pipeline. *

* * @param arn * The Amazon Resource Name (ARN) for the pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public Pipeline withArn(String arn) { setArn(arn); return this; } /** *

* The name of the pipeline. We recommend that the name be unique within the AWS account, but uniqueness is not * enforced. *

*

* Constraints: Maximum 40 characters *

* * @param name * The name of the pipeline. We recommend that the name be unique within the AWS account, but uniqueness is * not enforced.

*

* Constraints: Maximum 40 characters */ public void setName(String name) { this.name = name; } /** *

* The name of the pipeline. We recommend that the name be unique within the AWS account, but uniqueness is not * enforced. *

*

* Constraints: Maximum 40 characters *

* * @return The name of the pipeline. We recommend that the name be unique within the AWS account, but uniqueness is * not enforced.

*

* Constraints: Maximum 40 characters */ public String getName() { return this.name; } /** *

* The name of the pipeline. We recommend that the name be unique within the AWS account, but uniqueness is not * enforced. *

*

* Constraints: Maximum 40 characters *

* * @param name * The name of the pipeline. We recommend that the name be unique within the AWS account, but uniqueness is * not enforced.

*

* Constraints: Maximum 40 characters * @return Returns a reference to this object so that method calls can be chained together. */ public Pipeline withName(String name) { setName(name); return this; } /** *

* The current status of the pipeline: *

* * * @param status * The current status of the pipeline:

*