AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
TopicCalculatedField.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 TopicCalculatedField() = default;
39 AWS_QUICKSIGHT_API TopicCalculatedField(Aws::Utils::Json::JsonView jsonValue);
41 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetCalculatedFieldName() const { return m_calculatedFieldName; }
48 inline bool CalculatedFieldNameHasBeenSet() const { return m_calculatedFieldNameHasBeenSet; }
49 template <typename CalculatedFieldNameT = Aws::String>
50 void SetCalculatedFieldName(CalculatedFieldNameT&& value) {
51 m_calculatedFieldNameHasBeenSet = true;
52 m_calculatedFieldName = std::forward<CalculatedFieldNameT>(value);
53 }
54 template <typename CalculatedFieldNameT = Aws::String>
55 TopicCalculatedField& WithCalculatedFieldName(CalculatedFieldNameT&& value) {
56 SetCalculatedFieldName(std::forward<CalculatedFieldNameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetCalculatedFieldDescription() const { return m_calculatedFieldDescription; }
66 inline bool CalculatedFieldDescriptionHasBeenSet() const { return m_calculatedFieldDescriptionHasBeenSet; }
67 template <typename CalculatedFieldDescriptionT = Aws::String>
68 void SetCalculatedFieldDescription(CalculatedFieldDescriptionT&& value) {
69 m_calculatedFieldDescriptionHasBeenSet = true;
70 m_calculatedFieldDescription = std::forward<CalculatedFieldDescriptionT>(value);
71 }
72 template <typename CalculatedFieldDescriptionT = Aws::String>
73 TopicCalculatedField& WithCalculatedFieldDescription(CalculatedFieldDescriptionT&& value) {
74 SetCalculatedFieldDescription(std::forward<CalculatedFieldDescriptionT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetExpression() const { return m_expression; }
84 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
85 template <typename ExpressionT = Aws::String>
86 void SetExpression(ExpressionT&& value) {
87 m_expressionHasBeenSet = true;
88 m_expression = std::forward<ExpressionT>(value);
89 }
90 template <typename ExpressionT = Aws::String>
91 TopicCalculatedField& WithExpression(ExpressionT&& value) {
92 SetExpression(std::forward<ExpressionT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Vector<Aws::String>& GetCalculatedFieldSynonyms() const { return m_calculatedFieldSynonyms; }
102 inline bool CalculatedFieldSynonymsHasBeenSet() const { return m_calculatedFieldSynonymsHasBeenSet; }
103 template <typename CalculatedFieldSynonymsT = Aws::Vector<Aws::String>>
104 void SetCalculatedFieldSynonyms(CalculatedFieldSynonymsT&& value) {
105 m_calculatedFieldSynonymsHasBeenSet = true;
106 m_calculatedFieldSynonyms = std::forward<CalculatedFieldSynonymsT>(value);
107 }
108 template <typename CalculatedFieldSynonymsT = Aws::Vector<Aws::String>>
109 TopicCalculatedField& WithCalculatedFieldSynonyms(CalculatedFieldSynonymsT&& value) {
110 SetCalculatedFieldSynonyms(std::forward<CalculatedFieldSynonymsT>(value));
111 return *this;
112 }
113 template <typename CalculatedFieldSynonymsT = Aws::String>
114 TopicCalculatedField& AddCalculatedFieldSynonyms(CalculatedFieldSynonymsT&& value) {
115 m_calculatedFieldSynonymsHasBeenSet = true;
116 m_calculatedFieldSynonyms.emplace_back(std::forward<CalculatedFieldSynonymsT>(value));
117 return *this;
118 }
120
122
126 inline bool GetIsIncludedInTopic() const { return m_isIncludedInTopic; }
127 inline bool IsIncludedInTopicHasBeenSet() const { return m_isIncludedInTopicHasBeenSet; }
128 inline void SetIsIncludedInTopic(bool value) {
129 m_isIncludedInTopicHasBeenSet = true;
130 m_isIncludedInTopic = value;
131 }
134 return *this;
135 }
137
139
143 inline bool GetDisableIndexing() const { return m_disableIndexing; }
144 inline bool DisableIndexingHasBeenSet() const { return m_disableIndexingHasBeenSet; }
145 inline void SetDisableIndexing(bool value) {
146 m_disableIndexingHasBeenSet = true;
147 m_disableIndexing = value;
148 }
150 SetDisableIndexing(value);
151 return *this;
152 }
154
156
160 inline ColumnDataRole GetColumnDataRole() const { return m_columnDataRole; }
161 inline bool ColumnDataRoleHasBeenSet() const { return m_columnDataRoleHasBeenSet; }
163 m_columnDataRoleHasBeenSet = true;
164 m_columnDataRole = value;
165 }
167 SetColumnDataRole(value);
168 return *this;
169 }
171
173
177 inline TopicTimeGranularity GetTimeGranularity() const { return m_timeGranularity; }
178 inline bool TimeGranularityHasBeenSet() const { return m_timeGranularityHasBeenSet; }
180 m_timeGranularityHasBeenSet = true;
181 m_timeGranularity = value;
182 }
184 SetTimeGranularity(value);
185 return *this;
186 }
188
190
193 inline const DefaultFormatting& GetDefaultFormatting() const { return m_defaultFormatting; }
194 inline bool DefaultFormattingHasBeenSet() const { return m_defaultFormattingHasBeenSet; }
195 template <typename DefaultFormattingT = DefaultFormatting>
196 void SetDefaultFormatting(DefaultFormattingT&& value) {
197 m_defaultFormattingHasBeenSet = true;
198 m_defaultFormatting = std::forward<DefaultFormattingT>(value);
199 }
200 template <typename DefaultFormattingT = DefaultFormatting>
201 TopicCalculatedField& WithDefaultFormatting(DefaultFormattingT&& value) {
202 SetDefaultFormatting(std::forward<DefaultFormattingT>(value));
203 return *this;
204 }
206
208
213 inline DefaultAggregation GetAggregation() const { return m_aggregation; }
214 inline bool AggregationHasBeenSet() const { return m_aggregationHasBeenSet; }
216 m_aggregationHasBeenSet = true;
217 m_aggregation = value;
218 }
220 SetAggregation(value);
221 return *this;
222 }
224
226
230 inline const ComparativeOrder& GetComparativeOrder() const { return m_comparativeOrder; }
231 inline bool ComparativeOrderHasBeenSet() const { return m_comparativeOrderHasBeenSet; }
232 template <typename ComparativeOrderT = ComparativeOrder>
233 void SetComparativeOrder(ComparativeOrderT&& value) {
234 m_comparativeOrderHasBeenSet = true;
235 m_comparativeOrder = std::forward<ComparativeOrderT>(value);
236 }
237 template <typename ComparativeOrderT = ComparativeOrder>
238 TopicCalculatedField& WithComparativeOrder(ComparativeOrderT&& value) {
239 SetComparativeOrder(std::forward<ComparativeOrderT>(value));
240 return *this;
241 }
243
245
248 inline const SemanticType& GetSemanticType() const { return m_semanticType; }
249 inline bool SemanticTypeHasBeenSet() const { return m_semanticTypeHasBeenSet; }
250 template <typename SemanticTypeT = SemanticType>
251 void SetSemanticType(SemanticTypeT&& value) {
252 m_semanticTypeHasBeenSet = true;
253 m_semanticType = std::forward<SemanticTypeT>(value);
254 }
255 template <typename SemanticTypeT = SemanticType>
256 TopicCalculatedField& WithSemanticType(SemanticTypeT&& value) {
257 SetSemanticType(std::forward<SemanticTypeT>(value));
258 return *this;
259 }
261
263
271 inline const Aws::Vector<AuthorSpecifiedAggregation>& GetAllowedAggregations() const { return m_allowedAggregations; }
272 inline bool AllowedAggregationsHasBeenSet() const { return m_allowedAggregationsHasBeenSet; }
273 template <typename AllowedAggregationsT = Aws::Vector<AuthorSpecifiedAggregation>>
274 void SetAllowedAggregations(AllowedAggregationsT&& value) {
275 m_allowedAggregationsHasBeenSet = true;
276 m_allowedAggregations = std::forward<AllowedAggregationsT>(value);
277 }
278 template <typename AllowedAggregationsT = Aws::Vector<AuthorSpecifiedAggregation>>
279 TopicCalculatedField& WithAllowedAggregations(AllowedAggregationsT&& value) {
280 SetAllowedAggregations(std::forward<AllowedAggregationsT>(value));
281 return *this;
282 }
284 m_allowedAggregationsHasBeenSet = true;
285 m_allowedAggregations.push_back(value);
286 return *this;
287 }
289
291
299 inline const Aws::Vector<AuthorSpecifiedAggregation>& GetNotAllowedAggregations() const { return m_notAllowedAggregations; }
300 inline bool NotAllowedAggregationsHasBeenSet() const { return m_notAllowedAggregationsHasBeenSet; }
301 template <typename NotAllowedAggregationsT = Aws::Vector<AuthorSpecifiedAggregation>>
302 void SetNotAllowedAggregations(NotAllowedAggregationsT&& value) {
303 m_notAllowedAggregationsHasBeenSet = true;
304 m_notAllowedAggregations = std::forward<NotAllowedAggregationsT>(value);
305 }
306 template <typename NotAllowedAggregationsT = Aws::Vector<AuthorSpecifiedAggregation>>
307 TopicCalculatedField& WithNotAllowedAggregations(NotAllowedAggregationsT&& value) {
308 SetNotAllowedAggregations(std::forward<NotAllowedAggregationsT>(value));
309 return *this;
310 }
312 m_notAllowedAggregationsHasBeenSet = true;
313 m_notAllowedAggregations.push_back(value);
314 return *this;
315 }
317
319
323 inline bool GetNeverAggregateInFilter() const { return m_neverAggregateInFilter; }
324 inline bool NeverAggregateInFilterHasBeenSet() const { return m_neverAggregateInFilterHasBeenSet; }
325 inline void SetNeverAggregateInFilter(bool value) {
326 m_neverAggregateInFilterHasBeenSet = true;
327 m_neverAggregateInFilter = value;
328 }
331 return *this;
332 }
334
336
339 inline const Aws::Vector<CellValueSynonym>& GetCellValueSynonyms() const { return m_cellValueSynonyms; }
340 inline bool CellValueSynonymsHasBeenSet() const { return m_cellValueSynonymsHasBeenSet; }
341 template <typename CellValueSynonymsT = Aws::Vector<CellValueSynonym>>
342 void SetCellValueSynonyms(CellValueSynonymsT&& value) {
343 m_cellValueSynonymsHasBeenSet = true;
344 m_cellValueSynonyms = std::forward<CellValueSynonymsT>(value);
345 }
346 template <typename CellValueSynonymsT = Aws::Vector<CellValueSynonym>>
347 TopicCalculatedField& WithCellValueSynonyms(CellValueSynonymsT&& value) {
348 SetCellValueSynonyms(std::forward<CellValueSynonymsT>(value));
349 return *this;
350 }
351 template <typename CellValueSynonymsT = CellValueSynonym>
352 TopicCalculatedField& AddCellValueSynonyms(CellValueSynonymsT&& value) {
353 m_cellValueSynonymsHasBeenSet = true;
354 m_cellValueSynonyms.emplace_back(std::forward<CellValueSynonymsT>(value));
355 return *this;
356 }
358
360
363 inline bool GetNonAdditive() const { return m_nonAdditive; }
364 inline bool NonAdditiveHasBeenSet() const { return m_nonAdditiveHasBeenSet; }
365 inline void SetNonAdditive(bool value) {
366 m_nonAdditiveHasBeenSet = true;
367 m_nonAdditive = value;
368 }
370 SetNonAdditive(value);
371 return *this;
372 }
374 private:
375 Aws::String m_calculatedFieldName;
376
377 Aws::String m_calculatedFieldDescription;
378
379 Aws::String m_expression;
380
381 Aws::Vector<Aws::String> m_calculatedFieldSynonyms;
382
383 bool m_isIncludedInTopic{false};
384
385 bool m_disableIndexing{false};
386
387 ColumnDataRole m_columnDataRole{ColumnDataRole::NOT_SET};
388
390
391 DefaultFormatting m_defaultFormatting;
392
394
395 ComparativeOrder m_comparativeOrder;
396
397 SemanticType m_semanticType;
398
399 Aws::Vector<AuthorSpecifiedAggregation> m_allowedAggregations;
400
401 Aws::Vector<AuthorSpecifiedAggregation> m_notAllowedAggregations;
402
403 bool m_neverAggregateInFilter{false};
404
405 Aws::Vector<CellValueSynonym> m_cellValueSynonyms;
406
407 bool m_nonAdditive{false};
408 bool m_calculatedFieldNameHasBeenSet = false;
409 bool m_calculatedFieldDescriptionHasBeenSet = false;
410 bool m_expressionHasBeenSet = false;
411 bool m_calculatedFieldSynonymsHasBeenSet = false;
412 bool m_isIncludedInTopicHasBeenSet = false;
413 bool m_disableIndexingHasBeenSet = false;
414 bool m_columnDataRoleHasBeenSet = false;
415 bool m_timeGranularityHasBeenSet = false;
416 bool m_defaultFormattingHasBeenSet = false;
417 bool m_aggregationHasBeenSet = false;
418 bool m_comparativeOrderHasBeenSet = false;
419 bool m_semanticTypeHasBeenSet = false;
420 bool m_allowedAggregationsHasBeenSet = false;
421 bool m_notAllowedAggregationsHasBeenSet = false;
422 bool m_neverAggregateInFilterHasBeenSet = false;
423 bool m_cellValueSynonymsHasBeenSet = false;
424 bool m_nonAdditiveHasBeenSet = false;
425};
426
427} // namespace Model
428} // namespace QuickSight
429} // namespace Aws
TopicCalculatedField & AddCellValueSynonyms(CellValueSynonymsT &&value)
void SetTimeGranularity(TopicTimeGranularity value)
TopicCalculatedField & WithDefaultFormatting(DefaultFormattingT &&value)
TopicCalculatedField & WithTimeGranularity(TopicTimeGranularity value)
TopicCalculatedField & WithCalculatedFieldDescription(CalculatedFieldDescriptionT &&value)
void SetCalculatedFieldDescription(CalculatedFieldDescriptionT &&value)
TopicCalculatedField & AddNotAllowedAggregations(AuthorSpecifiedAggregation value)
TopicCalculatedField & WithIsIncludedInTopic(bool value)
AWS_QUICKSIGHT_API TopicCalculatedField & operator=(Aws::Utils::Json::JsonView jsonValue)
TopicCalculatedField & WithAggregation(DefaultAggregation value)
TopicCalculatedField & WithColumnDataRole(ColumnDataRole value)
const Aws::Vector< Aws::String > & GetCalculatedFieldSynonyms() const
TopicCalculatedField & AddAllowedAggregations(AuthorSpecifiedAggregation value)
const Aws::Vector< AuthorSpecifiedAggregation > & GetNotAllowedAggregations() const
const DefaultFormatting & GetDefaultFormatting() const
const Aws::Vector< AuthorSpecifiedAggregation > & GetAllowedAggregations() const
TopicCalculatedField & WithExpression(ExpressionT &&value)
const Aws::String & GetCalculatedFieldDescription() const
TopicCalculatedField & WithCalculatedFieldName(CalculatedFieldNameT &&value)
void SetDefaultFormatting(DefaultFormattingT &&value)
void SetCalculatedFieldName(CalculatedFieldNameT &&value)
void SetAllowedAggregations(AllowedAggregationsT &&value)
AWS_QUICKSIGHT_API TopicCalculatedField(Aws::Utils::Json::JsonView jsonValue)
TopicCalculatedField & WithCellValueSynonyms(CellValueSynonymsT &&value)
TopicCalculatedField & WithAllowedAggregations(AllowedAggregationsT &&value)
void SetComparativeOrder(ComparativeOrderT &&value)
void SetCellValueSynonyms(CellValueSynonymsT &&value)
TopicCalculatedField & WithSemanticType(SemanticTypeT &&value)
TopicCalculatedField & WithNotAllowedAggregations(NotAllowedAggregationsT &&value)
void SetNotAllowedAggregations(NotAllowedAggregationsT &&value)
const Aws::Vector< CellValueSynonym > & GetCellValueSynonyms() const
AWS_QUICKSIGHT_API TopicCalculatedField()=default
void SetCalculatedFieldSynonyms(CalculatedFieldSynonymsT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
TopicCalculatedField & WithCalculatedFieldSynonyms(CalculatedFieldSynonymsT &&value)
TopicCalculatedField & WithDisableIndexing(bool value)
TopicCalculatedField & WithNeverAggregateInFilter(bool value)
TopicCalculatedField & WithComparativeOrder(ComparativeOrderT &&value)
TopicCalculatedField & WithNonAdditive(bool value)
const ComparativeOrder & GetComparativeOrder() const
TopicCalculatedField & AddCalculatedFieldSynonyms(CalculatedFieldSynonymsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue