This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-lambda/include/aws/lambda/model/UpdateEventSourceMappingRequest.h

453 lines
19 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/lambda/Lambda_EXPORTS.h>
#include <aws/lambda/LambdaRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/lambda/model/DestinationConfig.h>
#include <utility>
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;
/**
* <p>The identifier of the event source mapping.</p>
*/
inline const Aws::String& GetUUID() const{ return m_uUID; }
/**
* <p>The identifier of the event source mapping.</p>
*/
inline bool UUIDHasBeenSet() const { return m_uUIDHasBeenSet; }
/**
* <p>The identifier of the event source mapping.</p>
*/
inline void SetUUID(const Aws::String& value) { m_uUIDHasBeenSet = true; m_uUID = value; }
/**
* <p>The identifier of the event source mapping.</p>
*/
inline void SetUUID(Aws::String&& value) { m_uUIDHasBeenSet = true; m_uUID = std::move(value); }
/**
* <p>The identifier of the event source mapping.</p>
*/
inline void SetUUID(const char* value) { m_uUIDHasBeenSet = true; m_uUID.assign(value); }
/**
* <p>The identifier of the event source mapping.</p>
*/
inline UpdateEventSourceMappingRequest& WithUUID(const Aws::String& value) { SetUUID(value); return *this;}
/**
* <p>The identifier of the event source mapping.</p>
*/
inline UpdateEventSourceMappingRequest& WithUUID(Aws::String&& value) { SetUUID(std::move(value)); return *this;}
/**
* <p>The identifier of the event source mapping.</p>
*/
inline UpdateEventSourceMappingRequest& WithUUID(const char* value) { SetUUID(value); return *this;}
/**
* <p>The name of the Lambda function.</p> <p class="title"> <b>Name formats</b>
* </p> <ul> <li> <p> <b>Function name</b> - <code>MyFunction</code>.</p> </li>
* <li> <p> <b>Function ARN</b> -
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p>
* </li> <li> <p> <b>Version or Alias ARN</b> -
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD</code>.</p>
* </li> <li> <p> <b>Partial ARN</b> -
* <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length
* constraint applies only to the full ARN. If you specify only the function name,
* it's limited to 64 characters in length.</p>
*/
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
/**
* <p>The name of the Lambda function.</p> <p class="title"> <b>Name formats</b>
* </p> <ul> <li> <p> <b>Function name</b> - <code>MyFunction</code>.</p> </li>
* <li> <p> <b>Function ARN</b> -
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p>
* </li> <li> <p> <b>Version or Alias ARN</b> -
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD</code>.</p>
* </li> <li> <p> <b>Partial ARN</b> -
* <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length
* constraint applies only to the full ARN. If you specify only the function name,
* it's limited to 64 characters in length.</p>
*/
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
/**
* <p>The name of the Lambda function.</p> <p class="title"> <b>Name formats</b>
* </p> <ul> <li> <p> <b>Function name</b> - <code>MyFunction</code>.</p> </li>
* <li> <p> <b>Function ARN</b> -
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p>
* </li> <li> <p> <b>Version or Alias ARN</b> -
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD</code>.</p>
* </li> <li> <p> <b>Partial ARN</b> -
* <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length
* constraint applies only to the full ARN. If you specify only the function name,
* it's limited to 64 characters in length.</p>
*/
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
/**
* <p>The name of the Lambda function.</p> <p class="title"> <b>Name formats</b>
* </p> <ul> <li> <p> <b>Function name</b> - <code>MyFunction</code>.</p> </li>
* <li> <p> <b>Function ARN</b> -
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p>
* </li> <li> <p> <b>Version or Alias ARN</b> -
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD</code>.</p>
* </li> <li> <p> <b>Partial ARN</b> -
* <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length
* constraint applies only to the full ARN. If you specify only the function name,
* it's limited to 64 characters in length.</p>
*/
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
/**
* <p>The name of the Lambda function.</p> <p class="title"> <b>Name formats</b>
* </p> <ul> <li> <p> <b>Function name</b> - <code>MyFunction</code>.</p> </li>
* <li> <p> <b>Function ARN</b> -
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p>
* </li> <li> <p> <b>Version or Alias ARN</b> -
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD</code>.</p>
* </li> <li> <p> <b>Partial ARN</b> -
* <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length
* constraint applies only to the full ARN. If you specify only the function name,
* it's limited to 64 characters in length.</p>
*/
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
/**
* <p>The name of the Lambda function.</p> <p class="title"> <b>Name formats</b>
* </p> <ul> <li> <p> <b>Function name</b> - <code>MyFunction</code>.</p> </li>
* <li> <p> <b>Function ARN</b> -
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p>
* </li> <li> <p> <b>Version or Alias ARN</b> -
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD</code>.</p>
* </li> <li> <p> <b>Partial ARN</b> -
* <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length
* constraint applies only to the full ARN. If you specify only the function name,
* it's limited to 64 characters in length.</p>
*/
inline UpdateEventSourceMappingRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
/**
* <p>The name of the Lambda function.</p> <p class="title"> <b>Name formats</b>
* </p> <ul> <li> <p> <b>Function name</b> - <code>MyFunction</code>.</p> </li>
* <li> <p> <b>Function ARN</b> -
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p>
* </li> <li> <p> <b>Version or Alias ARN</b> -
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD</code>.</p>
* </li> <li> <p> <b>Partial ARN</b> -
* <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length
* constraint applies only to the full ARN. If you specify only the function name,
* it's limited to 64 characters in length.</p>
*/
inline UpdateEventSourceMappingRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
/**
* <p>The name of the Lambda function.</p> <p class="title"> <b>Name formats</b>
* </p> <ul> <li> <p> <b>Function name</b> - <code>MyFunction</code>.</p> </li>
* <li> <p> <b>Function ARN</b> -
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p>
* </li> <li> <p> <b>Version or Alias ARN</b> -
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD</code>.</p>
* </li> <li> <p> <b>Partial ARN</b> -
* <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length
* constraint applies only to the full ARN. If you specify only the function name,
* it's limited to 64 characters in length.</p>
*/
inline UpdateEventSourceMappingRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
/**
* <p>If true, the event source mapping is active. Set to false to pause polling
* and invocation.</p>
*/
inline bool GetEnabled() const{ return m_enabled; }
/**
* <p>If true, the event source mapping is active. Set to false to pause polling
* and invocation.</p>
*/
inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
/**
* <p>If true, the event source mapping is active. Set to false to pause polling
* and invocation.</p>
*/
inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
/**
* <p>If true, the event source mapping is active. Set to false to pause polling
* and invocation.</p>
*/
inline UpdateEventSourceMappingRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
/**
* <p>The maximum number of items to retrieve in a single batch.</p> <ul> <li> <p>
* <b>Amazon Kinesis</b> - Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon
* DynamoDB Streams</b> - Default 100. Max 1,000.</p> </li> <li> <p> <b>Amazon
* Simple Queue Service</b> - Default 10. Max 10.</p> </li> <li> <p> <b>Amazon
* Managed Streaming for Apache Kafka</b> - Default 100. Max 10,000.</p> </li>
* </ul>
*/
inline int GetBatchSize() const{ return m_batchSize; }
/**
* <p>The maximum number of items to retrieve in a single batch.</p> <ul> <li> <p>
* <b>Amazon Kinesis</b> - Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon
* DynamoDB Streams</b> - Default 100. Max 1,000.</p> </li> <li> <p> <b>Amazon
* Simple Queue Service</b> - Default 10. Max 10.</p> </li> <li> <p> <b>Amazon
* Managed Streaming for Apache Kafka</b> - Default 100. Max 10,000.</p> </li>
* </ul>
*/
inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; }
/**
* <p>The maximum number of items to retrieve in a single batch.</p> <ul> <li> <p>
* <b>Amazon Kinesis</b> - Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon
* DynamoDB Streams</b> - Default 100. Max 1,000.</p> </li> <li> <p> <b>Amazon
* Simple Queue Service</b> - Default 10. Max 10.</p> </li> <li> <p> <b>Amazon
* Managed Streaming for Apache Kafka</b> - Default 100. Max 10,000.</p> </li>
* </ul>
*/
inline void SetBatchSize(int value) { m_batchSizeHasBeenSet = true; m_batchSize = value; }
/**
* <p>The maximum number of items to retrieve in a single batch.</p> <ul> <li> <p>
* <b>Amazon Kinesis</b> - Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon
* DynamoDB Streams</b> - Default 100. Max 1,000.</p> </li> <li> <p> <b>Amazon
* Simple Queue Service</b> - Default 10. Max 10.</p> </li> <li> <p> <b>Amazon
* Managed Streaming for Apache Kafka</b> - Default 100. Max 10,000.</p> </li>
* </ul>
*/
inline UpdateEventSourceMappingRequest& WithBatchSize(int value) { SetBatchSize(value); return *this;}
/**
* <p>(Streams) The maximum amount of time to gather records before invoking the
* function, in seconds.</p>
*/
inline int GetMaximumBatchingWindowInSeconds() const{ return m_maximumBatchingWindowInSeconds; }
/**
* <p>(Streams) The maximum amount of time to gather records before invoking the
* function, in seconds.</p>
*/
inline bool MaximumBatchingWindowInSecondsHasBeenSet() const { return m_maximumBatchingWindowInSecondsHasBeenSet; }
/**
* <p>(Streams) The maximum amount of time to gather records before invoking the
* function, in seconds.</p>
*/
inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSecondsHasBeenSet = true; m_maximumBatchingWindowInSeconds = value; }
/**
* <p>(Streams) The maximum amount of time to gather records before invoking the
* function, in seconds.</p>
*/
inline UpdateEventSourceMappingRequest& WithMaximumBatchingWindowInSeconds(int value) { SetMaximumBatchingWindowInSeconds(value); return *this;}
/**
* <p>(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded
* records.</p>
*/
inline const DestinationConfig& GetDestinationConfig() const{ return m_destinationConfig; }
/**
* <p>(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded
* records.</p>
*/
inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; }
/**
* <p>(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded
* records.</p>
*/
inline void SetDestinationConfig(const DestinationConfig& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = value; }
/**
* <p>(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded
* records.</p>
*/
inline void SetDestinationConfig(DestinationConfig&& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = std::move(value); }
/**
* <p>(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded
* records.</p>
*/
inline UpdateEventSourceMappingRequest& WithDestinationConfig(const DestinationConfig& value) { SetDestinationConfig(value); return *this;}
/**
* <p>(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded
* records.</p>
*/
inline UpdateEventSourceMappingRequest& WithDestinationConfig(DestinationConfig&& value) { SetDestinationConfig(std::move(value)); return *this;}
/**
* <p>(Streams) Discard records older than the specified age. The default value is
* infinite (-1).</p>
*/
inline int GetMaximumRecordAgeInSeconds() const{ return m_maximumRecordAgeInSeconds; }
/**
* <p>(Streams) Discard records older than the specified age. The default value is
* infinite (-1).</p>
*/
inline bool MaximumRecordAgeInSecondsHasBeenSet() const { return m_maximumRecordAgeInSecondsHasBeenSet; }
/**
* <p>(Streams) Discard records older than the specified age. The default value is
* infinite (-1).</p>
*/
inline void SetMaximumRecordAgeInSeconds(int value) { m_maximumRecordAgeInSecondsHasBeenSet = true; m_maximumRecordAgeInSeconds = value; }
/**
* <p>(Streams) Discard records older than the specified age. The default value is
* infinite (-1).</p>
*/
inline UpdateEventSourceMappingRequest& WithMaximumRecordAgeInSeconds(int value) { SetMaximumRecordAgeInSeconds(value); return *this;}
/**
* <p>(Streams) If the function returns an error, split the batch in two and
* retry.</p>
*/
inline bool GetBisectBatchOnFunctionError() const{ return m_bisectBatchOnFunctionError; }
/**
* <p>(Streams) If the function returns an error, split the batch in two and
* retry.</p>
*/
inline bool BisectBatchOnFunctionErrorHasBeenSet() const { return m_bisectBatchOnFunctionErrorHasBeenSet; }
/**
* <p>(Streams) If the function returns an error, split the batch in two and
* retry.</p>
*/
inline void SetBisectBatchOnFunctionError(bool value) { m_bisectBatchOnFunctionErrorHasBeenSet = true; m_bisectBatchOnFunctionError = value; }
/**
* <p>(Streams) If the function returns an error, split the batch in two and
* retry.</p>
*/
inline UpdateEventSourceMappingRequest& WithBisectBatchOnFunctionError(bool value) { SetBisectBatchOnFunctionError(value); return *this;}
/**
* <p>(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.</p>
*/
inline int GetMaximumRetryAttempts() const{ return m_maximumRetryAttempts; }
/**
* <p>(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.</p>
*/
inline bool MaximumRetryAttemptsHasBeenSet() const { return m_maximumRetryAttemptsHasBeenSet; }
/**
* <p>(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.</p>
*/
inline void SetMaximumRetryAttempts(int value) { m_maximumRetryAttemptsHasBeenSet = true; m_maximumRetryAttempts = value; }
/**
* <p>(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.</p>
*/
inline UpdateEventSourceMappingRequest& WithMaximumRetryAttempts(int value) { SetMaximumRetryAttempts(value); return *this;}
/**
* <p>(Streams) The number of batches to process from each shard concurrently.</p>
*/
inline int GetParallelizationFactor() const{ return m_parallelizationFactor; }
/**
* <p>(Streams) The number of batches to process from each shard concurrently.</p>
*/
inline bool ParallelizationFactorHasBeenSet() const { return m_parallelizationFactorHasBeenSet; }
/**
* <p>(Streams) The number of batches to process from each shard concurrently.</p>
*/
inline void SetParallelizationFactor(int value) { m_parallelizationFactorHasBeenSet = true; m_parallelizationFactor = value; }
/**
* <p>(Streams) The number of batches to process from each shard concurrently.</p>
*/
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