AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
ViewDefinition.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/ViewRepresentation.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 ViewDefinition() = 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 }
54 inline ViewDefinition& WithIsProtected(bool value) {
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 ViewDefinition& 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 ViewDefinition& WithDefiner(DefinerT&& value) {
89 SetDefiner(std::forward<DefinerT>(value));
90 return *this;
91 }
93
95
99 inline long long GetViewVersionId() const { return m_viewVersionId; }
100 inline bool ViewVersionIdHasBeenSet() const { return m_viewVersionIdHasBeenSet; }
101 inline void SetViewVersionId(long long value) {
102 m_viewVersionIdHasBeenSet = true;
103 m_viewVersionId = value;
104 }
105 inline ViewDefinition& WithViewVersionId(long long value) {
106 SetViewVersionId(value);
107 return *this;
108 }
110
112
115 inline const Aws::String& GetViewVersionToken() const { return m_viewVersionToken; }
116 inline bool ViewVersionTokenHasBeenSet() const { return m_viewVersionTokenHasBeenSet; }
117 template <typename ViewVersionTokenT = Aws::String>
118 void SetViewVersionToken(ViewVersionTokenT&& value) {
119 m_viewVersionTokenHasBeenSet = true;
120 m_viewVersionToken = std::forward<ViewVersionTokenT>(value);
121 }
122 template <typename ViewVersionTokenT = Aws::String>
123 ViewDefinition& WithViewVersionToken(ViewVersionTokenT&& value) {
124 SetViewVersionToken(std::forward<ViewVersionTokenT>(value));
125 return *this;
126 }
128
130
134 inline long long GetRefreshSeconds() const { return m_refreshSeconds; }
135 inline bool RefreshSecondsHasBeenSet() const { return m_refreshSecondsHasBeenSet; }
136 inline void SetRefreshSeconds(long long value) {
137 m_refreshSecondsHasBeenSet = true;
138 m_refreshSeconds = value;
139 }
140 inline ViewDefinition& WithRefreshSeconds(long long value) {
141 SetRefreshSeconds(value);
142 return *this;
143 }
145
147
150 inline LastRefreshType GetLastRefreshType() const { return m_lastRefreshType; }
151 inline bool LastRefreshTypeHasBeenSet() const { return m_lastRefreshTypeHasBeenSet; }
153 m_lastRefreshTypeHasBeenSet = true;
154 m_lastRefreshType = value;
155 }
157 SetLastRefreshType(value);
158 return *this;
159 }
161
163
166 inline const Aws::Vector<Aws::String>& GetSubObjects() const { return m_subObjects; }
167 inline bool SubObjectsHasBeenSet() const { return m_subObjectsHasBeenSet; }
168 template <typename SubObjectsT = Aws::Vector<Aws::String>>
169 void SetSubObjects(SubObjectsT&& value) {
170 m_subObjectsHasBeenSet = true;
171 m_subObjects = std::forward<SubObjectsT>(value);
172 }
173 template <typename SubObjectsT = Aws::Vector<Aws::String>>
174 ViewDefinition& WithSubObjects(SubObjectsT&& value) {
175 SetSubObjects(std::forward<SubObjectsT>(value));
176 return *this;
177 }
178 template <typename SubObjectsT = Aws::String>
179 ViewDefinition& AddSubObjects(SubObjectsT&& value) {
180 m_subObjectsHasBeenSet = true;
181 m_subObjects.emplace_back(std::forward<SubObjectsT>(value));
182 return *this;
183 }
185
187
191 inline const Aws::Vector<long long>& GetSubObjectVersionIds() const { return m_subObjectVersionIds; }
192 inline bool SubObjectVersionIdsHasBeenSet() const { return m_subObjectVersionIdsHasBeenSet; }
193 template <typename SubObjectVersionIdsT = Aws::Vector<long long>>
194 void SetSubObjectVersionIds(SubObjectVersionIdsT&& value) {
195 m_subObjectVersionIdsHasBeenSet = true;
196 m_subObjectVersionIds = std::forward<SubObjectVersionIdsT>(value);
197 }
198 template <typename SubObjectVersionIdsT = Aws::Vector<long long>>
199 ViewDefinition& WithSubObjectVersionIds(SubObjectVersionIdsT&& value) {
200 SetSubObjectVersionIds(std::forward<SubObjectVersionIdsT>(value));
201 return *this;
202 }
203 inline ViewDefinition& AddSubObjectVersionIds(long long value) {
204 m_subObjectVersionIdsHasBeenSet = true;
205 m_subObjectVersionIds.push_back(value);
206 return *this;
207 }
209
211
217 inline const Aws::Vector<SubObjectStatistics>& GetSubObjectsStatistics() const { return m_subObjectsStatistics; }
218 inline bool SubObjectsStatisticsHasBeenSet() const { return m_subObjectsStatisticsHasBeenSet; }
219 template <typename SubObjectsStatisticsT = Aws::Vector<SubObjectStatistics>>
220 void SetSubObjectsStatistics(SubObjectsStatisticsT&& value) {
221 m_subObjectsStatisticsHasBeenSet = true;
222 m_subObjectsStatistics = std::forward<SubObjectsStatisticsT>(value);
223 }
224 template <typename SubObjectsStatisticsT = Aws::Vector<SubObjectStatistics>>
225 ViewDefinition& WithSubObjectsStatistics(SubObjectsStatisticsT&& value) {
226 SetSubObjectsStatistics(std::forward<SubObjectsStatisticsT>(value));
227 return *this;
228 }
229 template <typename SubObjectsStatisticsT = SubObjectStatistics>
230 ViewDefinition& AddSubObjectsStatistics(SubObjectsStatisticsT&& value) {
231 m_subObjectsStatisticsHasBeenSet = true;
232 m_subObjectsStatistics.emplace_back(std::forward<SubObjectsStatisticsT>(value));
233 return *this;
234 }
236
238
241 inline const Aws::Vector<ViewRepresentation>& GetRepresentations() const { return m_representations; }
242 inline bool RepresentationsHasBeenSet() const { return m_representationsHasBeenSet; }
243 template <typename RepresentationsT = Aws::Vector<ViewRepresentation>>
244 void SetRepresentations(RepresentationsT&& value) {
245 m_representationsHasBeenSet = true;
246 m_representations = std::forward<RepresentationsT>(value);
247 }
248 template <typename RepresentationsT = Aws::Vector<ViewRepresentation>>
249 ViewDefinition& WithRepresentations(RepresentationsT&& value) {
250 SetRepresentations(std::forward<RepresentationsT>(value));
251 return *this;
252 }
253 template <typename RepresentationsT = ViewRepresentation>
254 ViewDefinition& AddRepresentations(RepresentationsT&& value) {
255 m_representationsHasBeenSet = true;
256 m_representations.emplace_back(std::forward<RepresentationsT>(value));
257 return *this;
258 }
260
262
266 inline const Aws::Map<Aws::String, Aws::String>& GetSparkPipelineInfo() const { return m_sparkPipelineInfo; }
267 inline bool SparkPipelineInfoHasBeenSet() const { return m_sparkPipelineInfoHasBeenSet; }
268 template <typename SparkPipelineInfoT = Aws::Map<Aws::String, Aws::String>>
269 void SetSparkPipelineInfo(SparkPipelineInfoT&& value) {
270 m_sparkPipelineInfoHasBeenSet = true;
271 m_sparkPipelineInfo = std::forward<SparkPipelineInfoT>(value);
272 }
273 template <typename SparkPipelineInfoT = Aws::Map<Aws::String, Aws::String>>
274 ViewDefinition& WithSparkPipelineInfo(SparkPipelineInfoT&& value) {
275 SetSparkPipelineInfo(std::forward<SparkPipelineInfoT>(value));
276 return *this;
277 }
278 template <typename SparkPipelineInfoKeyT = Aws::String, typename SparkPipelineInfoValueT = Aws::String>
279 ViewDefinition& AddSparkPipelineInfo(SparkPipelineInfoKeyT&& key, SparkPipelineInfoValueT&& value) {
280 m_sparkPipelineInfoHasBeenSet = true;
281 m_sparkPipelineInfo.emplace(std::forward<SparkPipelineInfoKeyT>(key), std::forward<SparkPipelineInfoValueT>(value));
282 return *this;
283 }
285 private:
286 bool m_isProtected{false};
287
288 bool m_isManaged{false};
289
290 Aws::String m_definer;
291
292 long long m_viewVersionId{0};
293
294 Aws::String m_viewVersionToken;
295
296 long long m_refreshSeconds{0};
297
298 LastRefreshType m_lastRefreshType{LastRefreshType::NOT_SET};
299
300 Aws::Vector<Aws::String> m_subObjects;
301
302 Aws::Vector<long long> m_subObjectVersionIds;
303
304 Aws::Vector<SubObjectStatistics> m_subObjectsStatistics;
305
306 Aws::Vector<ViewRepresentation> m_representations;
307
308 Aws::Map<Aws::String, Aws::String> m_sparkPipelineInfo;
309 bool m_isProtectedHasBeenSet = false;
310 bool m_isManagedHasBeenSet = false;
311 bool m_definerHasBeenSet = false;
312 bool m_viewVersionIdHasBeenSet = false;
313 bool m_viewVersionTokenHasBeenSet = false;
314 bool m_refreshSecondsHasBeenSet = false;
315 bool m_lastRefreshTypeHasBeenSet = false;
316 bool m_subObjectsHasBeenSet = false;
317 bool m_subObjectVersionIdsHasBeenSet = false;
318 bool m_subObjectsStatisticsHasBeenSet = false;
319 bool m_representationsHasBeenSet = false;
320 bool m_sparkPipelineInfoHasBeenSet = false;
321};
322
323} // namespace Model
324} // namespace Glue
325} // namespace Aws
ViewDefinition & WithViewVersionId(long long value)
void SetSparkPipelineInfo(SparkPipelineInfoT &&value)
void SetRepresentations(RepresentationsT &&value)
ViewDefinition & WithLastRefreshType(LastRefreshType value)
ViewDefinition & AddSubObjects(SubObjectsT &&value)
ViewDefinition & WithRepresentations(RepresentationsT &&value)
void SetViewVersionId(long long value)
void SetViewVersionToken(ViewVersionTokenT &&value)
void SetRefreshSeconds(long long value)
const Aws::Vector< SubObjectStatistics > & GetSubObjectsStatistics() const
ViewDefinition & WithViewVersionToken(ViewVersionTokenT &&value)
const Aws::String & GetViewVersionToken() const
const Aws::Vector< Aws::String > & GetSubObjects() const
ViewDefinition & WithSparkPipelineInfo(SparkPipelineInfoT &&value)
LastRefreshType GetLastRefreshType() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSubObjectVersionIds(SubObjectVersionIdsT &&value)
ViewDefinition & AddSparkPipelineInfo(SparkPipelineInfoKeyT &&key, SparkPipelineInfoValueT &&value)
AWS_GLUE_API ViewDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
ViewDefinition & WithIsManaged(bool value)
ViewDefinition & AddSubObjectsStatistics(SubObjectsStatisticsT &&value)
AWS_GLUE_API ViewDefinition()=default
ViewDefinition & WithSubObjectVersionIds(SubObjectVersionIdsT &&value)
const Aws::Vector< ViewRepresentation > & GetRepresentations() const
const Aws::String & GetDefiner() const
AWS_GLUE_API ViewDefinition(Aws::Utils::Json::JsonView jsonValue)
ViewDefinition & WithRefreshSeconds(long long value)
void SetSubObjects(SubObjectsT &&value)
ViewDefinition & WithSubObjectsStatistics(SubObjectsStatisticsT &&value)
void SetLastRefreshType(LastRefreshType value)
const Aws::Vector< long long > & GetSubObjectVersionIds() const
void SetSubObjectsStatistics(SubObjectsStatisticsT &&value)
ViewDefinition & WithSubObjects(SubObjectsT &&value)
ViewDefinition & WithIsProtected(bool value)
const Aws::Map< Aws::String, Aws::String > & GetSparkPipelineInfo() const
void SetDefiner(DefinerT &&value)
ViewDefinition & AddSubObjectVersionIds(long long value)
ViewDefinition & AddRepresentations(RepresentationsT &&value)
ViewDefinition & WithDefiner(DefinerT &&value)
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