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

Identifies

See Also:

AWS * API Reference

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

An Amazon Resource Name (ARN) that represents an Lambda function to be * triggered by PUT object actions on the associated local Amazon S3 resource.

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

An Amazon Resource Name (ARN) that represents an Lambda function to be * triggered by PUT object actions on the associated local Amazon S3 resource.

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

An Amazon Resource Name (ARN) that represents an Lambda function to be * triggered by PUT object actions on the associated local Amazon S3 resource.

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

An Amazon Resource Name (ARN) that represents an Lambda function to be * triggered by PUT object actions on the associated local Amazon S3 resource.

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

An Amazon Resource Name (ARN) that represents an Lambda function to be * triggered by PUT object actions on the associated local Amazon S3 resource.

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

An Amazon Resource Name (ARN) that represents an Lambda function to be * triggered by PUT object actions on the associated local Amazon S3 resource.

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

An Amazon Resource Name (ARN) that represents an Lambda function to be * triggered by PUT object actions on the associated local Amazon S3 resource.

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

An Amazon Resource Name (ARN) that represents an Lambda function to be * triggered by PUT object actions on the associated local Amazon S3 resource.

*/ inline LambdaResource& WithLambdaArn(const char* value) { SetLambdaArn(value); return *this;} /** *

The array of ARNs for S3Resource objects to trigger the * LambdaResource objects associated with this job.

*/ inline const Aws::Vector& GetEventTriggers() const{ return m_eventTriggers; } /** *

The array of ARNs for S3Resource objects to trigger the * LambdaResource objects associated with this job.

*/ inline bool EventTriggersHasBeenSet() const { return m_eventTriggersHasBeenSet; } /** *

The array of ARNs for S3Resource objects to trigger the * LambdaResource objects associated with this job.

*/ inline void SetEventTriggers(const Aws::Vector& value) { m_eventTriggersHasBeenSet = true; m_eventTriggers = value; } /** *

The array of ARNs for S3Resource objects to trigger the * LambdaResource objects associated with this job.

*/ inline void SetEventTriggers(Aws::Vector&& value) { m_eventTriggersHasBeenSet = true; m_eventTriggers = std::move(value); } /** *

The array of ARNs for S3Resource objects to trigger the * LambdaResource objects associated with this job.

*/ inline LambdaResource& WithEventTriggers(const Aws::Vector& value) { SetEventTriggers(value); return *this;} /** *

The array of ARNs for S3Resource objects to trigger the * LambdaResource objects associated with this job.

*/ inline LambdaResource& WithEventTriggers(Aws::Vector&& value) { SetEventTriggers(std::move(value)); return *this;} /** *

The array of ARNs for S3Resource objects to trigger the * LambdaResource objects associated with this job.

*/ inline LambdaResource& AddEventTriggers(const EventTriggerDefinition& value) { m_eventTriggersHasBeenSet = true; m_eventTriggers.push_back(value); return *this; } /** *

The array of ARNs for S3Resource objects to trigger the * LambdaResource objects associated with this job.

*/ inline LambdaResource& AddEventTriggers(EventTriggerDefinition&& value) { m_eventTriggersHasBeenSet = true; m_eventTriggers.push_back(std::move(value)); return *this; } private: Aws::String m_lambdaArn; bool m_lambdaArnHasBeenSet = false; Aws::Vector m_eventTriggers; bool m_eventTriggersHasBeenSet = false; }; } // namespace Model } // namespace Snowball } // namespace Aws