/** * 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 Chime { namespace Model { /** *

The configuration that allows a bot to receive outgoing events. Can be either * an HTTPS endpoint or a Lambda function ARN.

See Also:

AWS * API Reference

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

The bot ID.

*/ inline const Aws::String& GetBotId() const{ return m_botId; } /** *

The bot ID.

*/ inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; } /** *

The bot ID.

*/ inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; } /** *

The bot ID.

*/ inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); } /** *

The bot ID.

*/ inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); } /** *

The bot ID.

*/ inline EventsConfiguration& WithBotId(const Aws::String& value) { SetBotId(value); return *this;} /** *

The bot ID.

*/ inline EventsConfiguration& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;} /** *

The bot ID.

*/ inline EventsConfiguration& WithBotId(const char* value) { SetBotId(value); return *this;} /** *

HTTPS endpoint that allows a bot to receive outgoing events.

*/ inline const Aws::String& GetOutboundEventsHTTPSEndpoint() const{ return m_outboundEventsHTTPSEndpoint; } /** *

HTTPS endpoint that allows a bot to receive outgoing events.

*/ inline bool OutboundEventsHTTPSEndpointHasBeenSet() const { return m_outboundEventsHTTPSEndpointHasBeenSet; } /** *

HTTPS endpoint that allows a bot to receive outgoing events.

*/ inline void SetOutboundEventsHTTPSEndpoint(const Aws::String& value) { m_outboundEventsHTTPSEndpointHasBeenSet = true; m_outboundEventsHTTPSEndpoint = value; } /** *

HTTPS endpoint that allows a bot to receive outgoing events.

*/ inline void SetOutboundEventsHTTPSEndpoint(Aws::String&& value) { m_outboundEventsHTTPSEndpointHasBeenSet = true; m_outboundEventsHTTPSEndpoint = std::move(value); } /** *

HTTPS endpoint that allows a bot to receive outgoing events.

*/ inline void SetOutboundEventsHTTPSEndpoint(const char* value) { m_outboundEventsHTTPSEndpointHasBeenSet = true; m_outboundEventsHTTPSEndpoint.assign(value); } /** *

HTTPS endpoint that allows a bot to receive outgoing events.

*/ inline EventsConfiguration& WithOutboundEventsHTTPSEndpoint(const Aws::String& value) { SetOutboundEventsHTTPSEndpoint(value); return *this;} /** *

HTTPS endpoint that allows a bot to receive outgoing events.

*/ inline EventsConfiguration& WithOutboundEventsHTTPSEndpoint(Aws::String&& value) { SetOutboundEventsHTTPSEndpoint(std::move(value)); return *this;} /** *

HTTPS endpoint that allows a bot to receive outgoing events.

*/ inline EventsConfiguration& WithOutboundEventsHTTPSEndpoint(const char* value) { SetOutboundEventsHTTPSEndpoint(value); return *this;} /** *

Lambda function ARN that allows a bot to receive outgoing events.

*/ inline const Aws::String& GetLambdaFunctionArn() const{ return m_lambdaFunctionArn; } /** *

Lambda function ARN that allows a bot to receive outgoing events.

*/ inline bool LambdaFunctionArnHasBeenSet() const { return m_lambdaFunctionArnHasBeenSet; } /** *

Lambda function ARN that allows a bot to receive outgoing events.

*/ inline void SetLambdaFunctionArn(const Aws::String& value) { m_lambdaFunctionArnHasBeenSet = true; m_lambdaFunctionArn = value; } /** *

Lambda function ARN that allows a bot to receive outgoing events.

*/ inline void SetLambdaFunctionArn(Aws::String&& value) { m_lambdaFunctionArnHasBeenSet = true; m_lambdaFunctionArn = std::move(value); } /** *

Lambda function ARN that allows a bot to receive outgoing events.

*/ inline void SetLambdaFunctionArn(const char* value) { m_lambdaFunctionArnHasBeenSet = true; m_lambdaFunctionArn.assign(value); } /** *

Lambda function ARN that allows a bot to receive outgoing events.

*/ inline EventsConfiguration& WithLambdaFunctionArn(const Aws::String& value) { SetLambdaFunctionArn(value); return *this;} /** *

Lambda function ARN that allows a bot to receive outgoing events.

*/ inline EventsConfiguration& WithLambdaFunctionArn(Aws::String&& value) { SetLambdaFunctionArn(std::move(value)); return *this;} /** *

Lambda function ARN that allows a bot to receive outgoing events.

*/ inline EventsConfiguration& WithLambdaFunctionArn(const char* value) { SetLambdaFunctionArn(value); return *this;} private: Aws::String m_botId; bool m_botIdHasBeenSet = false; Aws::String m_outboundEventsHTTPSEndpoint; bool m_outboundEventsHTTPSEndpointHasBeenSet = false; Aws::String m_lambdaFunctionArn; bool m_lambdaFunctionArnHasBeenSet = false; }; } // namespace Model } // namespace Chime } // namespace Aws