1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #include <aws/appstream/model/CreateImageBuilderStreamingURLRequest.h>
7 #include <aws/core/utils/json/JsonSerializer.h>
8 
9 #include <utility>
10 
11 using namespace Aws::AppStream::Model;
12 using namespace Aws::Utils::Json;
13 using namespace Aws::Utils;
14 
CreateImageBuilderStreamingURLRequest()15 CreateImageBuilderStreamingURLRequest::CreateImageBuilderStreamingURLRequest() :
16     m_nameHasBeenSet(false),
17     m_validity(0),
18     m_validityHasBeenSet(false)
19 {
20 }
21 
SerializePayload() const22 Aws::String CreateImageBuilderStreamingURLRequest::SerializePayload() const
23 {
24   JsonValue payload;
25 
26   if(m_nameHasBeenSet)
27   {
28    payload.WithString("Name", m_name);
29 
30   }
31 
32   if(m_validityHasBeenSet)
33   {
34    payload.WithInt64("Validity", m_validity);
35 
36   }
37 
38   return payload.View().WriteReadable();
39 }
40 
GetRequestSpecificHeaders() const41 Aws::Http::HeaderValueCollection CreateImageBuilderStreamingURLRequest::GetRequestSpecificHeaders() const
42 {
43   Aws::Http::HeaderValueCollection headers;
44   headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "PhotonAdminProxyService.CreateImageBuilderStreamingURL"));
45   return headers;
46 
47 }
48 
49 
50 
51 
52