AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
ViewDefinitionInput.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/Glue_EXPORTS.h>
11#include <aws/glue/model/LastRefreshType.h>
12#include <aws/glue/model/SubObjectStatistics.h>
13#include <aws/glue/model/ViewRepresentationInput.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Glue {
25namespace Model {
26
34 public:
35 AWS_GLUE_API ViewDefinitionInput() = default;
39
41
48 inline bool GetIsProtected() const { return m_isProtected; }
49 inline bool IsProtectedHasBeenSet() const { return m_isProtectedHasBeenSet; }
50 inline void SetIsProtected(bool value) {
51 m_isProtectedHasBeenSet = true;
52 m_isProtected = value;
53 }
55 SetIsProtected(value);
56 return *this;
57 }
59
61
64 inline bool GetIsManaged() const { return m_isManaged; }
65 inline bool IsManagedHasBeenSet() const { return m_isManagedHasBeenSet; }
66 inline void SetIsManaged(bool value) {
67 m_isManagedHasBeenSet = true;
68 m_isManaged = value;
69 }
70 inline ViewDefinitionInput& WithIsManaged(bool value) {
71 SetIsManaged(value);
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDefiner() const { return m_definer; }
81 inline bool DefinerHasBeenSet() const { return m_definerHasBeenSet; }
82 template <typename DefinerT = Aws::String>
83 void SetDefiner(DefinerT&& value) {
84 m_definerHasBeenSet = true;
85 m_definer = std::forward<DefinerT>(value);
86 }
87 template <typename DefinerT = Aws::String>
88 ViewDefinitionInput& WithDefiner(DefinerT&& value) {
89 SetDefiner(std::forward<DefinerT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::Vector<ViewRepresentationInput>& GetRepresentations() const { return m_representations; }
100 inline bool RepresentationsHasBeenSet() const { return m_representationsHasBeenSet; }
101 template <typename RepresentationsT = Aws::Vector<ViewRepresentationInput>>
102 void SetRepresentations(RepresentationsT&& value) {
103 m_representationsHasBeenSet = true;
104 m_representations = std::forward<RepresentationsT>(value);
105 }
106 template <typename RepresentationsT = Aws::Vector<ViewRepresentationInput>>
107 ViewDefinitionInput& WithRepresentations(RepresentationsT&& value) {
108 SetRepresentations(std::forward<RepresentationsT>(value));
109 return *this;
110 }
111 template <typename RepresentationsT = ViewRepresentationInput>
112 ViewDefinitionInput& AddRepresentations(RepresentationsT&& value) {
113 m_representationsHasBeenSet = true;
114 m_representations.emplace_back(std::forward<RepresentationsT>(value));
115 return *this;
116 }
118
120
124 inline long long GetViewVersionId() const { return m_viewVersionId; }
125 inline bool ViewVersionIdHasBeenSet() const { return m_viewVersionIdHasBeenSet; }
126 inline void SetViewVersionId(long long value) {
127 m_viewVersionIdHasBeenSet = true;
128 m_viewVersionId = value;
129 }
130 inline ViewDefinitionInput& WithViewVersionId(long long value) {
131 SetViewVersionId(value);
132 return *this;
133 }
135
137
140 inline const Aws::String& GetViewVersionToken() const { return m_viewVersionToken; }
141 inline bool ViewVersionTokenHasBeenSet() const { return m_viewVersionTokenHasBeenSet; }
142 template <typename ViewVersionTokenT = Aws::String>
143 void SetViewVersionToken(ViewVersionTokenT&& value) {
144 m_viewVersionTokenHasBeenSet = true;
145 m_viewVersionToken = std::forward<ViewVersionTokenT>(value);
146 }
147 template <typename ViewVersionTokenT = Aws::String>
148 ViewDefinitionInput& WithViewVersionToken(ViewVersionTokenT&& value) {
149 SetViewVersionToken(std::forward<ViewVersionTokenT>(value));
150 return *this;
151 }
153
155
159 inline long long GetRefreshSeconds() const { return m_refreshSeconds; }
160 inline bool RefreshSecondsHasBeenSet() const { return m_refreshSecondsHasBeenSet; }
161 inline void SetRefreshSeconds(long long value) {
162 m_refreshSecondsHasBeenSet = true;
163 m_refreshSeconds = value;
164 }
165 inline ViewDefinitionInput& WithRefreshSeconds(long long value) {
166 SetRefreshSeconds(value);
167 return *this;
168 }
170
172
176 inline LastRefreshType GetLastRefreshType() const { return m_lastRefreshType; }
177 inline bool LastRefreshTypeHasBeenSet() const { return m_lastRefreshTypeHasBeenSet; }
179 m_lastRefreshTypeHasBeenSet = true;
180 m_lastRefreshType = value;
181 }
183 SetLastRefreshType(value);
184 return *this;
185 }
187
189
192 inline const Aws::Vector<Aws::String>& GetSubObjects() const { return m_subObjects; }
193 inline bool SubObjectsHasBeenSet() const { return m_subObjectsHasBeenSet; }
194 template <typename SubObjectsT = Aws::Vector<Aws::String>>
195 void SetSubObjects(SubObjectsT&& value) {
196 m_subObjectsHasBeenSet = true;
197 m_subObjects = std::forward<SubObjectsT>(value);
198 }
199 template <typename SubObjectsT = Aws::Vector<Aws::String>>
200 ViewDefinitionInput& WithSubObjects(SubObjectsT&& value) {
201 SetSubObjects(std::forward<SubObjectsT>(value));
202 return *this;
203 }
204 template <typename SubObjectsT = Aws::String>
205 ViewDefinitionInput& AddSubObjects(SubObjectsT&& value) {
206 m_subObjectsHasBeenSet = true;
207 m_subObjects.emplace_back(std::forward<SubObjectsT>(value));
208 return *this;
209 }
211
213
217 inline const Aws::Vector<long long>& GetSubObjectVersionIds() const { return m_subObjectVersionIds; }
218 inline bool SubObjectVersionIdsHasBeenSet() const { return m_subObjectVersionIdsHasBeenSet; }
219 template <typename SubObjectVersionIdsT = Aws::Vector<long long>>
220 void SetSubObjectVersionIds(SubObjectVersionIdsT&& value) {
221 m_subObjectVersionIdsHasBeenSet = true;
222 m_subObjectVersionIds = std::forward<SubObjectVersionIdsT>(value);
223 }
224 template <typename SubObjectVersionIdsT = Aws::Vector<long long>>
225 ViewDefinitionInput& WithSubObjectVersionIds(SubObjectVersionIdsT&& value) {
226 SetSubObjectVersionIds(std::forward<SubObjectVersionIdsT>(value));
227 return *this;
228 }
230 m_subObjectVersionIdsHasBeenSet = true;
231 m_subObjectVersionIds.push_back(value);
232 return *this;
233 }
235
237
242 inline const Aws::Vector<SubObjectStatistics>& GetSubObjectsStatistics() const { return m_subObjectsStatistics; }
243 inline bool SubObjectsStatisticsHasBeenSet() const { return m_subObjectsStatisticsHasBeenSet; }
244 template <typename SubObjectsStatisticsT = Aws::Vector<SubObjectStatistics>>
245 void SetSubObjectsStatistics(SubObjectsStatisticsT&& value) {
246 m_subObjectsStatisticsHasBeenSet = true;
247 m_subObjectsStatistics = std::forward<SubObjectsStatisticsT>(value);
248 }
249 template <typename SubObjectsStatisticsT = Aws::Vector<SubObjectStatistics>>
250 ViewDefinitionInput& WithSubObjectsStatistics(SubObjectsStatisticsT&& value) {
251 SetSubObjectsStatistics(std::forward<SubObjectsStatisticsT>(value));
252 return *this;
253 }
254 template <typename SubObjectsStatisticsT = SubObjectStatistics>
255 ViewDefinitionInput& AddSubObjectsStatistics(SubObjectsStatisticsT&& value) {
256 m_subObjectsStatisticsHasBeenSet = true;
257 m_subObjectsStatistics.emplace_back(std::forward<SubObjectsStatisticsT>(value));
258 return *this;
259 }
261
263
267 inline const Aws::Map<Aws::String, Aws::String>& GetSparkPipelineInfo() const { return m_sparkPipelineInfo; }
268 inline bool SparkPipelineInfoHasBeenSet() const { return m_sparkPipelineInfoHasBeenSet; }
269 template <typename SparkPipelineInfoT = Aws::Map<Aws::String, Aws::String>>
270 void SetSparkPipelineInfo(SparkPipelineInfoT&& value) {
271 m_sparkPipelineInfoHasBeenSet = true;
272 m_sparkPipelineInfo = std::forward<SparkPipelineInfoT>(value);
273 }
274 template <typename SparkPipelineInfoT = Aws::Map<Aws::String, Aws::String>>
275 ViewDefinitionInput& WithSparkPipelineInfo(SparkPipelineInfoT&& value) {
276 SetSparkPipelineInfo(std::forward<SparkPipelineInfoT>(value));
277 return *this;
278 }
279 template <typename SparkPipelineInfoKeyT = Aws::String, typename SparkPipelineInfoValueT = Aws::String>
280 ViewDefinitionInput& AddSparkPipelineInfo(SparkPipelineInfoKeyT&& key, SparkPipelineInfoValueT&& value) {
281 m_sparkPipelineInfoHasBeenSet = true;
282 m_sparkPipelineInfo.emplace(std::forward<SparkPipelineInfoKeyT>(key), std::forward<SparkPipelineInfoValueT>(value));
283 return *this;
284 }
286 private:
287 bool m_isProtected{false};
288
289 bool m_isManaged{false};
290
291 Aws::String m_definer;
292
293 Aws::Vector<ViewRepresentationInput> m_representations;
294
295 long long m_viewVersionId{0};
296
297 Aws::String m_viewVersionToken;
298
299 long long m_refreshSeconds{0};
300
301 LastRefreshType m_lastRefreshType{LastRefreshType::NOT_SET};
302
303 Aws::Vector<Aws::String> m_subObjects;
304
305 Aws::Vector<long long> m_subObjectVersionIds;
306
307 Aws::Vector<SubObjectStatistics> m_subObjectsStatistics;
308
309 Aws::Map<Aws::String, Aws::String> m_sparkPipelineInfo;
310 bool m_isProtectedHasBeenSet = false;
311 bool m_isManagedHasBeenSet = false;
312 bool m_definerHasBeenSet = false;
313 bool m_representationsHasBeenSet = false;
314 bool m_viewVersionIdHasBeenSet = false;
315 bool m_viewVersionTokenHasBeenSet = false;
316 bool m_refreshSecondsHasBeenSet = false;
317 bool m_lastRefreshTypeHasBeenSet = false;
318 bool m_subObjectsHasBeenSet = false;
319 bool m_subObjectVersionIdsHasBeenSet = false;
320 bool m_subObjectsStatisticsHasBeenSet = false;
321 bool m_sparkPipelineInfoHasBeenSet = false;
322};
323
324} // namespace Model
325} // namespace Glue
326} // namespace Aws
ViewDefinitionInput & WithRepresentations(RepresentationsT &&value)
ViewDefinitionInput & AddSubObjectVersionIds(long long value)
void SetSubObjectsStatistics(SubObjectsStatisticsT &&value)
ViewDefinitionInput & WithRefreshSeconds(long long value)
ViewDefinitionInput & WithIsProtected(bool value)
const Aws::Vector< long long > & GetSubObjectVersionIds() const
ViewDefinitionInput & WithIsManaged(bool value)
ViewDefinitionInput & AddSubObjects(SubObjectsT &&value)
ViewDefinitionInput & WithSparkPipelineInfo(SparkPipelineInfoT &&value)
const Aws::Vector< ViewRepresentationInput > & GetRepresentations() const
AWS_GLUE_API ViewDefinitionInput & operator=(Aws::Utils::Json::JsonView jsonValue)
ViewDefinitionInput & AddSubObjectsStatistics(SubObjectsStatisticsT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRepresentations(RepresentationsT &&value)
ViewDefinitionInput & WithLastRefreshType(LastRefreshType value)
void SetLastRefreshType(LastRefreshType value)
void SetViewVersionToken(ViewVersionTokenT &&value)
const Aws::String & GetDefiner() const
ViewDefinitionInput & WithSubObjectVersionIds(SubObjectVersionIdsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetSparkPipelineInfo() const
ViewDefinitionInput & AddRepresentations(RepresentationsT &&value)
ViewDefinitionInput & WithSubObjects(SubObjectsT &&value)
ViewDefinitionInput & WithDefiner(DefinerT &&value)
ViewDefinitionInput & AddSparkPipelineInfo(SparkPipelineInfoKeyT &&key, SparkPipelineInfoValueT &&value)
const Aws::String & GetViewVersionToken() const
void SetSparkPipelineInfo(SparkPipelineInfoT &&value)
ViewDefinitionInput & WithSubObjectsStatistics(SubObjectsStatisticsT &&value)
ViewDefinitionInput & WithViewVersionToken(ViewVersionTokenT &&value)
const Aws::Vector< SubObjectStatistics > & GetSubObjectsStatistics() const
ViewDefinitionInput & WithViewVersionId(long long value)
AWS_GLUE_API ViewDefinitionInput()=default
void SetSubObjectVersionIds(SubObjectVersionIdsT &&value)
AWS_GLUE_API ViewDefinitionInput(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSubObjects() const
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
Aws::Utils::Json::JsonValue JsonValue