/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include using namespace Aws::NimbleStudio::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; StopStreamingSessionRequest::StopStreamingSessionRequest() : m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true), m_sessionIdHasBeenSet(false), m_studioIdHasBeenSet(false), m_volumeRetentionMode(VolumeRetentionMode::NOT_SET), m_volumeRetentionModeHasBeenSet(false) { } Aws::String StopStreamingSessionRequest::SerializePayload() const { JsonValue payload; if(m_volumeRetentionModeHasBeenSet) { payload.WithString("volumeRetentionMode", VolumeRetentionModeMapper::GetNameForVolumeRetentionMode(m_volumeRetentionMode)); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection StopStreamingSessionRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; Aws::StringStream ss; if(m_clientTokenHasBeenSet) { ss << m_clientToken; headers.emplace("x-amz-client-token", ss.str()); ss.str(""); } return headers; }