/** * 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; StartContactStreamingRequest::StartContactStreamingRequest() : m_instanceIdHasBeenSet(false), m_contactIdHasBeenSet(false), m_chatStreamingConfigurationHasBeenSet(false), m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true) { } Aws::String StartContactStreamingRequest::SerializePayload() const { JsonValue payload; if(m_instanceIdHasBeenSet) { payload.WithString("InstanceId", m_instanceId); } if(m_contactIdHasBeenSet) { payload.WithString("ContactId", m_contactId); } if(m_chatStreamingConfigurationHasBeenSet) { payload.WithObject("ChatStreamingConfiguration", m_chatStreamingConfiguration.Jsonize()); } if(m_clientTokenHasBeenSet) { payload.WithString("ClientToken", m_clientToken); } return payload.View().WriteReadable(); }