/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Lambda { namespace Model { class GetFunctionEventInvokeConfigResult { public: AWS_LAMBDA_API GetFunctionEventInvokeConfigResult(); AWS_LAMBDA_API GetFunctionEventInvokeConfigResult(const Aws::AmazonWebServiceResult& result); AWS_LAMBDA_API GetFunctionEventInvokeConfigResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The date and time that the configuration was last updated.

*/ inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; } /** *

The date and time that the configuration was last updated.

*/ inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModified = value; } /** *

The date and time that the configuration was last updated.

*/ inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModified = std::move(value); } /** *

The date and time that the configuration was last updated.

*/ inline GetFunctionEventInvokeConfigResult& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;} /** *

The date and time that the configuration was last updated.

*/ inline GetFunctionEventInvokeConfigResult& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the function.

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

The Amazon Resource Name (ARN) of the function.

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

The Amazon Resource Name (ARN) of the function.

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

The Amazon Resource Name (ARN) of the function.

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

The Amazon Resource Name (ARN) of the function.

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

The Amazon Resource Name (ARN) of the function.

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

The Amazon Resource Name (ARN) of the function.

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

The maximum number of times to retry when the function returns an error.

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

The maximum number of times to retry when the function returns an error.

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

The maximum number of times to retry when the function returns an error.

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

The maximum age of a request that Lambda sends to a function for * processing.

*/ inline int GetMaximumEventAgeInSeconds() const{ return m_maximumEventAgeInSeconds; } /** *

The maximum age of a request that Lambda sends to a function for * processing.

*/ inline void SetMaximumEventAgeInSeconds(int value) { m_maximumEventAgeInSeconds = value; } /** *

The maximum age of a request that Lambda sends to a function for * processing.

*/ inline GetFunctionEventInvokeConfigResult& WithMaximumEventAgeInSeconds(int value) { SetMaximumEventAgeInSeconds(value); return *this;} /** *

A destination for events after they have been sent to a function for * processing.

Destinations

  • * Function - The Amazon Resource Name (ARN) of a Lambda function.

  • *
  • Queue - The ARN of a standard SQS queue.

  • * Topic - The ARN of a standard SNS topic.

  • Event * Bus - The ARN of an Amazon EventBridge event bus.

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

A destination for events after they have been sent to a function for * processing.

Destinations

  • * Function - The Amazon Resource Name (ARN) of a Lambda function.

  • *
  • Queue - The ARN of a standard SQS queue.

  • * Topic - The ARN of a standard SNS topic.

  • Event * Bus - The ARN of an Amazon EventBridge event bus.

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

A destination for events after they have been sent to a function for * processing.

Destinations

  • * Function - The Amazon Resource Name (ARN) of a Lambda function.

  • *
  • Queue - The ARN of a standard SQS queue.

  • * Topic - The ARN of a standard SNS topic.

  • Event * Bus - The ARN of an Amazon EventBridge event bus.

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

A destination for events after they have been sent to a function for * processing.

Destinations

  • * Function - The Amazon Resource Name (ARN) of a Lambda function.

  • *
  • Queue - The ARN of a standard SQS queue.

  • * Topic - The ARN of a standard SNS topic.

  • Event * Bus - The ARN of an Amazon EventBridge event bus.

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

A destination for events after they have been sent to a function for * processing.

Destinations

  • * Function - The Amazon Resource Name (ARN) of a Lambda function.

  • *
  • Queue - The ARN of a standard SQS queue.

  • * Topic - The ARN of a standard SNS topic.

  • Event * Bus - The ARN of an Amazon EventBridge event bus.

*/ inline GetFunctionEventInvokeConfigResult& WithDestinationConfig(DestinationConfig&& value) { SetDestinationConfig(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetFunctionEventInvokeConfigResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetFunctionEventInvokeConfigResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetFunctionEventInvokeConfigResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::DateTime m_lastModified; Aws::String m_functionArn; int m_maximumRetryAttempts; int m_maximumEventAgeInSeconds; DestinationConfig m_destinationConfig; Aws::String m_requestId; }; } // namespace Model } // namespace Lambda } // namespace Aws