/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::ChimeSDKIdentity::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; CreateAppInstanceBotRequest::CreateAppInstanceBotRequest() : m_appInstanceArnHasBeenSet(false), m_nameHasBeenSet(false), m_metadataHasBeenSet(false), m_clientRequestToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientRequestTokenHasBeenSet(true), m_tagsHasBeenSet(false), m_configurationHasBeenSet(false) { } Aws::String CreateAppInstanceBotRequest::SerializePayload() const { JsonValue payload; if(m_appInstanceArnHasBeenSet) { payload.WithString("AppInstanceArn", m_appInstanceArn); } if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_metadataHasBeenSet) { payload.WithString("Metadata", m_metadata); } if(m_clientRequestTokenHasBeenSet) { payload.WithString("ClientRequestToken", m_clientRequestToken); } if(m_tagsHasBeenSet) { Aws::Utils::Array tagsJsonList(m_tags.size()); for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) { tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); } payload.WithArray("Tags", std::move(tagsJsonList)); } if(m_configurationHasBeenSet) { payload.WithObject("Configuration", m_configuration.Jsonize()); } return payload.View().WriteReadable(); }