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

Contains information about a Lambda configuration.

See Also:

* AWS * API Reference

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

The ARN of an IAM role that has permission to invoke the Lambda function.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The ARN of an IAM role that has permission to invoke the Lambda function.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The ARN of an IAM role that has permission to invoke the Lambda function.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The ARN of an IAM role that has permission to invoke the Lambda function.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The ARN of an IAM role that has permission to invoke the Lambda function.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The ARN of an IAM role that has permission to invoke the Lambda function.

*/ inline LambdaConfiguration& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The ARN of an IAM role that has permission to invoke the Lambda function.

*/ inline LambdaConfiguration& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The ARN of an IAM role that has permission to invoke the Lambda function.

*/ inline LambdaConfiguration& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The ARN of the Lambda function.

*/ inline const Aws::String& GetLambdaArn() const{ return m_lambdaArn; } /** *

The ARN of the Lambda function.

*/ inline bool LambdaArnHasBeenSet() const { return m_lambdaArnHasBeenSet; } /** *

The ARN of the Lambda function.

*/ inline void SetLambdaArn(const Aws::String& value) { m_lambdaArnHasBeenSet = true; m_lambdaArn = value; } /** *

The ARN of the Lambda function.

*/ inline void SetLambdaArn(Aws::String&& value) { m_lambdaArnHasBeenSet = true; m_lambdaArn = std::move(value); } /** *

The ARN of the Lambda function.

*/ inline void SetLambdaArn(const char* value) { m_lambdaArnHasBeenSet = true; m_lambdaArn.assign(value); } /** *

The ARN of the Lambda function.

*/ inline LambdaConfiguration& WithLambdaArn(const Aws::String& value) { SetLambdaArn(value); return *this;} /** *

The ARN of the Lambda function.

*/ inline LambdaConfiguration& WithLambdaArn(Aws::String&& value) { SetLambdaArn(std::move(value)); return *this;} /** *

The ARN of the Lambda function.

*/ inline LambdaConfiguration& WithLambdaArn(const char* value) { SetLambdaArn(value); return *this;} private: Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_lambdaArn; bool m_lambdaArnHasBeenSet = false; }; } // namespace Model } // namespace LookoutMetrics } // namespace Aws