AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
TopicIRMetric.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/AggFunction.h>
11#include <aws/quicksight/model/DisplayFormat.h>
12#include <aws/quicksight/model/DisplayFormatOptions.h>
13#include <aws/quicksight/model/Identifier.h>
14#include <aws/quicksight/model/NamedEntityRef.h>
15#include <aws/quicksight/model/TopicIRComparisonMethod.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace QuickSight {
27namespace Model {
28
36 public:
37 AWS_QUICKSIGHT_API TopicIRMetric() = default;
38 AWS_QUICKSIGHT_API TopicIRMetric(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QUICKSIGHT_API TopicIRMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Identifier& GetMetricId() const { return m_metricId; }
47 inline bool MetricIdHasBeenSet() const { return m_metricIdHasBeenSet; }
48 template <typename MetricIdT = Identifier>
49 void SetMetricId(MetricIdT&& value) {
50 m_metricIdHasBeenSet = true;
51 m_metricId = std::forward<MetricIdT>(value);
52 }
53 template <typename MetricIdT = Identifier>
54 TopicIRMetric& WithMetricId(MetricIdT&& value) {
55 SetMetricId(std::forward<MetricIdT>(value));
56 return *this;
57 }
59
61
64 inline const AggFunction& GetFunction() const { return m_function; }
65 inline bool FunctionHasBeenSet() const { return m_functionHasBeenSet; }
66 template <typename FunctionT = AggFunction>
67 void SetFunction(FunctionT&& value) {
68 m_functionHasBeenSet = true;
69 m_function = std::forward<FunctionT>(value);
70 }
71 template <typename FunctionT = AggFunction>
72 TopicIRMetric& WithFunction(FunctionT&& value) {
73 SetFunction(std::forward<FunctionT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Vector<Identifier>& GetOperands() const { return m_operands; }
83 inline bool OperandsHasBeenSet() const { return m_operandsHasBeenSet; }
84 template <typename OperandsT = Aws::Vector<Identifier>>
85 void SetOperands(OperandsT&& value) {
86 m_operandsHasBeenSet = true;
87 m_operands = std::forward<OperandsT>(value);
88 }
89 template <typename OperandsT = Aws::Vector<Identifier>>
90 TopicIRMetric& WithOperands(OperandsT&& value) {
91 SetOperands(std::forward<OperandsT>(value));
92 return *this;
93 }
94 template <typename OperandsT = Identifier>
95 TopicIRMetric& AddOperands(OperandsT&& value) {
96 m_operandsHasBeenSet = true;
97 m_operands.emplace_back(std::forward<OperandsT>(value));
98 return *this;
99 }
101
103
106 inline const TopicIRComparisonMethod& GetComparisonMethod() const { return m_comparisonMethod; }
107 inline bool ComparisonMethodHasBeenSet() const { return m_comparisonMethodHasBeenSet; }
108 template <typename ComparisonMethodT = TopicIRComparisonMethod>
109 void SetComparisonMethod(ComparisonMethodT&& value) {
110 m_comparisonMethodHasBeenSet = true;
111 m_comparisonMethod = std::forward<ComparisonMethodT>(value);
112 }
113 template <typename ComparisonMethodT = TopicIRComparisonMethod>
114 TopicIRMetric& WithComparisonMethod(ComparisonMethodT&& value) {
115 SetComparisonMethod(std::forward<ComparisonMethodT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetExpression() const { return m_expression; }
125 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
126 template <typename ExpressionT = Aws::String>
127 void SetExpression(ExpressionT&& value) {
128 m_expressionHasBeenSet = true;
129 m_expression = std::forward<ExpressionT>(value);
130 }
131 template <typename ExpressionT = Aws::String>
132 TopicIRMetric& WithExpression(ExpressionT&& value) {
133 SetExpression(std::forward<ExpressionT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::Vector<Identifier>& GetCalculatedFieldReferences() const { return m_calculatedFieldReferences; }
143 inline bool CalculatedFieldReferencesHasBeenSet() const { return m_calculatedFieldReferencesHasBeenSet; }
144 template <typename CalculatedFieldReferencesT = Aws::Vector<Identifier>>
145 void SetCalculatedFieldReferences(CalculatedFieldReferencesT&& value) {
146 m_calculatedFieldReferencesHasBeenSet = true;
147 m_calculatedFieldReferences = std::forward<CalculatedFieldReferencesT>(value);
148 }
149 template <typename CalculatedFieldReferencesT = Aws::Vector<Identifier>>
150 TopicIRMetric& WithCalculatedFieldReferences(CalculatedFieldReferencesT&& value) {
151 SetCalculatedFieldReferences(std::forward<CalculatedFieldReferencesT>(value));
152 return *this;
153 }
154 template <typename CalculatedFieldReferencesT = Identifier>
155 TopicIRMetric& AddCalculatedFieldReferences(CalculatedFieldReferencesT&& value) {
156 m_calculatedFieldReferencesHasBeenSet = true;
157 m_calculatedFieldReferences.emplace_back(std::forward<CalculatedFieldReferencesT>(value));
158 return *this;
159 }
161
163
166 inline DisplayFormat GetDisplayFormat() const { return m_displayFormat; }
167 inline bool DisplayFormatHasBeenSet() const { return m_displayFormatHasBeenSet; }
168 inline void SetDisplayFormat(DisplayFormat value) {
169 m_displayFormatHasBeenSet = true;
170 m_displayFormat = value;
171 }
173 SetDisplayFormat(value);
174 return *this;
175 }
177
179
180 inline const DisplayFormatOptions& GetDisplayFormatOptions() const { return m_displayFormatOptions; }
181 inline bool DisplayFormatOptionsHasBeenSet() const { return m_displayFormatOptionsHasBeenSet; }
182 template <typename DisplayFormatOptionsT = DisplayFormatOptions>
183 void SetDisplayFormatOptions(DisplayFormatOptionsT&& value) {
184 m_displayFormatOptionsHasBeenSet = true;
185 m_displayFormatOptions = std::forward<DisplayFormatOptionsT>(value);
186 }
187 template <typename DisplayFormatOptionsT = DisplayFormatOptions>
188 TopicIRMetric& WithDisplayFormatOptions(DisplayFormatOptionsT&& value) {
189 SetDisplayFormatOptions(std::forward<DisplayFormatOptionsT>(value));
190 return *this;
191 }
193
195
198 inline const NamedEntityRef& GetNamedEntity() const { return m_namedEntity; }
199 inline bool NamedEntityHasBeenSet() const { return m_namedEntityHasBeenSet; }
200 template <typename NamedEntityT = NamedEntityRef>
201 void SetNamedEntity(NamedEntityT&& value) {
202 m_namedEntityHasBeenSet = true;
203 m_namedEntity = std::forward<NamedEntityT>(value);
204 }
205 template <typename NamedEntityT = NamedEntityRef>
206 TopicIRMetric& WithNamedEntity(NamedEntityT&& value) {
207 SetNamedEntity(std::forward<NamedEntityT>(value));
208 return *this;
209 }
211 private:
212 Identifier m_metricId;
213
214 AggFunction m_function;
215
216 Aws::Vector<Identifier> m_operands;
217
218 TopicIRComparisonMethod m_comparisonMethod;
219
220 Aws::String m_expression;
221
222 Aws::Vector<Identifier> m_calculatedFieldReferences;
223
224 DisplayFormat m_displayFormat{DisplayFormat::NOT_SET};
225
226 DisplayFormatOptions m_displayFormatOptions;
227
228 NamedEntityRef m_namedEntity;
229 bool m_metricIdHasBeenSet = false;
230 bool m_functionHasBeenSet = false;
231 bool m_operandsHasBeenSet = false;
232 bool m_comparisonMethodHasBeenSet = false;
233 bool m_expressionHasBeenSet = false;
234 bool m_calculatedFieldReferencesHasBeenSet = false;
235 bool m_displayFormatHasBeenSet = false;
236 bool m_displayFormatOptionsHasBeenSet = false;
237 bool m_namedEntityHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace QuickSight
242} // namespace Aws
void SetExpression(ExpressionT &&value)
void SetDisplayFormat(DisplayFormat value)
void SetDisplayFormatOptions(DisplayFormatOptionsT &&value)
TopicIRMetric & WithOperands(OperandsT &&value)
const Aws::String & GetExpression() const
TopicIRMetric & WithExpression(ExpressionT &&value)
void SetNamedEntity(NamedEntityT &&value)
TopicIRMetric & WithCalculatedFieldReferences(CalculatedFieldReferencesT &&value)
const Aws::Vector< Identifier > & GetCalculatedFieldReferences() const
TopicIRMetric & WithNamedEntity(NamedEntityT &&value)
TopicIRMetric & AddCalculatedFieldReferences(CalculatedFieldReferencesT &&value)
AWS_QUICKSIGHT_API TopicIRMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
TopicIRMetric & WithDisplayFormat(DisplayFormat value)
const TopicIRComparisonMethod & GetComparisonMethod() const
TopicIRMetric & AddOperands(OperandsT &&value)
TopicIRMetric & WithDisplayFormatOptions(DisplayFormatOptionsT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const Identifier & GetMetricId() const
void SetComparisonMethod(ComparisonMethodT &&value)
const Aws::Vector< Identifier > & GetOperands() const
TopicIRMetric & WithMetricId(MetricIdT &&value)
TopicIRMetric & WithFunction(FunctionT &&value)
void SetCalculatedFieldReferences(CalculatedFieldReferencesT &&value)
const NamedEntityRef & GetNamedEntity() const
const AggFunction & GetFunction() const
void SetFunction(FunctionT &&value)
AWS_QUICKSIGHT_API TopicIRMetric()=default
const DisplayFormatOptions & GetDisplayFormatOptions() const
void SetOperands(OperandsT &&value)
TopicIRMetric & WithComparisonMethod(ComparisonMethodT &&value)
void SetMetricId(MetricIdT &&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