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>
54 template<
typename MetricIdT = Identifier>
55 void SetMetricId(MetricIdT&& value) { m_metricIdHasBeenSet =
true; m_metricId = std::forward<MetricIdT>(value); }
56 template<
typename MetricIdT = Identifier>
66 template<
typename FunctionT = AggFunction>
67 void SetFunction(FunctionT&& value) { m_functionHasBeenSet =
true; m_function = std::forward<FunctionT>(value); }
68 template<
typename FunctionT = AggFunction>
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>>
82 template<
typename OperandsT = Identifier>
83 TopicIRMetric&
AddOperands(OperandsT&& value) { m_operandsHasBeenSet =
true; m_operands.emplace_back(std::forward<OperandsT>(value));
return *
this; }
92 template<
typename ComparisonMethodT = TopicIRComparisonMethod>
93 void SetComparisonMethod(ComparisonMethodT&& value) { m_comparisonMethodHasBeenSet =
true; m_comparisonMethod = std::forward<ComparisonMethodT>(value); }
94 template<
typename ComparisonMethodT = TopicIRComparisonMethod>
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>
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>>
120 template<
typename CalculatedFieldReferencesT = Identifier>
121 TopicIRMetric&
AddCalculatedFieldReferences(CalculatedFieldReferencesT&& value) { m_calculatedFieldReferencesHasBeenSet =
true; m_calculatedFieldReferences.emplace_back(std::forward<CalculatedFieldReferencesT>(value));
return *
this; }
138 template<
typename DisplayFormatOptionsT = DisplayFormatOptions>
139 void SetDisplayFormatOptions(DisplayFormatOptionsT&& value) { m_displayFormatOptionsHasBeenSet =
true; m_displayFormatOptions = std::forward<DisplayFormatOptionsT>(value); }
140 template<
typename DisplayFormatOptionsT = DisplayFormatOptions>
150 template<
typename NamedEntityT = NamedEntityRef>
151 void SetNamedEntity(NamedEntityT&& value) { m_namedEntityHasBeenSet =
true; m_namedEntity = std::forward<NamedEntityT>(value); }
152 template<
typename NamedEntityT = NamedEntityRef>
158 bool m_metricIdHasBeenSet =
false;
161 bool m_functionHasBeenSet =
false;
164 bool m_operandsHasBeenSet =
false;
167 bool m_comparisonMethodHasBeenSet =
false;
170 bool m_expressionHasBeenSet =
false;
173 bool m_calculatedFieldReferencesHasBeenSet =
false;
176 bool m_displayFormatHasBeenSet =
false;
178 DisplayFormatOptions m_displayFormatOptions;
179 bool m_displayFormatOptionsHasBeenSet =
false;
181 NamedEntityRef m_namedEntity;
182 bool m_namedEntityHasBeenSet =
false;
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)
bool CalculatedFieldReferencesHasBeenSet() const
void SetNamedEntity(NamedEntityT &&value)
TopicIRMetric & WithCalculatedFieldReferences(CalculatedFieldReferencesT &&value)
const Aws::Vector< Identifier > & GetCalculatedFieldReferences() const
TopicIRMetric & WithNamedEntity(NamedEntityT &&value)
TopicIRMetric & AddCalculatedFieldReferences(CalculatedFieldReferencesT &&value)
bool MetricIdHasBeenSet() const
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
bool ComparisonMethodHasBeenSet() const
const Identifier & GetMetricId() const
void SetComparisonMethod(ComparisonMethodT &&value)
const Aws::Vector< Identifier > & GetOperands() const
bool DisplayFormatHasBeenSet() const
TopicIRMetric & WithMetricId(MetricIdT &&value)
DisplayFormat GetDisplayFormat() const
TopicIRMetric & WithFunction(FunctionT &&value)
void SetCalculatedFieldReferences(CalculatedFieldReferencesT &&value)
const NamedEntityRef & GetNamedEntity() const
bool ExpressionHasBeenSet() const
const AggFunction & GetFunction() const
void SetFunction(FunctionT &&value)
bool NamedEntityHasBeenSet() const
bool FunctionHasBeenSet() const
AWS_QUICKSIGHT_API TopicIRMetric()=default
bool DisplayFormatOptionsHasBeenSet() const
const DisplayFormatOptions & GetDisplayFormatOptions() const
void SetOperands(OperandsT &&value)
bool OperandsHasBeenSet() const
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