/** * 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; TransferContactRequest::TransferContactRequest() : m_instanceIdHasBeenSet(false), m_contactIdHasBeenSet(false), m_queueIdHasBeenSet(false), m_userIdHasBeenSet(false), m_contactFlowIdHasBeenSet(false), m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true) { } Aws::String TransferContactRequest::SerializePayload() const { JsonValue payload; if(m_instanceIdHasBeenSet) { payload.WithString("InstanceId", m_instanceId); } if(m_contactIdHasBeenSet) { payload.WithString("ContactId", m_contactId); } if(m_queueIdHasBeenSet) { payload.WithString("QueueId", m_queueId); } if(m_userIdHasBeenSet) { payload.WithString("UserId", m_userId); } if(m_contactFlowIdHasBeenSet) { payload.WithString("ContactFlowId", m_contactFlowId); } if(m_clientTokenHasBeenSet) { payload.WithString("ClientToken", m_clientToken); } return payload.View().WriteReadable(); }