/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Container for specifying the Lambda notification configuration.See
* Also:
AWS
* API Reference
Bucket events for which to send notifications.
*/ inline const Aws::VectorBucket events for which to send notifications.
*/ inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; } /** *Bucket events for which to send notifications.
*/ inline void SetEvents(const Aws::VectorBucket events for which to send notifications.
*/ inline void SetEvents(Aws::VectorBucket events for which to send notifications.
*/ inline CloudFunctionConfiguration& WithEvents(const Aws::VectorBucket events for which to send notifications.
*/ inline CloudFunctionConfiguration& WithEvents(Aws::VectorBucket events for which to send notifications.
*/ inline CloudFunctionConfiguration& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; } /** *Bucket events for which to send notifications.
*/ inline CloudFunctionConfiguration& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; } /** *Lambda cloud function ARN that Amazon S3 can invoke when it detects events of * the specified type.
*/ inline const Aws::String& GetCloudFunction() const{ return m_cloudFunction; } /** *Lambda cloud function ARN that Amazon S3 can invoke when it detects events of * the specified type.
*/ inline bool CloudFunctionHasBeenSet() const { return m_cloudFunctionHasBeenSet; } /** *Lambda cloud function ARN that Amazon S3 can invoke when it detects events of * the specified type.
*/ inline void SetCloudFunction(const Aws::String& value) { m_cloudFunctionHasBeenSet = true; m_cloudFunction = value; } /** *Lambda cloud function ARN that Amazon S3 can invoke when it detects events of * the specified type.
*/ inline void SetCloudFunction(Aws::String&& value) { m_cloudFunctionHasBeenSet = true; m_cloudFunction = std::move(value); } /** *Lambda cloud function ARN that Amazon S3 can invoke when it detects events of * the specified type.
*/ inline void SetCloudFunction(const char* value) { m_cloudFunctionHasBeenSet = true; m_cloudFunction.assign(value); } /** *Lambda cloud function ARN that Amazon S3 can invoke when it detects events of * the specified type.
*/ inline CloudFunctionConfiguration& WithCloudFunction(const Aws::String& value) { SetCloudFunction(value); return *this;} /** *Lambda cloud function ARN that Amazon S3 can invoke when it detects events of * the specified type.
*/ inline CloudFunctionConfiguration& WithCloudFunction(Aws::String&& value) { SetCloudFunction(std::move(value)); return *this;} /** *Lambda cloud function ARN that Amazon S3 can invoke when it detects events of * the specified type.
*/ inline CloudFunctionConfiguration& WithCloudFunction(const char* value) { SetCloudFunction(value); return *this;} /** *The role supporting the invocation of the Lambda function
*/ inline const Aws::String& GetInvocationRole() const{ return m_invocationRole; } /** *The role supporting the invocation of the Lambda function
*/ inline bool InvocationRoleHasBeenSet() const { return m_invocationRoleHasBeenSet; } /** *The role supporting the invocation of the Lambda function
*/ inline void SetInvocationRole(const Aws::String& value) { m_invocationRoleHasBeenSet = true; m_invocationRole = value; } /** *The role supporting the invocation of the Lambda function
*/ inline void SetInvocationRole(Aws::String&& value) { m_invocationRoleHasBeenSet = true; m_invocationRole = std::move(value); } /** *The role supporting the invocation of the Lambda function
*/ inline void SetInvocationRole(const char* value) { m_invocationRoleHasBeenSet = true; m_invocationRole.assign(value); } /** *The role supporting the invocation of the Lambda function
*/ inline CloudFunctionConfiguration& WithInvocationRole(const Aws::String& value) { SetInvocationRole(value); return *this;} /** *The role supporting the invocation of the Lambda function
*/ inline CloudFunctionConfiguration& WithInvocationRole(Aws::String&& value) { SetInvocationRole(std::move(value)); return *this;} /** *The role supporting the invocation of the Lambda function
*/ inline CloudFunctionConfiguration& WithInvocationRole(const char* value) { SetInvocationRole(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet; Aws::Vector