/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Connect::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; AssociateBotRequest::AssociateBotRequest() : m_instanceIdHasBeenSet(false), m_lexBotHasBeenSet(false), m_lexV2BotHasBeenSet(false) { } Aws::String AssociateBotRequest::SerializePayload() const { JsonValue payload; if(m_lexBotHasBeenSet) { payload.WithObject("LexBot", m_lexBot.Jsonize()); } if(m_lexV2BotHasBeenSet) { payload.WithObject("LexV2Bot", m_lexV2Bot.Jsonize()); } return payload.View().WriteReadable(); }