/* * 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 RunPipelineActivityRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The pipeline activity that is run. This must not be a channel activity or a data store activity because these * activities are used in a pipeline only to load the original message and to store the (possibly) transformed * message. If a Lambda activity is specified, only short-running Lambda functions (those with a timeout of less * than 30 seconds or less) can be used. *
*/ private PipelineActivity pipelineActivity; /** ** The sample message payloads on which the pipeline activity is run. *
*/ private java.util.List* The pipeline activity that is run. This must not be a channel activity or a data store activity because these * activities are used in a pipeline only to load the original message and to store the (possibly) transformed * message. If a Lambda activity is specified, only short-running Lambda functions (those with a timeout of less * than 30 seconds or less) can be used. *
* * @param pipelineActivity * The pipeline activity that is run. This must not be a channel activity or a data store activity because * these activities are used in a pipeline only to load the original message and to store the (possibly) * transformed message. If a Lambda activity is specified, only short-running Lambda functions (those with a * timeout of less than 30 seconds or less) can be used. */ public void setPipelineActivity(PipelineActivity pipelineActivity) { this.pipelineActivity = pipelineActivity; } /** ** The pipeline activity that is run. This must not be a channel activity or a data store activity because these * activities are used in a pipeline only to load the original message and to store the (possibly) transformed * message. If a Lambda activity is specified, only short-running Lambda functions (those with a timeout of less * than 30 seconds or less) can be used. *
* * @return The pipeline activity that is run. This must not be a channel activity or a data store activity because * these activities are used in a pipeline only to load the original message and to store the (possibly) * transformed message. If a Lambda activity is specified, only short-running Lambda functions (those with a * timeout of less than 30 seconds or less) can be used. */ public PipelineActivity getPipelineActivity() { return this.pipelineActivity; } /** ** The pipeline activity that is run. This must not be a channel activity or a data store activity because these * activities are used in a pipeline only to load the original message and to store the (possibly) transformed * message. If a Lambda activity is specified, only short-running Lambda functions (those with a timeout of less * than 30 seconds or less) can be used. *
* * @param pipelineActivity * The pipeline activity that is run. This must not be a channel activity or a data store activity because * these activities are used in a pipeline only to load the original message and to store the (possibly) * transformed message. If a Lambda activity is specified, only short-running Lambda functions (those with a * timeout of less than 30 seconds or less) can be used. * @return Returns a reference to this object so that method calls can be chained together. */ public RunPipelineActivityRequest withPipelineActivity(PipelineActivity pipelineActivity) { setPipelineActivity(pipelineActivity); return this; } /** ** The sample message payloads on which the pipeline activity is run. *
* * @return The sample message payloads on which the pipeline activity is run. */ public java.util.List* The sample message payloads on which the pipeline activity is run. *
* * @param payloads * The sample message payloads on which the pipeline activity is run. */ public void setPayloads(java.util.Collection* The sample message payloads on which the pipeline activity is run. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPayloads(java.util.Collection)} or {@link #withPayloads(java.util.Collection)} if you want to override * the existing values. *
* * @param payloads * The sample message payloads on which the pipeline activity is run. * @return Returns a reference to this object so that method calls can be chained together. */ public RunPipelineActivityRequest withPayloads(java.nio.ByteBuffer... payloads) { if (this.payloads == null) { setPayloads(new java.util.ArrayList* The sample message payloads on which the pipeline activity is run. *
* * @param payloads * The sample message payloads on which the pipeline activity is run. * @return Returns a reference to this object so that method calls can be chained together. */ public RunPipelineActivityRequest withPayloads(java.util.Collection