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

Specifies a Lambda function that verifies requests to a bot or fulfills the * user's request to a bot..

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the Lambda function.

*/ inline const Aws::String& GetUri() const{ return m_uri; } /** *

The Amazon Resource Name (ARN) of the Lambda function.

*/ inline bool UriHasBeenSet() const { return m_uriHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Lambda function.

*/ inline void SetUri(const Aws::String& value) { m_uriHasBeenSet = true; m_uri = value; } /** *

The Amazon Resource Name (ARN) of the Lambda function.

*/ inline void SetUri(Aws::String&& value) { m_uriHasBeenSet = true; m_uri = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Lambda function.

*/ inline void SetUri(const char* value) { m_uriHasBeenSet = true; m_uri.assign(value); } /** *

The Amazon Resource Name (ARN) of the Lambda function.

*/ inline CodeHook& WithUri(const Aws::String& value) { SetUri(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Lambda function.

*/ inline CodeHook& WithUri(Aws::String&& value) { SetUri(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Lambda function.

*/ inline CodeHook& WithUri(const char* value) { SetUri(value); return *this;} /** *

The version of the request-response that you want Amazon Lex to use to invoke * your Lambda function. For more information, see using-lambda.

*/ inline const Aws::String& GetMessageVersion() const{ return m_messageVersion; } /** *

The version of the request-response that you want Amazon Lex to use to invoke * your Lambda function. For more information, see using-lambda.

*/ inline bool MessageVersionHasBeenSet() const { return m_messageVersionHasBeenSet; } /** *

The version of the request-response that you want Amazon Lex to use to invoke * your Lambda function. For more information, see using-lambda.

*/ inline void SetMessageVersion(const Aws::String& value) { m_messageVersionHasBeenSet = true; m_messageVersion = value; } /** *

The version of the request-response that you want Amazon Lex to use to invoke * your Lambda function. For more information, see using-lambda.

*/ inline void SetMessageVersion(Aws::String&& value) { m_messageVersionHasBeenSet = true; m_messageVersion = std::move(value); } /** *

The version of the request-response that you want Amazon Lex to use to invoke * your Lambda function. For more information, see using-lambda.

*/ inline void SetMessageVersion(const char* value) { m_messageVersionHasBeenSet = true; m_messageVersion.assign(value); } /** *

The version of the request-response that you want Amazon Lex to use to invoke * your Lambda function. For more information, see using-lambda.

*/ inline CodeHook& WithMessageVersion(const Aws::String& value) { SetMessageVersion(value); return *this;} /** *

The version of the request-response that you want Amazon Lex to use to invoke * your Lambda function. For more information, see using-lambda.

*/ inline CodeHook& WithMessageVersion(Aws::String&& value) { SetMessageVersion(std::move(value)); return *this;} /** *

The version of the request-response that you want Amazon Lex to use to invoke * your Lambda function. For more information, see using-lambda.

*/ inline CodeHook& WithMessageVersion(const char* value) { SetMessageVersion(value); return *this;} private: Aws::String m_uri; bool m_uriHasBeenSet = false; Aws::String m_messageVersion; bool m_messageVersionHasBeenSet = false; }; } // namespace Model } // namespace LexModelBuildingService } // namespace Aws