/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::finspace::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; CreateKxUserRequest::CreateKxUserRequest() : m_environmentIdHasBeenSet(false), m_userNameHasBeenSet(false), m_iamRoleHasBeenSet(false), m_tagsHasBeenSet(false), m_clientTokenHasBeenSet(false) { } Aws::String CreateKxUserRequest::SerializePayload() const { JsonValue payload; if(m_userNameHasBeenSet) { payload.WithString("userName", m_userName); } if(m_iamRoleHasBeenSet) { payload.WithString("iamRole", m_iamRole); } if(m_tagsHasBeenSet) { JsonValue tagsJsonMap; for(auto& tagsItem : m_tags) { tagsJsonMap.WithString(tagsItem.first, tagsItem.second); } payload.WithObject("tags", std::move(tagsJsonMap)); } if(m_clientTokenHasBeenSet) { payload.WithString("clientToken", m_clientToken); } return payload.View().WriteReadable(); }