/** * 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; UpdateStreamingImageRequest::UpdateStreamingImageRequest() : m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true), m_descriptionHasBeenSet(false), m_nameHasBeenSet(false), m_streamingImageIdHasBeenSet(false), m_studioIdHasBeenSet(false) { } Aws::String UpdateStreamingImageRequest::SerializePayload() const { JsonValue payload; if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); } if(m_nameHasBeenSet) { payload.WithString("name", m_name); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection UpdateStreamingImageRequest::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; }