AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
TopicColumn.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/AuthorSpecifiedAggregation.h>
11#include <aws/quicksight/model/CellValueSynonym.h>
12#include <aws/quicksight/model/ColumnDataRole.h>
13#include <aws/quicksight/model/ComparativeOrder.h>
14#include <aws/quicksight/model/DefaultAggregation.h>
15#include <aws/quicksight/model/DefaultFormatting.h>
16#include <aws/quicksight/model/SemanticType.h>
17#include <aws/quicksight/model/TopicTimeGranularity.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace QuickSight {
29namespace Model {
30
37 public:
38 AWS_QUICKSIGHT_API TopicColumn() = default;
39 AWS_QUICKSIGHT_API TopicColumn(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QUICKSIGHT_API TopicColumn& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetColumnName() const { return m_columnName; }
48 inline bool ColumnNameHasBeenSet() const { return m_columnNameHasBeenSet; }
49 template <typename ColumnNameT = Aws::String>
50 void SetColumnName(ColumnNameT&& value) {
51 m_columnNameHasBeenSet = true;
52 m_columnName = std::forward<ColumnNameT>(value);
53 }
54 template <typename ColumnNameT = Aws::String>
55 TopicColumn& WithColumnName(ColumnNameT&& value) {
56 SetColumnName(std::forward<ColumnNameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetColumnFriendlyName() const { return m_columnFriendlyName; }
66 inline bool ColumnFriendlyNameHasBeenSet() const { return m_columnFriendlyNameHasBeenSet; }
67 template <typename ColumnFriendlyNameT = Aws::String>
68 void SetColumnFriendlyName(ColumnFriendlyNameT&& value) {
69 m_columnFriendlyNameHasBeenSet = true;
70 m_columnFriendlyName = std::forward<ColumnFriendlyNameT>(value);
71 }
72 template <typename ColumnFriendlyNameT = Aws::String>
73 TopicColumn& WithColumnFriendlyName(ColumnFriendlyNameT&& value) {
74 SetColumnFriendlyName(std::forward<ColumnFriendlyNameT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetColumnDescription() const { return m_columnDescription; }
84 inline bool ColumnDescriptionHasBeenSet() const { return m_columnDescriptionHasBeenSet; }
85 template <typename ColumnDescriptionT = Aws::String>
86 void SetColumnDescription(ColumnDescriptionT&& value) {
87 m_columnDescriptionHasBeenSet = true;
88 m_columnDescription = std::forward<ColumnDescriptionT>(value);
89 }
90 template <typename ColumnDescriptionT = Aws::String>
91 TopicColumn& WithColumnDescription(ColumnDescriptionT&& value) {
92 SetColumnDescription(std::forward<ColumnDescriptionT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Vector<Aws::String>& GetColumnSynonyms() const { return m_columnSynonyms; }
102 inline bool ColumnSynonymsHasBeenSet() const { return m_columnSynonymsHasBeenSet; }
103 template <typename ColumnSynonymsT = Aws::Vector<Aws::String>>
104 void SetColumnSynonyms(ColumnSynonymsT&& value) {
105 m_columnSynonymsHasBeenSet = true;
106 m_columnSynonyms = std::forward<ColumnSynonymsT>(value);
107 }
108 template <typename ColumnSynonymsT = Aws::Vector<Aws::String>>
109 TopicColumn& WithColumnSynonyms(ColumnSynonymsT&& value) {
110 SetColumnSynonyms(std::forward<ColumnSynonymsT>(value));
111 return *this;
112 }
113 template <typename ColumnSynonymsT = Aws::String>
114 TopicColumn& AddColumnSynonyms(ColumnSynonymsT&& value) {
115 m_columnSynonymsHasBeenSet = true;
116 m_columnSynonyms.emplace_back(std::forward<ColumnSynonymsT>(value));
117 return *this;
118 }
120
122
126 inline ColumnDataRole GetColumnDataRole() const { return m_columnDataRole; }
127 inline bool ColumnDataRoleHasBeenSet() const { return m_columnDataRoleHasBeenSet; }
129 m_columnDataRoleHasBeenSet = true;
130 m_columnDataRole = value;
131 }
133 SetColumnDataRole(value);
134 return *this;
135 }
137
139
143 inline DefaultAggregation GetAggregation() const { return m_aggregation; }
144 inline bool AggregationHasBeenSet() const { return m_aggregationHasBeenSet; }
146 m_aggregationHasBeenSet = true;
147 m_aggregation = value;
148 }
150 SetAggregation(value);
151 return *this;
152 }
154
156
160 inline bool GetIsIncludedInTopic() const { return m_isIncludedInTopic; }
161 inline bool IsIncludedInTopicHasBeenSet() const { return m_isIncludedInTopicHasBeenSet; }
162 inline void SetIsIncludedInTopic(bool value) {
163 m_isIncludedInTopicHasBeenSet = true;
164 m_isIncludedInTopic = value;
165 }
166 inline TopicColumn& WithIsIncludedInTopic(bool value) {
168 return *this;
169 }
171
173
177 inline bool GetDisableIndexing() const { return m_disableIndexing; }
178 inline bool DisableIndexingHasBeenSet() const { return m_disableIndexingHasBeenSet; }
179 inline void SetDisableIndexing(bool value) {
180 m_disableIndexingHasBeenSet = true;
181 m_disableIndexing = value;
182 }
183 inline TopicColumn& WithDisableIndexing(bool value) {
184 SetDisableIndexing(value);
185 return *this;
186 }
188
190
194 inline const ComparativeOrder& GetComparativeOrder() const { return m_comparativeOrder; }
195 inline bool ComparativeOrderHasBeenSet() const { return m_comparativeOrderHasBeenSet; }
196 template <typename ComparativeOrderT = ComparativeOrder>
197 void SetComparativeOrder(ComparativeOrderT&& value) {
198 m_comparativeOrderHasBeenSet = true;
199 m_comparativeOrder = std::forward<ComparativeOrderT>(value);
200 }
201 template <typename ComparativeOrderT = ComparativeOrder>
202 TopicColumn& WithComparativeOrder(ComparativeOrderT&& value) {
203 SetComparativeOrder(std::forward<ComparativeOrderT>(value));
204 return *this;
205 }
207
209
212 inline const SemanticType& GetSemanticType() const { return m_semanticType; }
213 inline bool SemanticTypeHasBeenSet() const { return m_semanticTypeHasBeenSet; }
214 template <typename SemanticTypeT = SemanticType>
215 void SetSemanticType(SemanticTypeT&& value) {
216 m_semanticTypeHasBeenSet = true;
217 m_semanticType = std::forward<SemanticTypeT>(value);
218 }
219 template <typename SemanticTypeT = SemanticType>
220 TopicColumn& WithSemanticType(SemanticTypeT&& value) {
221 SetSemanticType(std::forward<SemanticTypeT>(value));
222 return *this;
223 }
225
227
231 inline TopicTimeGranularity GetTimeGranularity() const { return m_timeGranularity; }
232 inline bool TimeGranularityHasBeenSet() const { return m_timeGranularityHasBeenSet; }
234 m_timeGranularityHasBeenSet = true;
235 m_timeGranularity = value;
236 }
238 SetTimeGranularity(value);
239 return *this;
240 }
242
244
251 inline const Aws::Vector<AuthorSpecifiedAggregation>& GetAllowedAggregations() const { return m_allowedAggregations; }
252 inline bool AllowedAggregationsHasBeenSet() const { return m_allowedAggregationsHasBeenSet; }
253 template <typename AllowedAggregationsT = Aws::Vector<AuthorSpecifiedAggregation>>
254 void SetAllowedAggregations(AllowedAggregationsT&& value) {
255 m_allowedAggregationsHasBeenSet = true;
256 m_allowedAggregations = std::forward<AllowedAggregationsT>(value);
257 }
258 template <typename AllowedAggregationsT = Aws::Vector<AuthorSpecifiedAggregation>>
259 TopicColumn& WithAllowedAggregations(AllowedAggregationsT&& value) {
260 SetAllowedAggregations(std::forward<AllowedAggregationsT>(value));
261 return *this;
262 }
264 m_allowedAggregationsHasBeenSet = true;
265 m_allowedAggregations.push_back(value);
266 return *this;
267 }
269
271
278 inline const Aws::Vector<AuthorSpecifiedAggregation>& GetNotAllowedAggregations() const { return m_notAllowedAggregations; }
279 inline bool NotAllowedAggregationsHasBeenSet() const { return m_notAllowedAggregationsHasBeenSet; }
280 template <typename NotAllowedAggregationsT = Aws::Vector<AuthorSpecifiedAggregation>>
281 void SetNotAllowedAggregations(NotAllowedAggregationsT&& value) {
282 m_notAllowedAggregationsHasBeenSet = true;
283 m_notAllowedAggregations = std::forward<NotAllowedAggregationsT>(value);
284 }
285 template <typename NotAllowedAggregationsT = Aws::Vector<AuthorSpecifiedAggregation>>
286 TopicColumn& WithNotAllowedAggregations(NotAllowedAggregationsT&& value) {
287 SetNotAllowedAggregations(std::forward<NotAllowedAggregationsT>(value));
288 return *this;
289 }
291 m_notAllowedAggregationsHasBeenSet = true;
292 m_notAllowedAggregations.push_back(value);
293 return *this;
294 }
296
298
301 inline const DefaultFormatting& GetDefaultFormatting() const { return m_defaultFormatting; }
302 inline bool DefaultFormattingHasBeenSet() const { return m_defaultFormattingHasBeenSet; }
303 template <typename DefaultFormattingT = DefaultFormatting>
304 void SetDefaultFormatting(DefaultFormattingT&& value) {
305 m_defaultFormattingHasBeenSet = true;
306 m_defaultFormatting = std::forward<DefaultFormattingT>(value);
307 }
308 template <typename DefaultFormattingT = DefaultFormatting>
309 TopicColumn& WithDefaultFormatting(DefaultFormattingT&& value) {
310 SetDefaultFormatting(std::forward<DefaultFormattingT>(value));
311 return *this;
312 }
314
316
320 inline bool GetNeverAggregateInFilter() const { return m_neverAggregateInFilter; }
321 inline bool NeverAggregateInFilterHasBeenSet() const { return m_neverAggregateInFilterHasBeenSet; }
322 inline void SetNeverAggregateInFilter(bool value) {
323 m_neverAggregateInFilterHasBeenSet = true;
324 m_neverAggregateInFilter = value;
325 }
328 return *this;
329 }
331
333
336 inline const Aws::Vector<CellValueSynonym>& GetCellValueSynonyms() const { return m_cellValueSynonyms; }
337 inline bool CellValueSynonymsHasBeenSet() const { return m_cellValueSynonymsHasBeenSet; }
338 template <typename CellValueSynonymsT = Aws::Vector<CellValueSynonym>>
339 void SetCellValueSynonyms(CellValueSynonymsT&& value) {
340 m_cellValueSynonymsHasBeenSet = true;
341 m_cellValueSynonyms = std::forward<CellValueSynonymsT>(value);
342 }
343 template <typename CellValueSynonymsT = Aws::Vector<CellValueSynonym>>
344 TopicColumn& WithCellValueSynonyms(CellValueSynonymsT&& value) {
345 SetCellValueSynonyms(std::forward<CellValueSynonymsT>(value));
346 return *this;
347 }
348 template <typename CellValueSynonymsT = CellValueSynonym>
349 TopicColumn& AddCellValueSynonyms(CellValueSynonymsT&& value) {
350 m_cellValueSynonymsHasBeenSet = true;
351 m_cellValueSynonyms.emplace_back(std::forward<CellValueSynonymsT>(value));
352 return *this;
353 }
355
357
360 inline bool GetNonAdditive() const { return m_nonAdditive; }
361 inline bool NonAdditiveHasBeenSet() const { return m_nonAdditiveHasBeenSet; }
362 inline void SetNonAdditive(bool value) {
363 m_nonAdditiveHasBeenSet = true;
364 m_nonAdditive = value;
365 }
366 inline TopicColumn& WithNonAdditive(bool value) {
367 SetNonAdditive(value);
368 return *this;
369 }
371 private:
372 Aws::String m_columnName;
373
374 Aws::String m_columnFriendlyName;
375
376 Aws::String m_columnDescription;
377
378 Aws::Vector<Aws::String> m_columnSynonyms;
379
380 ColumnDataRole m_columnDataRole{ColumnDataRole::NOT_SET};
381
383
384 bool m_isIncludedInTopic{false};
385
386 bool m_disableIndexing{false};
387
388 ComparativeOrder m_comparativeOrder;
389
390 SemanticType m_semanticType;
391
393
394 Aws::Vector<AuthorSpecifiedAggregation> m_allowedAggregations;
395
396 Aws::Vector<AuthorSpecifiedAggregation> m_notAllowedAggregations;
397
398 DefaultFormatting m_defaultFormatting;
399
400 bool m_neverAggregateInFilter{false};
401
402 Aws::Vector<CellValueSynonym> m_cellValueSynonyms;
403
404 bool m_nonAdditive{false};
405 bool m_columnNameHasBeenSet = false;
406 bool m_columnFriendlyNameHasBeenSet = false;
407 bool m_columnDescriptionHasBeenSet = false;
408 bool m_columnSynonymsHasBeenSet = false;
409 bool m_columnDataRoleHasBeenSet = false;
410 bool m_aggregationHasBeenSet = false;
411 bool m_isIncludedInTopicHasBeenSet = false;
412 bool m_disableIndexingHasBeenSet = false;
413 bool m_comparativeOrderHasBeenSet = false;
414 bool m_semanticTypeHasBeenSet = false;
415 bool m_timeGranularityHasBeenSet = false;
416 bool m_allowedAggregationsHasBeenSet = false;
417 bool m_notAllowedAggregationsHasBeenSet = false;
418 bool m_defaultFormattingHasBeenSet = false;
419 bool m_neverAggregateInFilterHasBeenSet = false;
420 bool m_cellValueSynonymsHasBeenSet = false;
421 bool m_nonAdditiveHasBeenSet = false;
422};
423
424} // namespace Model
425} // namespace QuickSight
426} // namespace Aws
const Aws::Vector< AuthorSpecifiedAggregation > & GetNotAllowedAggregations() const
void SetColumnName(ColumnNameT &&value)
Definition TopicColumn.h:50
TopicColumn & WithColumnFriendlyName(ColumnFriendlyNameT &&value)
Definition TopicColumn.h:73
const Aws::String & GetColumnDescription() const
Definition TopicColumn.h:83
TopicColumn & WithColumnName(ColumnNameT &&value)
Definition TopicColumn.h:55
void SetColumnSynonyms(ColumnSynonymsT &&value)
void SetAggregation(DefaultAggregation value)
const Aws::Vector< CellValueSynonym > & GetCellValueSynonyms() const
TopicColumn & AddAllowedAggregations(AuthorSpecifiedAggregation value)
AWS_QUICKSIGHT_API TopicColumn(Aws::Utils::Json::JsonView jsonValue)
TopicColumn & WithComparativeOrder(ComparativeOrderT &&value)
const DefaultFormatting & GetDefaultFormatting() const
TopicColumn & WithDisableIndexing(bool value)
TopicColumn & WithTimeGranularity(TopicTimeGranularity value)
TopicColumn & WithNotAllowedAggregations(NotAllowedAggregationsT &&value)
TopicColumn & WithSemanticType(SemanticTypeT &&value)
void SetCellValueSynonyms(CellValueSynonymsT &&value)
void SetTimeGranularity(TopicTimeGranularity value)
TopicColumn & WithDefaultFormatting(DefaultFormattingT &&value)
TopicColumn & WithAggregation(DefaultAggregation value)
TopicTimeGranularity GetTimeGranularity() const
const Aws::String & GetColumnFriendlyName() const
Definition TopicColumn.h:65
TopicColumn & AddCellValueSynonyms(CellValueSynonymsT &&value)
TopicColumn & AddColumnSynonyms(ColumnSynonymsT &&value)
void SetSemanticType(SemanticTypeT &&value)
void SetNeverAggregateInFilter(bool value)
AWS_QUICKSIGHT_API TopicColumn()=default
const SemanticType & GetSemanticType() const
TopicColumn & WithAllowedAggregations(AllowedAggregationsT &&value)
TopicColumn & WithCellValueSynonyms(CellValueSynonymsT &&value)
const Aws::Vector< Aws::String > & GetColumnSynonyms() const
TopicColumn & WithIsIncludedInTopic(bool value)
void SetNotAllowedAggregations(NotAllowedAggregationsT &&value)
AWS_QUICKSIGHT_API TopicColumn & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
TopicColumn & WithColumnSynonyms(ColumnSynonymsT &&value)
TopicColumn & AddNotAllowedAggregations(AuthorSpecifiedAggregation value)
TopicColumn & WithColumnDataRole(ColumnDataRole value)
DefaultAggregation GetAggregation() const
void SetColumnFriendlyName(ColumnFriendlyNameT &&value)
Definition TopicColumn.h:68
void SetColumnDataRole(ColumnDataRole value)
void SetComparativeOrder(ComparativeOrderT &&value)
TopicColumn & WithNeverAggregateInFilter(bool value)
void SetAllowedAggregations(AllowedAggregationsT &&value)
void SetColumnDescription(ColumnDescriptionT &&value)
Definition TopicColumn.h:86
const Aws::Vector< AuthorSpecifiedAggregation > & GetAllowedAggregations() const
void SetDefaultFormatting(DefaultFormattingT &&value)
ColumnDataRole GetColumnDataRole() const
TopicColumn & WithNonAdditive(bool value)
TopicColumn & WithColumnDescription(ColumnDescriptionT &&value)
Definition TopicColumn.h:91
const ComparativeOrder & GetComparativeOrder() const
const Aws::String & GetColumnName() const
Definition TopicColumn.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue