/** * 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 ChimeSDKIdentity { namespace Model { AppInstanceBot::AppInstanceBot() : m_appInstanceBotArnHasBeenSet(false), m_nameHasBeenSet(false), m_configurationHasBeenSet(false), m_createdTimestampHasBeenSet(false), m_lastUpdatedTimestampHasBeenSet(false), m_metadataHasBeenSet(false) { } AppInstanceBot::AppInstanceBot(JsonView jsonValue) : m_appInstanceBotArnHasBeenSet(false), m_nameHasBeenSet(false), m_configurationHasBeenSet(false), m_createdTimestampHasBeenSet(false), m_lastUpdatedTimestampHasBeenSet(false), m_metadataHasBeenSet(false) { *this = jsonValue; } AppInstanceBot& AppInstanceBot::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("AppInstanceBotArn")) { m_appInstanceBotArn = jsonValue.GetString("AppInstanceBotArn"); m_appInstanceBotArnHasBeenSet = true; } if(jsonValue.ValueExists("Name")) { m_name = jsonValue.GetString("Name"); m_nameHasBeenSet = true; } if(jsonValue.ValueExists("Configuration")) { m_configuration = jsonValue.GetObject("Configuration"); m_configurationHasBeenSet = true; } if(jsonValue.ValueExists("CreatedTimestamp")) { m_createdTimestamp = jsonValue.GetDouble("CreatedTimestamp"); m_createdTimestampHasBeenSet = true; } if(jsonValue.ValueExists("LastUpdatedTimestamp")) { m_lastUpdatedTimestamp = jsonValue.GetDouble("LastUpdatedTimestamp"); m_lastUpdatedTimestampHasBeenSet = true; } if(jsonValue.ValueExists("Metadata")) { m_metadata = jsonValue.GetString("Metadata"); m_metadataHasBeenSet = true; } return *this; } JsonValue AppInstanceBot::Jsonize() const { JsonValue payload; if(m_appInstanceBotArnHasBeenSet) { payload.WithString("AppInstanceBotArn", m_appInstanceBotArn); } if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_configurationHasBeenSet) { payload.WithObject("Configuration", m_configuration.Jsonize()); } if(m_createdTimestampHasBeenSet) { payload.WithDouble("CreatedTimestamp", m_createdTimestamp.SecondsWithMSPrecision()); } if(m_lastUpdatedTimestampHasBeenSet) { payload.WithDouble("LastUpdatedTimestamp", m_lastUpdatedTimestamp.SecondsWithMSPrecision()); } if(m_metadataHasBeenSet) { payload.WithString("Metadata", m_metadata); } return payload; } } // namespace Model } // namespace ChimeSDKIdentity } // namespace Aws