AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetPlanRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/GlueRequest.h>
11#include <aws/glue/Glue_EXPORTS.h>
12#include <aws/glue/model/CatalogEntry.h>
13#include <aws/glue/model/Language.h>
14#include <aws/glue/model/Location.h>
15#include <aws/glue/model/MappingEntry.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Glue {
21namespace Model {
22
26 public:
27 AWS_GLUE_API GetPlanRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "GetPlan"; }
34
35 AWS_GLUE_API Aws::String SerializePayload() const override;
36
38
40
43 inline const Aws::Vector<MappingEntry>& GetMapping() const { return m_mapping; }
44 inline bool MappingHasBeenSet() const { return m_mappingHasBeenSet; }
45 template <typename MappingT = Aws::Vector<MappingEntry>>
46 void SetMapping(MappingT&& value) {
47 m_mappingHasBeenSet = true;
48 m_mapping = std::forward<MappingT>(value);
49 }
50 template <typename MappingT = Aws::Vector<MappingEntry>>
51 GetPlanRequest& WithMapping(MappingT&& value) {
52 SetMapping(std::forward<MappingT>(value));
53 return *this;
54 }
55 template <typename MappingT = MappingEntry>
56 GetPlanRequest& AddMapping(MappingT&& value) {
57 m_mappingHasBeenSet = true;
58 m_mapping.emplace_back(std::forward<MappingT>(value));
59 return *this;
60 }
62
64
67 inline const CatalogEntry& GetSource() const { return m_source; }
68 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
69 template <typename SourceT = CatalogEntry>
70 void SetSource(SourceT&& value) {
71 m_sourceHasBeenSet = true;
72 m_source = std::forward<SourceT>(value);
73 }
74 template <typename SourceT = CatalogEntry>
75 GetPlanRequest& WithSource(SourceT&& value) {
76 SetSource(std::forward<SourceT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Vector<CatalogEntry>& GetSinks() const { return m_sinks; }
86 inline bool SinksHasBeenSet() const { return m_sinksHasBeenSet; }
87 template <typename SinksT = Aws::Vector<CatalogEntry>>
88 void SetSinks(SinksT&& value) {
89 m_sinksHasBeenSet = true;
90 m_sinks = std::forward<SinksT>(value);
91 }
92 template <typename SinksT = Aws::Vector<CatalogEntry>>
93 GetPlanRequest& WithSinks(SinksT&& value) {
94 SetSinks(std::forward<SinksT>(value));
95 return *this;
96 }
97 template <typename SinksT = CatalogEntry>
98 GetPlanRequest& AddSinks(SinksT&& value) {
99 m_sinksHasBeenSet = true;
100 m_sinks.emplace_back(std::forward<SinksT>(value));
101 return *this;
102 }
104
106
109 inline const Location& GetLocation() const { return m_location; }
110 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
111 template <typename LocationT = Location>
112 void SetLocation(LocationT&& value) {
113 m_locationHasBeenSet = true;
114 m_location = std::forward<LocationT>(value);
115 }
116 template <typename LocationT = Location>
117 GetPlanRequest& WithLocation(LocationT&& value) {
118 SetLocation(std::forward<LocationT>(value));
119 return *this;
120 }
122
124
127 inline Language GetLanguage() const { return m_language; }
128 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
129 inline void SetLanguage(Language value) {
130 m_languageHasBeenSet = true;
131 m_language = value;
132 }
134 SetLanguage(value);
135 return *this;
136 }
138
140
149 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalPlanOptionsMap() const { return m_additionalPlanOptionsMap; }
150 inline bool AdditionalPlanOptionsMapHasBeenSet() const { return m_additionalPlanOptionsMapHasBeenSet; }
151 template <typename AdditionalPlanOptionsMapT = Aws::Map<Aws::String, Aws::String>>
152 void SetAdditionalPlanOptionsMap(AdditionalPlanOptionsMapT&& value) {
153 m_additionalPlanOptionsMapHasBeenSet = true;
154 m_additionalPlanOptionsMap = std::forward<AdditionalPlanOptionsMapT>(value);
155 }
156 template <typename AdditionalPlanOptionsMapT = Aws::Map<Aws::String, Aws::String>>
157 GetPlanRequest& WithAdditionalPlanOptionsMap(AdditionalPlanOptionsMapT&& value) {
158 SetAdditionalPlanOptionsMap(std::forward<AdditionalPlanOptionsMapT>(value));
159 return *this;
160 }
161 template <typename AdditionalPlanOptionsMapKeyT = Aws::String, typename AdditionalPlanOptionsMapValueT = Aws::String>
162 GetPlanRequest& AddAdditionalPlanOptionsMap(AdditionalPlanOptionsMapKeyT&& key, AdditionalPlanOptionsMapValueT&& value) {
163 m_additionalPlanOptionsMapHasBeenSet = true;
164 m_additionalPlanOptionsMap.emplace(std::forward<AdditionalPlanOptionsMapKeyT>(key),
165 std::forward<AdditionalPlanOptionsMapValueT>(value));
166 return *this;
167 }
169 private:
171
172 CatalogEntry m_source;
173
175
176 Location m_location;
177
178 Language m_language{Language::NOT_SET};
179
180 Aws::Map<Aws::String, Aws::String> m_additionalPlanOptionsMap;
181 bool m_mappingHasBeenSet = false;
182 bool m_sourceHasBeenSet = false;
183 bool m_sinksHasBeenSet = false;
184 bool m_locationHasBeenSet = false;
185 bool m_languageHasBeenSet = false;
186 bool m_additionalPlanOptionsMapHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace Glue
191} // namespace Aws
GetPlanRequest & WithSinks(SinksT &&value)
GetPlanRequest & WithLocation(LocationT &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetSource(SourceT &&value)
GetPlanRequest & AddMapping(MappingT &&value)
const Aws::Vector< CatalogEntry > & GetSinks() const
const Aws::Map< Aws::String, Aws::String > & GetAdditionalPlanOptionsMap() const
const Aws::Vector< MappingEntry > & GetMapping() const
GetPlanRequest & WithLanguage(Language value)
AWS_GLUE_API GetPlanRequest()=default
const Location & GetLocation() const
GetPlanRequest & AddAdditionalPlanOptionsMap(AdditionalPlanOptionsMapKeyT &&key, AdditionalPlanOptionsMapValueT &&value)
GetPlanRequest & WithAdditionalPlanOptionsMap(AdditionalPlanOptionsMapT &&value)
GetPlanRequest & WithMapping(MappingT &&value)
GetPlanRequest & AddSinks(SinksT &&value)
GetPlanRequest & WithSource(SourceT &&value)
virtual const char * GetServiceRequestName() const override
const CatalogEntry & GetSource() const
void SetAdditionalPlanOptionsMap(AdditionalPlanOptionsMapT &&value)
void SetMapping(MappingT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
void SetLocation(LocationT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector