/** * 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 Lambda { namespace Model { /** */ class AWS_LAMBDA_API UpdateEventSourceMappingRequest : public LambdaRequest { public: UpdateEventSourceMappingRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateEventSourceMapping"; } Aws::String SerializePayload() const override; /** *

The identifier of the event source mapping.

*/ inline const Aws::String& GetUUID() const{ return m_uUID; } /** *

The identifier of the event source mapping.

*/ inline bool UUIDHasBeenSet() const { return m_uUIDHasBeenSet; } /** *

The identifier of the event source mapping.

*/ inline void SetUUID(const Aws::String& value) { m_uUIDHasBeenSet = true; m_uUID = value; } /** *

The identifier of the event source mapping.

*/ inline void SetUUID(Aws::String&& value) { m_uUIDHasBeenSet = true; m_uUID = std::move(value); } /** *

The identifier of the event source mapping.

*/ inline void SetUUID(const char* value) { m_uUIDHasBeenSet = true; m_uUID.assign(value); } /** *

The identifier of the event source mapping.

*/ inline UpdateEventSourceMappingRequest& WithUUID(const Aws::String& value) { SetUUID(value); return *this;} /** *

The identifier of the event source mapping.

*/ inline UpdateEventSourceMappingRequest& WithUUID(Aws::String&& value) { SetUUID(std::move(value)); return *this;} /** *

The identifier of the event source mapping.

*/ inline UpdateEventSourceMappingRequest& WithUUID(const char* value) { SetUUID(value); return *this;} /** *

The name of the Lambda function.

Name formats *

  • Function name - MyFunction.

  • *
  • Function ARN - * arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

    *
  • Version or Alias ARN - * arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.

    *
  • Partial ARN - * 123456789012:function:MyFunction.

The length * constraint applies only to the full ARN. If you specify only the function name, * it's limited to 64 characters in length.

*/ inline const Aws::String& GetFunctionName() const{ return m_functionName; } /** *

The name of the Lambda function.

Name formats *

  • Function name - MyFunction.

  • *
  • Function ARN - * arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

    *
  • Version or Alias ARN - * arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.

    *
  • Partial ARN - * 123456789012:function:MyFunction.

The length * constraint applies only to the full ARN. If you specify only the function name, * it's limited to 64 characters in length.

*/ inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; } /** *

The name of the Lambda function.

Name formats *

  • Function name - MyFunction.

  • *
  • Function ARN - * arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

    *
  • Version or Alias ARN - * arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.

    *
  • Partial ARN - * 123456789012:function:MyFunction.

The length * constraint applies only to the full ARN. If you specify only the function name, * it's limited to 64 characters in length.

*/ inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; } /** *

The name of the Lambda function.

Name formats *

  • Function name - MyFunction.

  • *
  • Function ARN - * arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

    *
  • Version or Alias ARN - * arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.

    *
  • Partial ARN - * 123456789012:function:MyFunction.

The length * constraint applies only to the full ARN. If you specify only the function name, * it's limited to 64 characters in length.

*/ inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); } /** *

The name of the Lambda function.

Name formats *

  • Function name - MyFunction.

  • *
  • Function ARN - * arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

    *
  • Version or Alias ARN - * arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.

    *
  • Partial ARN - * 123456789012:function:MyFunction.

The length * constraint applies only to the full ARN. If you specify only the function name, * it's limited to 64 characters in length.

*/ inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); } /** *

The name of the Lambda function.

Name formats *

  • Function name - MyFunction.

  • *
  • Function ARN - * arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

    *
  • Version or Alias ARN - * arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.

    *
  • Partial ARN - * 123456789012:function:MyFunction.

The length * constraint applies only to the full ARN. If you specify only the function name, * it's limited to 64 characters in length.

*/ inline UpdateEventSourceMappingRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;} /** *

The name of the Lambda function.

Name formats *

  • Function name - MyFunction.

  • *
  • Function ARN - * arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

    *
  • Version or Alias ARN - * arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.

    *
  • Partial ARN - * 123456789012:function:MyFunction.

The length * constraint applies only to the full ARN. If you specify only the function name, * it's limited to 64 characters in length.

*/ inline UpdateEventSourceMappingRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;} /** *

The name of the Lambda function.

Name formats *

  • Function name - MyFunction.

  • *
  • Function ARN - * arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

    *
  • Version or Alias ARN - * arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.

    *
  • Partial ARN - * 123456789012:function:MyFunction.

The length * constraint applies only to the full ARN. If you specify only the function name, * it's limited to 64 characters in length.

*/ inline UpdateEventSourceMappingRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;} /** *

If true, the event source mapping is active. Set to false to pause polling * and invocation.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

If true, the event source mapping is active. Set to false to pause polling * and invocation.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

If true, the event source mapping is active. Set to false to pause polling * and invocation.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

If true, the event source mapping is active. Set to false to pause polling * and invocation.

*/ inline UpdateEventSourceMappingRequest& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

The maximum number of items to retrieve in a single batch.

  • * Amazon Kinesis - Default 100. Max 10,000.

  • Amazon * DynamoDB Streams - Default 100. Max 1,000.

  • Amazon * Simple Queue Service - Default 10. Max 10.

  • Amazon * Managed Streaming for Apache Kafka - Default 100. Max 10,000.

  • *
*/ inline int GetBatchSize() const{ return m_batchSize; } /** *

The maximum number of items to retrieve in a single batch.

  • * Amazon Kinesis - Default 100. Max 10,000.

  • Amazon * DynamoDB Streams - Default 100. Max 1,000.

  • Amazon * Simple Queue Service - Default 10. Max 10.

  • Amazon * Managed Streaming for Apache Kafka - Default 100. Max 10,000.

  • *
*/ inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; } /** *

The maximum number of items to retrieve in a single batch.

  • * Amazon Kinesis - Default 100. Max 10,000.

  • Amazon * DynamoDB Streams - Default 100. Max 1,000.

  • Amazon * Simple Queue Service - Default 10. Max 10.

  • Amazon * Managed Streaming for Apache Kafka - Default 100. Max 10,000.

  • *
*/ inline void SetBatchSize(int value) { m_batchSizeHasBeenSet = true; m_batchSize = value; } /** *

The maximum number of items to retrieve in a single batch.

  • * Amazon Kinesis - Default 100. Max 10,000.

  • Amazon * DynamoDB Streams - Default 100. Max 1,000.

  • Amazon * Simple Queue Service - Default 10. Max 10.

  • Amazon * Managed Streaming for Apache Kafka - Default 100. Max 10,000.

  • *
*/ inline UpdateEventSourceMappingRequest& WithBatchSize(int value) { SetBatchSize(value); return *this;} /** *

(Streams) The maximum amount of time to gather records before invoking the * function, in seconds.

*/ inline int GetMaximumBatchingWindowInSeconds() const{ return m_maximumBatchingWindowInSeconds; } /** *

(Streams) The maximum amount of time to gather records before invoking the * function, in seconds.

*/ inline bool MaximumBatchingWindowInSecondsHasBeenSet() const { return m_maximumBatchingWindowInSecondsHasBeenSet; } /** *

(Streams) The maximum amount of time to gather records before invoking the * function, in seconds.

*/ inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSecondsHasBeenSet = true; m_maximumBatchingWindowInSeconds = value; } /** *

(Streams) The maximum amount of time to gather records before invoking the * function, in seconds.

*/ inline UpdateEventSourceMappingRequest& WithMaximumBatchingWindowInSeconds(int value) { SetMaximumBatchingWindowInSeconds(value); return *this;} /** *

(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded * records.

*/ inline const DestinationConfig& GetDestinationConfig() const{ return m_destinationConfig; } /** *

(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded * records.

*/ inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; } /** *

(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded * records.

*/ inline void SetDestinationConfig(const DestinationConfig& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = value; } /** *

(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded * records.

*/ inline void SetDestinationConfig(DestinationConfig&& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = std::move(value); } /** *

(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded * records.

*/ inline UpdateEventSourceMappingRequest& WithDestinationConfig(const DestinationConfig& value) { SetDestinationConfig(value); return *this;} /** *

(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded * records.

*/ inline UpdateEventSourceMappingRequest& WithDestinationConfig(DestinationConfig&& value) { SetDestinationConfig(std::move(value)); return *this;} /** *

(Streams) Discard records older than the specified age. The default value is * infinite (-1).

*/ inline int GetMaximumRecordAgeInSeconds() const{ return m_maximumRecordAgeInSeconds; } /** *

(Streams) Discard records older than the specified age. The default value is * infinite (-1).

*/ inline bool MaximumRecordAgeInSecondsHasBeenSet() const { return m_maximumRecordAgeInSecondsHasBeenSet; } /** *

(Streams) Discard records older than the specified age. The default value is * infinite (-1).

*/ inline void SetMaximumRecordAgeInSeconds(int value) { m_maximumRecordAgeInSecondsHasBeenSet = true; m_maximumRecordAgeInSeconds = value; } /** *

(Streams) Discard records older than the specified age. The default value is * infinite (-1).

*/ inline UpdateEventSourceMappingRequest& WithMaximumRecordAgeInSeconds(int value) { SetMaximumRecordAgeInSeconds(value); return *this;} /** *

(Streams) If the function returns an error, split the batch in two and * retry.

*/ inline bool GetBisectBatchOnFunctionError() const{ return m_bisectBatchOnFunctionError; } /** *

(Streams) If the function returns an error, split the batch in two and * retry.

*/ inline bool BisectBatchOnFunctionErrorHasBeenSet() const { return m_bisectBatchOnFunctionErrorHasBeenSet; } /** *

(Streams) If the function returns an error, split the batch in two and * retry.

*/ inline void SetBisectBatchOnFunctionError(bool value) { m_bisectBatchOnFunctionErrorHasBeenSet = true; m_bisectBatchOnFunctionError = value; } /** *

(Streams) If the function returns an error, split the batch in two and * retry.

*/ inline UpdateEventSourceMappingRequest& WithBisectBatchOnFunctionError(bool value) { SetBisectBatchOnFunctionError(value); return *this;} /** *

(Streams) Discard records after the specified number of retries. The default * value is infinite (-1). When set to infinite (-1), failed records will be * retried until the record expires.

*/ inline int GetMaximumRetryAttempts() const{ return m_maximumRetryAttempts; } /** *

(Streams) Discard records after the specified number of retries. The default * value is infinite (-1). When set to infinite (-1), failed records will be * retried until the record expires.

*/ inline bool MaximumRetryAttemptsHasBeenSet() const { return m_maximumRetryAttemptsHasBeenSet; } /** *

(Streams) Discard records after the specified number of retries. The default * value is infinite (-1). When set to infinite (-1), failed records will be * retried until the record expires.

*/ inline void SetMaximumRetryAttempts(int value) { m_maximumRetryAttemptsHasBeenSet = true; m_maximumRetryAttempts = value; } /** *

(Streams) Discard records after the specified number of retries. The default * value is infinite (-1). When set to infinite (-1), failed records will be * retried until the record expires.

*/ inline UpdateEventSourceMappingRequest& WithMaximumRetryAttempts(int value) { SetMaximumRetryAttempts(value); return *this;} /** *

(Streams) The number of batches to process from each shard concurrently.

*/ inline int GetParallelizationFactor() const{ return m_parallelizationFactor; } /** *

(Streams) The number of batches to process from each shard concurrently.

*/ inline bool ParallelizationFactorHasBeenSet() const { return m_parallelizationFactorHasBeenSet; } /** *

(Streams) The number of batches to process from each shard concurrently.

*/ inline void SetParallelizationFactor(int value) { m_parallelizationFactorHasBeenSet = true; m_parallelizationFactor = value; } /** *

(Streams) The number of batches to process from each shard concurrently.

*/ inline UpdateEventSourceMappingRequest& WithParallelizationFactor(int value) { SetParallelizationFactor(value); return *this;} private: Aws::String m_uUID; bool m_uUIDHasBeenSet; Aws::String m_functionName; bool m_functionNameHasBeenSet; bool m_enabled; bool m_enabledHasBeenSet; int m_batchSize; bool m_batchSizeHasBeenSet; int m_maximumBatchingWindowInSeconds; bool m_maximumBatchingWindowInSecondsHasBeenSet; DestinationConfig m_destinationConfig; bool m_destinationConfigHasBeenSet; int m_maximumRecordAgeInSeconds; bool m_maximumRecordAgeInSecondsHasBeenSet; bool m_bisectBatchOnFunctionError; bool m_bisectBatchOnFunctionErrorHasBeenSet; int m_maximumRetryAttempts; bool m_maximumRetryAttemptsHasBeenSet; int m_parallelizationFactor; bool m_parallelizationFactorHasBeenSet; }; } // namespace Model } // namespace Lambda } // namespace Aws