/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace S3Control { namespace Model { /** *

Lambda function used to transform objects through an Object Lambda Access * Point.

See Also:

AWS * API Reference

*/ class AwsLambdaTransformation { public: AWS_S3CONTROL_API AwsLambdaTransformation(); AWS_S3CONTROL_API AwsLambdaTransformation(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CONTROL_API AwsLambdaTransformation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

The Amazon Resource Name (ARN) of the Lambda function.

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

The Amazon Resource Name (ARN) of the Lambda function.

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

The Amazon Resource Name (ARN) of the Lambda function.

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

The Amazon Resource Name (ARN) of the Lambda function.

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

The Amazon Resource Name (ARN) of the Lambda function.

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

The Amazon Resource Name (ARN) of the Lambda function.

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

The Amazon Resource Name (ARN) of the Lambda function.

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

The Amazon Resource Name (ARN) of the Lambda function.

*/ inline AwsLambdaTransformation& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;} /** *

Additional JSON that provides supplemental data to the Lambda function used * to transform objects.

*/ inline const Aws::String& GetFunctionPayload() const{ return m_functionPayload; } /** *

Additional JSON that provides supplemental data to the Lambda function used * to transform objects.

*/ inline bool FunctionPayloadHasBeenSet() const { return m_functionPayloadHasBeenSet; } /** *

Additional JSON that provides supplemental data to the Lambda function used * to transform objects.

*/ inline void SetFunctionPayload(const Aws::String& value) { m_functionPayloadHasBeenSet = true; m_functionPayload = value; } /** *

Additional JSON that provides supplemental data to the Lambda function used * to transform objects.

*/ inline void SetFunctionPayload(Aws::String&& value) { m_functionPayloadHasBeenSet = true; m_functionPayload = std::move(value); } /** *

Additional JSON that provides supplemental data to the Lambda function used * to transform objects.

*/ inline void SetFunctionPayload(const char* value) { m_functionPayloadHasBeenSet = true; m_functionPayload.assign(value); } /** *

Additional JSON that provides supplemental data to the Lambda function used * to transform objects.

*/ inline AwsLambdaTransformation& WithFunctionPayload(const Aws::String& value) { SetFunctionPayload(value); return *this;} /** *

Additional JSON that provides supplemental data to the Lambda function used * to transform objects.

*/ inline AwsLambdaTransformation& WithFunctionPayload(Aws::String&& value) { SetFunctionPayload(std::move(value)); return *this;} /** *

Additional JSON that provides supplemental data to the Lambda function used * to transform objects.

*/ inline AwsLambdaTransformation& WithFunctionPayload(const char* value) { SetFunctionPayload(value); return *this;} private: Aws::String m_functionArn; bool m_functionArnHasBeenSet = false; Aws::String m_functionPayload; bool m_functionPayloadHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws