1 /**
2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 * SPDX-License-Identifier: Apache-2.0.
4 */
5
6 #include <aws/glue/model/CreateBlueprintRequest.h>
7 #include <aws/core/utils/json/JsonSerializer.h>
8
9 #include <utility>
10
11 using namespace Aws::Glue::Model;
12 using namespace Aws::Utils::Json;
13 using namespace Aws::Utils;
14
CreateBlueprintRequest()15 CreateBlueprintRequest::CreateBlueprintRequest() :
16 m_nameHasBeenSet(false),
17 m_descriptionHasBeenSet(false),
18 m_blueprintLocationHasBeenSet(false),
19 m_tagsHasBeenSet(false)
20 {
21 }
22
SerializePayload() const23 Aws::String CreateBlueprintRequest::SerializePayload() const
24 {
25 JsonValue payload;
26
27 if(m_nameHasBeenSet)
28 {
29 payload.WithString("Name", m_name);
30
31 }
32
33 if(m_descriptionHasBeenSet)
34 {
35 payload.WithString("Description", m_description);
36
37 }
38
39 if(m_blueprintLocationHasBeenSet)
40 {
41 payload.WithString("BlueprintLocation", m_blueprintLocation);
42
43 }
44
45 if(m_tagsHasBeenSet)
46 {
47 JsonValue tagsJsonMap;
48 for(auto& tagsItem : m_tags)
49 {
50 tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
51 }
52 payload.WithObject("Tags", std::move(tagsJsonMap));
53
54 }
55
56 return payload.View().WriteReadable();
57 }
58
GetRequestSpecificHeaders() const59 Aws::Http::HeaderValueCollection CreateBlueprintRequest::GetRequestSpecificHeaders() const
60 {
61 Aws::Http::HeaderValueCollection headers;
62 headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSGlue.CreateBlueprint"));
63 return headers;
64
65 }
66
67
68
69
70