AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TopicCalculatedField.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/quicksight/model/ColumnDataRole.h>
11#include <aws/quicksight/model/TopicTimeGranularity.h>
12#include <aws/quicksight/model/DefaultFormatting.h>
13#include <aws/quicksight/model/DefaultAggregation.h>
14#include <aws/quicksight/model/ComparativeOrder.h>
15#include <aws/quicksight/model/SemanticType.h>
16#include <aws/quicksight/model/AuthorSpecifiedAggregation.h>
17#include <aws/quicksight/model/CellValueSynonym.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace QuickSight
31{
32namespace Model
33{
34
41 {
42 public:
43 AWS_QUICKSIGHT_API TopicCalculatedField() = default;
44 AWS_QUICKSIGHT_API TopicCalculatedField(Aws::Utils::Json::JsonView jsonValue);
46 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetCalculatedFieldName() const { return m_calculatedFieldName; }
54 inline bool CalculatedFieldNameHasBeenSet() const { return m_calculatedFieldNameHasBeenSet; }
55 template<typename CalculatedFieldNameT = Aws::String>
56 void SetCalculatedFieldName(CalculatedFieldNameT&& value) { m_calculatedFieldNameHasBeenSet = true; m_calculatedFieldName = std::forward<CalculatedFieldNameT>(value); }
57 template<typename CalculatedFieldNameT = Aws::String>
58 TopicCalculatedField& WithCalculatedFieldName(CalculatedFieldNameT&& value) { SetCalculatedFieldName(std::forward<CalculatedFieldNameT>(value)); return *this;}
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) { m_calculatedFieldDescriptionHasBeenSet = true; m_calculatedFieldDescription = std::forward<CalculatedFieldDescriptionT>(value); }
69 template<typename CalculatedFieldDescriptionT = Aws::String>
70 TopicCalculatedField& WithCalculatedFieldDescription(CalculatedFieldDescriptionT&& value) { SetCalculatedFieldDescription(std::forward<CalculatedFieldDescriptionT>(value)); return *this;}
72
74
77 inline const Aws::String& GetExpression() const { return m_expression; }
78 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
79 template<typename ExpressionT = Aws::String>
80 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
81 template<typename ExpressionT = Aws::String>
82 TopicCalculatedField& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
84
86
89 inline const Aws::Vector<Aws::String>& GetCalculatedFieldSynonyms() const { return m_calculatedFieldSynonyms; }
90 inline bool CalculatedFieldSynonymsHasBeenSet() const { return m_calculatedFieldSynonymsHasBeenSet; }
91 template<typename CalculatedFieldSynonymsT = Aws::Vector<Aws::String>>
92 void SetCalculatedFieldSynonyms(CalculatedFieldSynonymsT&& value) { m_calculatedFieldSynonymsHasBeenSet = true; m_calculatedFieldSynonyms = std::forward<CalculatedFieldSynonymsT>(value); }
93 template<typename CalculatedFieldSynonymsT = Aws::Vector<Aws::String>>
94 TopicCalculatedField& WithCalculatedFieldSynonyms(CalculatedFieldSynonymsT&& value) { SetCalculatedFieldSynonyms(std::forward<CalculatedFieldSynonymsT>(value)); return *this;}
95 template<typename CalculatedFieldSynonymsT = Aws::String>
96 TopicCalculatedField& AddCalculatedFieldSynonyms(CalculatedFieldSynonymsT&& value) { m_calculatedFieldSynonymsHasBeenSet = true; m_calculatedFieldSynonyms.emplace_back(std::forward<CalculatedFieldSynonymsT>(value)); return *this; }
98
100
104 inline bool GetIsIncludedInTopic() const { return m_isIncludedInTopic; }
105 inline bool IsIncludedInTopicHasBeenSet() const { return m_isIncludedInTopicHasBeenSet; }
106 inline void SetIsIncludedInTopic(bool value) { m_isIncludedInTopicHasBeenSet = true; m_isIncludedInTopic = value; }
107 inline TopicCalculatedField& WithIsIncludedInTopic(bool value) { SetIsIncludedInTopic(value); return *this;}
109
111
115 inline bool GetDisableIndexing() const { return m_disableIndexing; }
116 inline bool DisableIndexingHasBeenSet() const { return m_disableIndexingHasBeenSet; }
117 inline void SetDisableIndexing(bool value) { m_disableIndexingHasBeenSet = true; m_disableIndexing = value; }
118 inline TopicCalculatedField& WithDisableIndexing(bool value) { SetDisableIndexing(value); return *this;}
120
122
126 inline ColumnDataRole GetColumnDataRole() const { return m_columnDataRole; }
127 inline bool ColumnDataRoleHasBeenSet() const { return m_columnDataRoleHasBeenSet; }
128 inline void SetColumnDataRole(ColumnDataRole value) { m_columnDataRoleHasBeenSet = true; m_columnDataRole = value; }
131
133
137 inline TopicTimeGranularity GetTimeGranularity() const { return m_timeGranularity; }
138 inline bool TimeGranularityHasBeenSet() const { return m_timeGranularityHasBeenSet; }
139 inline void SetTimeGranularity(TopicTimeGranularity value) { m_timeGranularityHasBeenSet = true; m_timeGranularity = value; }
142
144
147 inline const DefaultFormatting& GetDefaultFormatting() const { return m_defaultFormatting; }
148 inline bool DefaultFormattingHasBeenSet() const { return m_defaultFormattingHasBeenSet; }
149 template<typename DefaultFormattingT = DefaultFormatting>
150 void SetDefaultFormatting(DefaultFormattingT&& value) { m_defaultFormattingHasBeenSet = true; m_defaultFormatting = std::forward<DefaultFormattingT>(value); }
151 template<typename DefaultFormattingT = DefaultFormatting>
152 TopicCalculatedField& WithDefaultFormatting(DefaultFormattingT&& value) { SetDefaultFormatting(std::forward<DefaultFormattingT>(value)); return *this;}
154
156
161 inline DefaultAggregation GetAggregation() const { return m_aggregation; }
162 inline bool AggregationHasBeenSet() const { return m_aggregationHasBeenSet; }
163 inline void SetAggregation(DefaultAggregation value) { m_aggregationHasBeenSet = true; m_aggregation = value; }
166
168
172 inline const ComparativeOrder& GetComparativeOrder() const { return m_comparativeOrder; }
173 inline bool ComparativeOrderHasBeenSet() const { return m_comparativeOrderHasBeenSet; }
174 template<typename ComparativeOrderT = ComparativeOrder>
175 void SetComparativeOrder(ComparativeOrderT&& value) { m_comparativeOrderHasBeenSet = true; m_comparativeOrder = std::forward<ComparativeOrderT>(value); }
176 template<typename ComparativeOrderT = ComparativeOrder>
177 TopicCalculatedField& WithComparativeOrder(ComparativeOrderT&& value) { SetComparativeOrder(std::forward<ComparativeOrderT>(value)); return *this;}
179
181
184 inline const SemanticType& GetSemanticType() const { return m_semanticType; }
185 inline bool SemanticTypeHasBeenSet() const { return m_semanticTypeHasBeenSet; }
186 template<typename SemanticTypeT = SemanticType>
187 void SetSemanticType(SemanticTypeT&& value) { m_semanticTypeHasBeenSet = true; m_semanticType = std::forward<SemanticTypeT>(value); }
188 template<typename SemanticTypeT = SemanticType>
189 TopicCalculatedField& WithSemanticType(SemanticTypeT&& value) { SetSemanticType(std::forward<SemanticTypeT>(value)); return *this;}
191
193
201 inline const Aws::Vector<AuthorSpecifiedAggregation>& GetAllowedAggregations() const { return m_allowedAggregations; }
202 inline bool AllowedAggregationsHasBeenSet() const { return m_allowedAggregationsHasBeenSet; }
203 template<typename AllowedAggregationsT = Aws::Vector<AuthorSpecifiedAggregation>>
204 void SetAllowedAggregations(AllowedAggregationsT&& value) { m_allowedAggregationsHasBeenSet = true; m_allowedAggregations = std::forward<AllowedAggregationsT>(value); }
205 template<typename AllowedAggregationsT = Aws::Vector<AuthorSpecifiedAggregation>>
206 TopicCalculatedField& WithAllowedAggregations(AllowedAggregationsT&& value) { SetAllowedAggregations(std::forward<AllowedAggregationsT>(value)); return *this;}
207 inline TopicCalculatedField& AddAllowedAggregations(AuthorSpecifiedAggregation value) { m_allowedAggregationsHasBeenSet = true; m_allowedAggregations.push_back(value); return *this; }
209
211
219 inline const Aws::Vector<AuthorSpecifiedAggregation>& GetNotAllowedAggregations() const { return m_notAllowedAggregations; }
220 inline bool NotAllowedAggregationsHasBeenSet() const { return m_notAllowedAggregationsHasBeenSet; }
221 template<typename NotAllowedAggregationsT = Aws::Vector<AuthorSpecifiedAggregation>>
222 void SetNotAllowedAggregations(NotAllowedAggregationsT&& value) { m_notAllowedAggregationsHasBeenSet = true; m_notAllowedAggregations = std::forward<NotAllowedAggregationsT>(value); }
223 template<typename NotAllowedAggregationsT = Aws::Vector<AuthorSpecifiedAggregation>>
224 TopicCalculatedField& WithNotAllowedAggregations(NotAllowedAggregationsT&& value) { SetNotAllowedAggregations(std::forward<NotAllowedAggregationsT>(value)); return *this;}
225 inline TopicCalculatedField& AddNotAllowedAggregations(AuthorSpecifiedAggregation value) { m_notAllowedAggregationsHasBeenSet = true; m_notAllowedAggregations.push_back(value); return *this; }
227
229
233 inline bool GetNeverAggregateInFilter() const { return m_neverAggregateInFilter; }
234 inline bool NeverAggregateInFilterHasBeenSet() const { return m_neverAggregateInFilterHasBeenSet; }
235 inline void SetNeverAggregateInFilter(bool value) { m_neverAggregateInFilterHasBeenSet = true; m_neverAggregateInFilter = value; }
238
240
243 inline const Aws::Vector<CellValueSynonym>& GetCellValueSynonyms() const { return m_cellValueSynonyms; }
244 inline bool CellValueSynonymsHasBeenSet() const { return m_cellValueSynonymsHasBeenSet; }
245 template<typename CellValueSynonymsT = Aws::Vector<CellValueSynonym>>
246 void SetCellValueSynonyms(CellValueSynonymsT&& value) { m_cellValueSynonymsHasBeenSet = true; m_cellValueSynonyms = std::forward<CellValueSynonymsT>(value); }
247 template<typename CellValueSynonymsT = Aws::Vector<CellValueSynonym>>
248 TopicCalculatedField& WithCellValueSynonyms(CellValueSynonymsT&& value) { SetCellValueSynonyms(std::forward<CellValueSynonymsT>(value)); return *this;}
249 template<typename CellValueSynonymsT = CellValueSynonym>
250 TopicCalculatedField& AddCellValueSynonyms(CellValueSynonymsT&& value) { m_cellValueSynonymsHasBeenSet = true; m_cellValueSynonyms.emplace_back(std::forward<CellValueSynonymsT>(value)); return *this; }
252
254
257 inline bool GetNonAdditive() const { return m_nonAdditive; }
258 inline bool NonAdditiveHasBeenSet() const { return m_nonAdditiveHasBeenSet; }
259 inline void SetNonAdditive(bool value) { m_nonAdditiveHasBeenSet = true; m_nonAdditive = value; }
260 inline TopicCalculatedField& WithNonAdditive(bool value) { SetNonAdditive(value); return *this;}
262 private:
263
264 Aws::String m_calculatedFieldName;
265 bool m_calculatedFieldNameHasBeenSet = false;
266
267 Aws::String m_calculatedFieldDescription;
268 bool m_calculatedFieldDescriptionHasBeenSet = false;
269
270 Aws::String m_expression;
271 bool m_expressionHasBeenSet = false;
272
273 Aws::Vector<Aws::String> m_calculatedFieldSynonyms;
274 bool m_calculatedFieldSynonymsHasBeenSet = false;
275
276 bool m_isIncludedInTopic{false};
277 bool m_isIncludedInTopicHasBeenSet = false;
278
279 bool m_disableIndexing{false};
280 bool m_disableIndexingHasBeenSet = false;
281
282 ColumnDataRole m_columnDataRole{ColumnDataRole::NOT_SET};
283 bool m_columnDataRoleHasBeenSet = false;
284
286 bool m_timeGranularityHasBeenSet = false;
287
288 DefaultFormatting m_defaultFormatting;
289 bool m_defaultFormattingHasBeenSet = false;
290
292 bool m_aggregationHasBeenSet = false;
293
294 ComparativeOrder m_comparativeOrder;
295 bool m_comparativeOrderHasBeenSet = false;
296
297 SemanticType m_semanticType;
298 bool m_semanticTypeHasBeenSet = false;
299
300 Aws::Vector<AuthorSpecifiedAggregation> m_allowedAggregations;
301 bool m_allowedAggregationsHasBeenSet = false;
302
303 Aws::Vector<AuthorSpecifiedAggregation> m_notAllowedAggregations;
304 bool m_notAllowedAggregationsHasBeenSet = false;
305
306 bool m_neverAggregateInFilter{false};
307 bool m_neverAggregateInFilterHasBeenSet = false;
308
309 Aws::Vector<CellValueSynonym> m_cellValueSynonyms;
310 bool m_cellValueSynonymsHasBeenSet = false;
311
312 bool m_nonAdditive{false};
313 bool m_nonAdditiveHasBeenSet = false;
314 };
315
316} // namespace Model
317} // namespace QuickSight
318} // 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