/** * 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; CreateAppInstanceUserRequest::CreateAppInstanceUserRequest() : m_appInstanceArnHasBeenSet(false), m_appInstanceUserIdHasBeenSet(false), m_nameHasBeenSet(false), m_metadataHasBeenSet(false), m_clientRequestToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientRequestTokenHasBeenSet(true), m_tagsHasBeenSet(false), m_expirationSettingsHasBeenSet(false) { } Aws::String CreateAppInstanceUserRequest::SerializePayload() const { JsonValue payload; if(m_appInstanceArnHasBeenSet) { payload.WithString("AppInstanceArn", m_appInstanceArn); } if(m_appInstanceUserIdHasBeenSet) { payload.WithString("AppInstanceUserId", m_appInstanceUserId); } 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_expirationSettingsHasBeenSet) { payload.WithObject("ExpirationSettings", m_expirationSettings.Jsonize()); } return payload.View().WriteReadable(); }