/** * 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 IoT { namespace Model { /** *

Describes an action to invoke a Lambda function.

See Also:

* AWS * API Reference

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

The ARN of the Lambda function.

*/ inline const Aws::String& GetFunctionArn() const{ return m_functionArn; } /** *

The ARN of the Lambda function.

*/ inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; } /** *

The ARN of the Lambda function.

*/ inline void SetFunctionArn(const Aws::String& value) { m_functionArnHasBeenSet = true; m_functionArn = value; } /** *

The ARN of the Lambda function.

*/ inline void SetFunctionArn(Aws::String&& value) { m_functionArnHasBeenSet = true; m_functionArn = std::move(value); } /** *

The ARN of the Lambda function.

*/ inline void SetFunctionArn(const char* value) { m_functionArnHasBeenSet = true; m_functionArn.assign(value); } /** *

The ARN of the Lambda function.

*/ inline LambdaAction& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;} /** *

The ARN of the Lambda function.

*/ inline LambdaAction& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;} /** *

The ARN of the Lambda function.

*/ inline LambdaAction& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;} private: Aws::String m_functionArn; bool m_functionArnHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws