/** * 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 LexModelsV2 { namespace Model { ParentBotNetwork::ParentBotNetwork() : m_botIdHasBeenSet(false), m_botVersionHasBeenSet(false) { } ParentBotNetwork::ParentBotNetwork(JsonView jsonValue) : m_botIdHasBeenSet(false), m_botVersionHasBeenSet(false) { *this = jsonValue; } ParentBotNetwork& ParentBotNetwork::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("botId")) { m_botId = jsonValue.GetString("botId"); m_botIdHasBeenSet = true; } if(jsonValue.ValueExists("botVersion")) { m_botVersion = jsonValue.GetString("botVersion"); m_botVersionHasBeenSet = true; } return *this; } JsonValue ParentBotNetwork::Jsonize() const { JsonValue payload; if(m_botIdHasBeenSet) { payload.WithString("botId", m_botId); } if(m_botVersionHasBeenSet) { payload.WithString("botVersion", m_botVersion); } return payload; } } // namespace Model } // namespace LexModelsV2 } // namespace Aws