/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoTAnalytics { namespace Model { /** *

An activity that runs a Lambda function to modify the message.

See * Also:

AWS * API Reference

*/ class LambdaActivity { public: AWS_IOTANALYTICS_API LambdaActivity(); AWS_IOTANALYTICS_API LambdaActivity(Aws::Utils::Json::JsonView jsonValue); AWS_IOTANALYTICS_API LambdaActivity& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOTANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the lambda activity.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the lambda activity.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the lambda activity.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the lambda activity.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the lambda activity.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the lambda activity.

*/ inline LambdaActivity& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the lambda activity.

*/ inline LambdaActivity& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the lambda activity.

*/ inline LambdaActivity& WithName(const char* value) { SetName(value); return *this;} /** *

The name of the Lambda function that is run on the message.

*/ inline const Aws::String& GetLambdaName() const{ return m_lambdaName; } /** *

The name of the Lambda function that is run on the message.

*/ inline bool LambdaNameHasBeenSet() const { return m_lambdaNameHasBeenSet; } /** *

The name of the Lambda function that is run on the message.

*/ inline void SetLambdaName(const Aws::String& value) { m_lambdaNameHasBeenSet = true; m_lambdaName = value; } /** *

The name of the Lambda function that is run on the message.

*/ inline void SetLambdaName(Aws::String&& value) { m_lambdaNameHasBeenSet = true; m_lambdaName = std::move(value); } /** *

The name of the Lambda function that is run on the message.

*/ inline void SetLambdaName(const char* value) { m_lambdaNameHasBeenSet = true; m_lambdaName.assign(value); } /** *

The name of the Lambda function that is run on the message.

*/ inline LambdaActivity& WithLambdaName(const Aws::String& value) { SetLambdaName(value); return *this;} /** *

The name of the Lambda function that is run on the message.

*/ inline LambdaActivity& WithLambdaName(Aws::String&& value) { SetLambdaName(std::move(value)); return *this;} /** *

The name of the Lambda function that is run on the message.

*/ inline LambdaActivity& WithLambdaName(const char* value) { SetLambdaName(value); return *this;} /** *

The number of messages passed to the Lambda function for processing.

*

The Lambda function must be able to process all of these messages within five * minutes, which is the maximum timeout duration for Lambda functions.

*/ inline int GetBatchSize() const{ return m_batchSize; } /** *

The number of messages passed to the Lambda function for processing.

*

The Lambda function must be able to process all of these messages within five * minutes, which is the maximum timeout duration for Lambda functions.

*/ inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; } /** *

The number of messages passed to the Lambda function for processing.

*

The Lambda function must be able to process all of these messages within five * minutes, which is the maximum timeout duration for Lambda functions.

*/ inline void SetBatchSize(int value) { m_batchSizeHasBeenSet = true; m_batchSize = value; } /** *

The number of messages passed to the Lambda function for processing.

*

The Lambda function must be able to process all of these messages within five * minutes, which is the maximum timeout duration for Lambda functions.

*/ inline LambdaActivity& WithBatchSize(int value) { SetBatchSize(value); return *this;} /** *

The next activity in the pipeline.

*/ inline const Aws::String& GetNext() const{ return m_next; } /** *

The next activity in the pipeline.

*/ inline bool NextHasBeenSet() const { return m_nextHasBeenSet; } /** *

The next activity in the pipeline.

*/ inline void SetNext(const Aws::String& value) { m_nextHasBeenSet = true; m_next = value; } /** *

The next activity in the pipeline.

*/ inline void SetNext(Aws::String&& value) { m_nextHasBeenSet = true; m_next = std::move(value); } /** *

The next activity in the pipeline.

*/ inline void SetNext(const char* value) { m_nextHasBeenSet = true; m_next.assign(value); } /** *

The next activity in the pipeline.

*/ inline LambdaActivity& WithNext(const Aws::String& value) { SetNext(value); return *this;} /** *

The next activity in the pipeline.

*/ inline LambdaActivity& WithNext(Aws::String&& value) { SetNext(std::move(value)); return *this;} /** *

The next activity in the pipeline.

*/ inline LambdaActivity& WithNext(const char* value) { SetNext(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_lambdaName; bool m_lambdaNameHasBeenSet = false; int m_batchSize; bool m_batchSizeHasBeenSet = false; Aws::String m_next; bool m_nextHasBeenSet = false; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws