/* * 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.datapipeline.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains pipeline metadata. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PipelineDescription implements Serializable, Cloneable, StructuredPojo { /** *
* The pipeline identifier that was assigned by AWS Data Pipeline. This is a string of the form
* df-297EG78HU43EEXAMPLE
.
*
* The name of the pipeline. *
*/ private String name; /** ** A list of read-only fields that contain metadata about the pipeline: @userId, @accountId, and @pipelineState. *
*/ private com.amazonaws.internal.SdkInternalList* Description of the pipeline. *
*/ private String description; /** ** A list of tags to associated with a pipeline. Tags let you control access to pipelines. For more information, see * Controlling User * Access to Pipelines in the AWS Data Pipeline Developer Guide. *
*/ private com.amazonaws.internal.SdkInternalList
* The pipeline identifier that was assigned by AWS Data Pipeline. This is a string of the form
* df-297EG78HU43EEXAMPLE
.
*
df-297EG78HU43EEXAMPLE
.
*/
public void setPipelineId(String pipelineId) {
this.pipelineId = pipelineId;
}
/**
*
* The pipeline identifier that was assigned by AWS Data Pipeline. This is a string of the form
* df-297EG78HU43EEXAMPLE
.
*
df-297EG78HU43EEXAMPLE
.
*/
public String getPipelineId() {
return this.pipelineId;
}
/**
*
* The pipeline identifier that was assigned by AWS Data Pipeline. This is a string of the form
* df-297EG78HU43EEXAMPLE
.
*
df-297EG78HU43EEXAMPLE
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PipelineDescription withPipelineId(String pipelineId) {
setPipelineId(pipelineId);
return this;
}
/**
* * The name of the pipeline. *
* * @param name * The name of the pipeline. */ public void setName(String name) { this.name = name; } /** ** The name of the pipeline. *
* * @return The name of the pipeline. */ public String getName() { return this.name; } /** ** The name of the pipeline. *
* * @param name * The name of the pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public PipelineDescription withName(String name) { setName(name); return this; } /** ** A list of read-only fields that contain metadata about the pipeline: @userId, @accountId, and @pipelineState. *
* * @return A list of read-only fields that contain metadata about the pipeline: @userId, @accountId, and * @pipelineState. */ public java.util.List* A list of read-only fields that contain metadata about the pipeline: @userId, @accountId, and @pipelineState. *
* * @param fields * A list of read-only fields that contain metadata about the pipeline: @userId, @accountId, and * @pipelineState. */ public void setFields(java.util.Collection* A list of read-only fields that contain metadata about the pipeline: @userId, @accountId, and @pipelineState. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFields(java.util.Collection)} or {@link #withFields(java.util.Collection)} if you want to override the * existing values. *
* * @param fields * A list of read-only fields that contain metadata about the pipeline: @userId, @accountId, and * @pipelineState. * @return Returns a reference to this object so that method calls can be chained together. */ public PipelineDescription withFields(Field... fields) { if (this.fields == null) { setFields(new com.amazonaws.internal.SdkInternalList* A list of read-only fields that contain metadata about the pipeline: @userId, @accountId, and @pipelineState. *
* * @param fields * A list of read-only fields that contain metadata about the pipeline: @userId, @accountId, and * @pipelineState. * @return Returns a reference to this object so that method calls can be chained together. */ public PipelineDescription withFields(java.util.Collection* Description of the pipeline. *
* * @param description * Description of the pipeline. */ public void setDescription(String description) { this.description = description; } /** ** Description of the pipeline. *
* * @return Description of the pipeline. */ public String getDescription() { return this.description; } /** ** Description of the pipeline. *
* * @param description * Description of the pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public PipelineDescription withDescription(String description) { setDescription(description); return this; } /** ** A list of tags to associated with a pipeline. Tags let you control access to pipelines. For more information, see * Controlling User * Access to Pipelines in the AWS Data Pipeline Developer Guide. *
* * @return A list of tags to associated with a pipeline. Tags let you control access to pipelines. For more * information, see Controlling * User Access to Pipelines in the AWS Data Pipeline Developer Guide. */ public java.util.List* A list of tags to associated with a pipeline. Tags let you control access to pipelines. For more information, see * Controlling User * Access to Pipelines in the AWS Data Pipeline Developer Guide. *
* * @param tags * A list of tags to associated with a pipeline. Tags let you control access to pipelines. For more * information, see Controlling * User Access to Pipelines in the AWS Data Pipeline Developer Guide. */ public void setTags(java.util.Collection* A list of tags to associated with a pipeline. Tags let you control access to pipelines. For more information, see * Controlling User * Access to Pipelines in the AWS Data Pipeline Developer Guide. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * A list of tags to associated with a pipeline. Tags let you control access to pipelines. For more * information, see Controlling * User Access to Pipelines in the AWS Data Pipeline Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public PipelineDescription withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* A list of tags to associated with a pipeline. Tags let you control access to pipelines. For more information, see * Controlling User * Access to Pipelines in the AWS Data Pipeline Developer Guide. *
* * @param tags * A list of tags to associated with a pipeline. Tags let you control access to pipelines. For more * information, see Controlling * User Access to Pipelines in the AWS Data Pipeline Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public PipelineDescription withTags(java.util.Collection