/* * 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.iotanalytics.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreatePipelineRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the pipeline. *
*/ private String pipelineName; /** *
     * A list of PipelineActivity objects. Activities perform transformations on your messages, such as
     * removing, renaming or adding message attributes; filtering messages based on attribute values; invoking your
     * Lambda unctions on messages for advanced processing; or performing mathematical transformations to normalize
     * device data.
     * 
     * The list can be 2-25 PipelineActivity objects and must contain both a channel and a
     * datastore activity. Each entry in the list must contain only one activity. For example:
     * 
     * pipelineActivities = [ { "channel": { ... } }, { "lambda": { ... } }, ... ]
     * 
* Metadata which can be used to manage the pipeline. *
*/ private java.util.List* The name of the pipeline. *
* * @param pipelineName * The name of the pipeline. */ public void setPipelineName(String pipelineName) { this.pipelineName = pipelineName; } /** ** The name of the pipeline. *
* * @return The name of the pipeline. */ public String getPipelineName() { return this.pipelineName; } /** ** The name of the pipeline. *
* * @param pipelineName * The name of the pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePipelineRequest withPipelineName(String pipelineName) { setPipelineName(pipelineName); return this; } /** *
     * A list of PipelineActivity objects. Activities perform transformations on your messages, such as
     * removing, renaming or adding message attributes; filtering messages based on attribute values; invoking your
     * Lambda unctions on messages for advanced processing; or performing mathematical transformations to normalize
     * device data.
     * 
     * The list can be 2-25 PipelineActivity objects and must contain both a channel and a
     * datastore activity. Each entry in the list must contain only one activity. For example:
     * 
     * pipelineActivities = [ { "channel": { ... } }, { "lambda": { ... } }, ... ]
     * 
PipelineActivity objects. Activities perform transformations on your messages,
     *         such as removing, renaming or adding message attributes; filtering messages based on attribute values;
     *         invoking your Lambda unctions on messages for advanced processing; or performing mathematical
     *         transformations to normalize device data.
     *         
     *         The list can be 2-25 PipelineActivity objects and must contain both a channel
     *         and a datastore activity. Each entry in the list must contain only one activity. For
     *         example:
     *         
     *          
     * A list of  
     * The list can be 2-25  
     * pipelineActivities = [ { "channel": { ... } }, { "lambda": { ... } }, ... ]
     */
    public java.util.ListPipelineActivity objects. Activities perform transformations on your messages, such as
     * removing, renaming or adding message attributes; filtering messages based on attribute values; invoking your
     * Lambda unctions on messages for advanced processing; or performing mathematical transformations to normalize
     * device data.
     * PipelineActivity objects and must contain both a channel and a
     * datastore activity. Each entry in the list must contain only one activity. For example:
     * pipelineActivities = [ { "channel": { ... } }, { "lambda": { ... } }, ... ]
     * PipelineActivity objects. Activities perform transformations on your messages, such
     *        as removing, renaming or adding message attributes; filtering messages based on attribute values; invoking
     *        your Lambda unctions on messages for advanced processing; or performing mathematical transformations to
     *        normalize device data.
     *        The list can be 2-25 PipelineActivity objects and must contain both a channel
     *        and a datastore activity. Each entry in the list must contain only one activity. For example:
     *        
     *         
     * A list of  
     * The list can be 2-25  
     *  
     * NOTE: This method appends the values to the existing list (if any). Use
     * {@link #setPipelineActivities(java.util.Collection)} or {@link #withPipelineActivities(java.util.Collection)} if
     * you want to override the existing values.
     * pipelineActivities = [ { "channel": { ... } }, { "lambda": { ... } }, ... ]
     */
    public void setPipelineActivities(java.util.CollectionPipelineActivity objects. Activities perform transformations on your messages, such as
     * removing, renaming or adding message attributes; filtering messages based on attribute values; invoking your
     * Lambda unctions on messages for advanced processing; or performing mathematical transformations to normalize
     * device data.
     * PipelineActivity objects and must contain both a channel and a
     * datastore activity. Each entry in the list must contain only one activity. For example:
     * pipelineActivities = [ { "channel": { ... } }, { "lambda": { ... } }, ... ]
     * PipelineActivity objects. Activities perform transformations on your messages, such
     *        as removing, renaming or adding message attributes; filtering messages based on attribute values; invoking
     *        your Lambda unctions on messages for advanced processing; or performing mathematical transformations to
     *        normalize device data.
     *        The list can be 2-25 PipelineActivity objects and must contain both a channel
     *        and a datastore activity. Each entry in the list must contain only one activity. For example:
     *        
     *         
     * A list of  
     * The list can be 2-25  
     * pipelineActivities = [ { "channel": { ... } }, { "lambda": { ... } }, ... ]
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public CreatePipelineRequest withPipelineActivities(PipelineActivity... pipelineActivities) {
        if (this.pipelineActivities == null) {
            setPipelineActivities(new java.util.ArrayListPipelineActivity objects. Activities perform transformations on your messages, such as
     * removing, renaming or adding message attributes; filtering messages based on attribute values; invoking your
     * Lambda unctions on messages for advanced processing; or performing mathematical transformations to normalize
     * device data.
     * PipelineActivity objects and must contain both a channel and a
     * datastore activity. Each entry in the list must contain only one activity. For example:
     * pipelineActivities = [ { "channel": { ... } }, { "lambda": { ... } }, ... ]
     * PipelineActivity objects. Activities perform transformations on your messages, such
     *        as removing, renaming or adding message attributes; filtering messages based on attribute values; invoking
     *        your Lambda unctions on messages for advanced processing; or performing mathematical transformations to
     *        normalize device data.
     *        The list can be 2-25 PipelineActivity objects and must contain both a channel
     *        and a datastore activity. Each entry in the list must contain only one activity. For example:
     *        
     *         
     * Metadata which can be used to manage the pipeline.
     *  
     * Metadata which can be used to manage the pipeline.
     *  
     * Metadata which can be used to manage the pipeline.
     *  
     * 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.
     *  
     * Metadata which can be used to manage the pipeline.
     * pipelineActivities = [ { "channel": { ... } }, { "lambda": { ... } }, ... ]
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public CreatePipelineRequest withPipelineActivities(java.util.Collection