AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename MetricIdT = Identifier>
55 void SetMetricId(MetricIdT&& value) { m_metricIdHasBeenSet = true; m_metricId = std::forward<MetricIdT>(value); }
56 template<typename MetricIdT = Identifier>
57 TopicIRMetric& WithMetricId(MetricIdT&& value) { SetMetricId(std::forward<MetricIdT>(value)); return *this;}
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) { m_functionHasBeenSet = true; m_function = std::forward<FunctionT>(value); }
68 template<typename FunctionT = AggFunction>
69 TopicIRMetric& WithFunction(FunctionT&& value) { SetFunction(std::forward<FunctionT>(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 template<typename OperandsT = Aws::Vector<Identifier>>
79 void SetOperands(OperandsT&& value) { m_operandsHasBeenSet = true; m_operands = std::forward<OperandsT>(value); }
80 template<typename OperandsT = Aws::Vector<Identifier>>
81 TopicIRMetric& WithOperands(OperandsT&& value) { SetOperands(std::forward<OperandsT>(value)); return *this;}
82 template<typename OperandsT = Identifier>
83 TopicIRMetric& AddOperands(OperandsT&& value) { m_operandsHasBeenSet = true; m_operands.emplace_back(std::forward<OperandsT>(value)); return *this; }
85
87
90 inline const TopicIRComparisonMethod& GetComparisonMethod() const { return m_comparisonMethod; }
91 inline bool ComparisonMethodHasBeenSet() const { return m_comparisonMethodHasBeenSet; }
92 template<typename ComparisonMethodT = TopicIRComparisonMethod>
93 void SetComparisonMethod(ComparisonMethodT&& value) { m_comparisonMethodHasBeenSet = true; m_comparisonMethod = std::forward<ComparisonMethodT>(value); }
94 template<typename ComparisonMethodT = TopicIRComparisonMethod>
95 TopicIRMetric& WithComparisonMethod(ComparisonMethodT&& value) { SetComparisonMethod(std::forward<ComparisonMethodT>(value)); return *this;}
97
99
102 inline const Aws::String& GetExpression() const { return m_expression; }
103 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
104 template<typename ExpressionT = Aws::String>
105 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
106 template<typename ExpressionT = Aws::String>
107 TopicIRMetric& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
109
111
114 inline const Aws::Vector<Identifier>& GetCalculatedFieldReferences() const { return m_calculatedFieldReferences; }
115 inline bool CalculatedFieldReferencesHasBeenSet() const { return m_calculatedFieldReferencesHasBeenSet; }
116 template<typename CalculatedFieldReferencesT = Aws::Vector<Identifier>>
117 void SetCalculatedFieldReferences(CalculatedFieldReferencesT&& value) { m_calculatedFieldReferencesHasBeenSet = true; m_calculatedFieldReferences = std::forward<CalculatedFieldReferencesT>(value); }
118 template<typename CalculatedFieldReferencesT = Aws::Vector<Identifier>>
119 TopicIRMetric& WithCalculatedFieldReferences(CalculatedFieldReferencesT&& value) { SetCalculatedFieldReferences(std::forward<CalculatedFieldReferencesT>(value)); return *this;}
120 template<typename CalculatedFieldReferencesT = Identifier>
121 TopicIRMetric& AddCalculatedFieldReferences(CalculatedFieldReferencesT&& value) { m_calculatedFieldReferencesHasBeenSet = true; m_calculatedFieldReferences.emplace_back(std::forward<CalculatedFieldReferencesT>(value)); return *this; }
123
125
128 inline DisplayFormat GetDisplayFormat() const { return m_displayFormat; }
129 inline bool DisplayFormatHasBeenSet() const { return m_displayFormatHasBeenSet; }
130 inline void SetDisplayFormat(DisplayFormat value) { m_displayFormatHasBeenSet = true; m_displayFormat = value; }
131 inline TopicIRMetric& WithDisplayFormat(DisplayFormat value) { SetDisplayFormat(value); return *this;}
133
135
136 inline const DisplayFormatOptions& GetDisplayFormatOptions() const { return m_displayFormatOptions; }
137 inline bool DisplayFormatOptionsHasBeenSet() const { return m_displayFormatOptionsHasBeenSet; }
138 template<typename DisplayFormatOptionsT = DisplayFormatOptions>
139 void SetDisplayFormatOptions(DisplayFormatOptionsT&& value) { m_displayFormatOptionsHasBeenSet = true; m_displayFormatOptions = std::forward<DisplayFormatOptionsT>(value); }
140 template<typename DisplayFormatOptionsT = DisplayFormatOptions>
141 TopicIRMetric& WithDisplayFormatOptions(DisplayFormatOptionsT&& value) { SetDisplayFormatOptions(std::forward<DisplayFormatOptionsT>(value)); return *this;}
143
145
148 inline const NamedEntityRef& GetNamedEntity() const { return m_namedEntity; }
149 inline bool NamedEntityHasBeenSet() const { return m_namedEntityHasBeenSet; }
150 template<typename NamedEntityT = NamedEntityRef>
151 void SetNamedEntity(NamedEntityT&& value) { m_namedEntityHasBeenSet = true; m_namedEntity = std::forward<NamedEntityT>(value); }
152 template<typename NamedEntityT = NamedEntityRef>
153 TopicIRMetric& WithNamedEntity(NamedEntityT&& value) { SetNamedEntity(std::forward<NamedEntityT>(value)); return *this;}
155 private:
156
157 Identifier m_metricId;
158 bool m_metricIdHasBeenSet = false;
159
160 AggFunction m_function;
161 bool m_functionHasBeenSet = false;
162
163 Aws::Vector<Identifier> m_operands;
164 bool m_operandsHasBeenSet = false;
165
166 TopicIRComparisonMethod m_comparisonMethod;
167 bool m_comparisonMethodHasBeenSet = false;
168
169 Aws::String m_expression;
170 bool m_expressionHasBeenSet = false;
171
172 Aws::Vector<Identifier> m_calculatedFieldReferences;
173 bool m_calculatedFieldReferencesHasBeenSet = false;
174
175 DisplayFormat m_displayFormat{DisplayFormat::NOT_SET};
176 bool m_displayFormatHasBeenSet = false;
177
178 DisplayFormatOptions m_displayFormatOptions;
179 bool m_displayFormatOptionsHasBeenSet = false;
180
181 NamedEntityRef m_namedEntity;
182 bool m_namedEntityHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace QuickSight
187} // 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