AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TopicIRMetric.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/Identifier.h>
9#include <aws/quicksight/model/AggFunction.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/quicksight/model/TopicIRComparisonMethod.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/quicksight/model/DisplayFormat.h>
14#include <aws/quicksight/model/DisplayFormatOptions.h>
15#include <aws/quicksight/model/NamedEntityRef.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace QuickSight
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_QUICKSIGHT_API TopicIRMetric();
43 AWS_QUICKSIGHT_API TopicIRMetric(Aws::Utils::Json::JsonView jsonValue);
44 AWS_QUICKSIGHT_API TopicIRMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Identifier& GetMetricId() const{ return m_metricId; }
53 inline bool MetricIdHasBeenSet() const { return m_metricIdHasBeenSet; }
54 inline void SetMetricId(const Identifier& value) { m_metricIdHasBeenSet = true; m_metricId = value; }
55 inline void SetMetricId(Identifier&& value) { m_metricIdHasBeenSet = true; m_metricId = std::move(value); }
56 inline TopicIRMetric& WithMetricId(const Identifier& value) { SetMetricId(value); return *this;}
57 inline TopicIRMetric& WithMetricId(Identifier&& value) { SetMetricId(std::move(value)); return *this;}
59
61
64 inline const AggFunction& GetFunction() const{ return m_function; }
65 inline bool FunctionHasBeenSet() const { return m_functionHasBeenSet; }
66 inline void SetFunction(const AggFunction& value) { m_functionHasBeenSet = true; m_function = value; }
67 inline void SetFunction(AggFunction&& value) { m_functionHasBeenSet = true; m_function = std::move(value); }
68 inline TopicIRMetric& WithFunction(const AggFunction& value) { SetFunction(value); return *this;}
69 inline TopicIRMetric& WithFunction(AggFunction&& value) { SetFunction(std::move(value)); return *this;}
71
73
76 inline const Aws::Vector<Identifier>& GetOperands() const{ return m_operands; }
77 inline bool OperandsHasBeenSet() const { return m_operandsHasBeenSet; }
78 inline void SetOperands(const Aws::Vector<Identifier>& value) { m_operandsHasBeenSet = true; m_operands = value; }
79 inline void SetOperands(Aws::Vector<Identifier>&& value) { m_operandsHasBeenSet = true; m_operands = std::move(value); }
80 inline TopicIRMetric& WithOperands(const Aws::Vector<Identifier>& value) { SetOperands(value); return *this;}
81 inline TopicIRMetric& WithOperands(Aws::Vector<Identifier>&& value) { SetOperands(std::move(value)); return *this;}
82 inline TopicIRMetric& AddOperands(const Identifier& value) { m_operandsHasBeenSet = true; m_operands.push_back(value); return *this; }
83 inline TopicIRMetric& AddOperands(Identifier&& value) { m_operandsHasBeenSet = true; m_operands.push_back(std::move(value)); return *this; }
85
87
90 inline const TopicIRComparisonMethod& GetComparisonMethod() const{ return m_comparisonMethod; }
91 inline bool ComparisonMethodHasBeenSet() const { return m_comparisonMethodHasBeenSet; }
92 inline void SetComparisonMethod(const TopicIRComparisonMethod& value) { m_comparisonMethodHasBeenSet = true; m_comparisonMethod = value; }
93 inline void SetComparisonMethod(TopicIRComparisonMethod&& value) { m_comparisonMethodHasBeenSet = true; m_comparisonMethod = std::move(value); }
95 inline TopicIRMetric& WithComparisonMethod(TopicIRComparisonMethod&& value) { SetComparisonMethod(std::move(value)); return *this;}
97
99
102 inline const Aws::String& GetExpression() const{ return m_expression; }
103 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
104 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
105 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
106 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
107 inline TopicIRMetric& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
108 inline TopicIRMetric& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
109 inline TopicIRMetric& WithExpression(const char* value) { SetExpression(value); return *this;}
111
113
116 inline const Aws::Vector<Identifier>& GetCalculatedFieldReferences() const{ return m_calculatedFieldReferences; }
117 inline bool CalculatedFieldReferencesHasBeenSet() const { return m_calculatedFieldReferencesHasBeenSet; }
118 inline void SetCalculatedFieldReferences(const Aws::Vector<Identifier>& value) { m_calculatedFieldReferencesHasBeenSet = true; m_calculatedFieldReferences = value; }
119 inline void SetCalculatedFieldReferences(Aws::Vector<Identifier>&& value) { m_calculatedFieldReferencesHasBeenSet = true; m_calculatedFieldReferences = std::move(value); }
122 inline TopicIRMetric& AddCalculatedFieldReferences(const Identifier& value) { m_calculatedFieldReferencesHasBeenSet = true; m_calculatedFieldReferences.push_back(value); return *this; }
123 inline TopicIRMetric& AddCalculatedFieldReferences(Identifier&& value) { m_calculatedFieldReferencesHasBeenSet = true; m_calculatedFieldReferences.push_back(std::move(value)); return *this; }
125
127
130 inline const DisplayFormat& GetDisplayFormat() const{ return m_displayFormat; }
131 inline bool DisplayFormatHasBeenSet() const { return m_displayFormatHasBeenSet; }
132 inline void SetDisplayFormat(const DisplayFormat& value) { m_displayFormatHasBeenSet = true; m_displayFormat = value; }
133 inline void SetDisplayFormat(DisplayFormat&& value) { m_displayFormatHasBeenSet = true; m_displayFormat = std::move(value); }
134 inline TopicIRMetric& WithDisplayFormat(const DisplayFormat& value) { SetDisplayFormat(value); return *this;}
135 inline TopicIRMetric& WithDisplayFormat(DisplayFormat&& value) { SetDisplayFormat(std::move(value)); return *this;}
137
139
140 inline const DisplayFormatOptions& GetDisplayFormatOptions() const{ return m_displayFormatOptions; }
141 inline bool DisplayFormatOptionsHasBeenSet() const { return m_displayFormatOptionsHasBeenSet; }
142 inline void SetDisplayFormatOptions(const DisplayFormatOptions& value) { m_displayFormatOptionsHasBeenSet = true; m_displayFormatOptions = value; }
143 inline void SetDisplayFormatOptions(DisplayFormatOptions&& value) { m_displayFormatOptionsHasBeenSet = true; m_displayFormatOptions = std::move(value); }
145 inline TopicIRMetric& WithDisplayFormatOptions(DisplayFormatOptions&& value) { SetDisplayFormatOptions(std::move(value)); return *this;}
147
149
152 inline const NamedEntityRef& GetNamedEntity() const{ return m_namedEntity; }
153 inline bool NamedEntityHasBeenSet() const { return m_namedEntityHasBeenSet; }
154 inline void SetNamedEntity(const NamedEntityRef& value) { m_namedEntityHasBeenSet = true; m_namedEntity = value; }
155 inline void SetNamedEntity(NamedEntityRef&& value) { m_namedEntityHasBeenSet = true; m_namedEntity = std::move(value); }
156 inline TopicIRMetric& WithNamedEntity(const NamedEntityRef& value) { SetNamedEntity(value); return *this;}
157 inline TopicIRMetric& WithNamedEntity(NamedEntityRef&& value) { SetNamedEntity(std::move(value)); return *this;}
159 private:
160
161 Identifier m_metricId;
162 bool m_metricIdHasBeenSet = false;
163
164 AggFunction m_function;
165 bool m_functionHasBeenSet = false;
166
167 Aws::Vector<Identifier> m_operands;
168 bool m_operandsHasBeenSet = false;
169
170 TopicIRComparisonMethod m_comparisonMethod;
171 bool m_comparisonMethodHasBeenSet = false;
172
173 Aws::String m_expression;
174 bool m_expressionHasBeenSet = false;
175
176 Aws::Vector<Identifier> m_calculatedFieldReferences;
177 bool m_calculatedFieldReferencesHasBeenSet = false;
178
179 DisplayFormat m_displayFormat;
180 bool m_displayFormatHasBeenSet = false;
181
182 DisplayFormatOptions m_displayFormatOptions;
183 bool m_displayFormatOptionsHasBeenSet = false;
184
185 NamedEntityRef m_namedEntity;
186 bool m_namedEntityHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace QuickSight
191} // namespace Aws
TopicIRMetric & WithFunction(const AggFunction &value)
TopicIRMetric & WithDisplayFormat(DisplayFormat &&value)
TopicIRMetric & WithDisplayFormatOptions(const DisplayFormatOptions &value)
void SetFunction(const AggFunction &value)
TopicIRMetric & AddOperands(Identifier &&value)
void SetFunction(AggFunction &&value)
const Aws::String & GetExpression() const
void SetNamedEntity(NamedEntityRef &&value)
void SetDisplayFormat(const DisplayFormat &value)
const Aws::Vector< Identifier > & GetCalculatedFieldReferences() const
void SetDisplayFormat(DisplayFormat &&value)
void SetOperands(const Aws::Vector< Identifier > &value)
void SetMetricId(Identifier &&value)
TopicIRMetric & WithOperands(const Aws::Vector< Identifier > &value)
AWS_QUICKSIGHT_API TopicIRMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
const TopicIRComparisonMethod & GetComparisonMethod() const
TopicIRMetric & WithDisplayFormatOptions(DisplayFormatOptions &&value)
TopicIRMetric & WithOperands(Aws::Vector< Identifier > &&value)
TopicIRMetric & WithCalculatedFieldReferences(Aws::Vector< Identifier > &&value)
void SetDisplayFormatOptions(DisplayFormatOptions &&value)
TopicIRMetric & WithComparisonMethod(TopicIRComparisonMethod &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
TopicIRMetric & WithMetricId(Identifier &&value)
const Identifier & GetMetricId() const
void SetNamedEntity(const NamedEntityRef &value)
TopicIRMetric & AddCalculatedFieldReferences(const Identifier &value)
const Aws::Vector< Identifier > & GetOperands() const
TopicIRMetric & WithMetricId(const Identifier &value)
void SetComparisonMethod(TopicIRComparisonMethod &&value)
void SetCalculatedFieldReferences(Aws::Vector< Identifier > &&value)
void SetExpression(const Aws::String &value)
TopicIRMetric & AddOperands(const Identifier &value)
TopicIRMetric & WithExpression(const char *value)
const NamedEntityRef & GetNamedEntity() const
TopicIRMetric & WithExpression(const Aws::String &value)
const DisplayFormat & GetDisplayFormat() const
void SetExpression(Aws::String &&value)
TopicIRMetric & WithNamedEntity(const NamedEntityRef &value)
TopicIRMetric & WithFunction(AggFunction &&value)
TopicIRMetric & WithCalculatedFieldReferences(const Aws::Vector< Identifier > &value)
const AggFunction & GetFunction() const
void SetOperands(Aws::Vector< Identifier > &&value)
void SetExpression(const char *value)
void SetComparisonMethod(const TopicIRComparisonMethod &value)
TopicIRMetric & AddCalculatedFieldReferences(Identifier &&value)
TopicIRMetric & WithNamedEntity(NamedEntityRef &&value)
void SetDisplayFormatOptions(const DisplayFormatOptions &value)
void SetMetricId(const Identifier &value)
const DisplayFormatOptions & GetDisplayFormatOptions() const
void SetCalculatedFieldReferences(const Aws::Vector< Identifier > &value)
TopicIRMetric & WithExpression(Aws::String &&value)
TopicIRMetric & WithDisplayFormat(const DisplayFormat &value)
TopicIRMetric & WithComparisonMethod(const TopicIRComparisonMethod &value)
AWS_QUICKSIGHT_API TopicIRMetric(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue