/** * 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; DisassociateQueueQuickConnectsRequest::DisassociateQueueQuickConnectsRequest() : m_instanceIdHasBeenSet(false), m_queueIdHasBeenSet(false), m_quickConnectIdsHasBeenSet(false) { } Aws::String DisassociateQueueQuickConnectsRequest::SerializePayload() const { JsonValue payload; if(m_quickConnectIdsHasBeenSet) { Aws::Utils::Array quickConnectIdsJsonList(m_quickConnectIds.size()); for(unsigned quickConnectIdsIndex = 0; quickConnectIdsIndex < quickConnectIdsJsonList.GetLength(); ++quickConnectIdsIndex) { quickConnectIdsJsonList[quickConnectIdsIndex].AsString(m_quickConnectIds[quickConnectIdsIndex]); } payload.WithArray("QuickConnectIds", std::move(quickConnectIdsJsonList)); } return payload.View().WriteReadable(); }