/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace Chime { namespace Model { EventsConfiguration::EventsConfiguration() : m_botIdHasBeenSet(false), m_outboundEventsHTTPSEndpointHasBeenSet(false), m_lambdaFunctionArnHasBeenSet(false) { } EventsConfiguration::EventsConfiguration(JsonView jsonValue) : m_botIdHasBeenSet(false), m_outboundEventsHTTPSEndpointHasBeenSet(false), m_lambdaFunctionArnHasBeenSet(false) { *this = jsonValue; } EventsConfiguration& EventsConfiguration::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("BotId")) { m_botId = jsonValue.GetString("BotId"); m_botIdHasBeenSet = true; } if(jsonValue.ValueExists("OutboundEventsHTTPSEndpoint")) { m_outboundEventsHTTPSEndpoint = jsonValue.GetString("OutboundEventsHTTPSEndpoint"); m_outboundEventsHTTPSEndpointHasBeenSet = true; } if(jsonValue.ValueExists("LambdaFunctionArn")) { m_lambdaFunctionArn = jsonValue.GetString("LambdaFunctionArn"); m_lambdaFunctionArnHasBeenSet = true; } return *this; } JsonValue EventsConfiguration::Jsonize() const { JsonValue payload; if(m_botIdHasBeenSet) { payload.WithString("BotId", m_botId); } if(m_outboundEventsHTTPSEndpointHasBeenSet) { payload.WithString("OutboundEventsHTTPSEndpoint", m_outboundEventsHTTPSEndpoint); } if(m_lambdaFunctionArnHasBeenSet) { payload.WithString("LambdaFunctionArn", m_lambdaFunctionArn); } return payload; } } // namespace Model } // namespace Chime } // namespace Aws