/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Connect::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateRoutingProfileQueuesRequest::UpdateRoutingProfileQueuesRequest() : m_instanceIdHasBeenSet(false), m_routingProfileIdHasBeenSet(false), m_queueConfigsHasBeenSet(false) { } Aws::String UpdateRoutingProfileQueuesRequest::SerializePayload() const { JsonValue payload; if(m_queueConfigsHasBeenSet) { Aws::Utils::Array queueConfigsJsonList(m_queueConfigs.size()); for(unsigned queueConfigsIndex = 0; queueConfigsIndex < queueConfigsJsonList.GetLength(); ++queueConfigsIndex) { queueConfigsJsonList[queueConfigsIndex].AsObject(m_queueConfigs[queueConfigsIndex].Jsonize()); } payload.WithArray("QueueConfigs", std::move(queueConfigsJsonList)); } return payload.View().WriteReadable(); }