AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AggregationFunction.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/AttributeAggregationFunction.h>
9#include <aws/quicksight/model/CategoricalAggregationFunction.h>
10#include <aws/quicksight/model/DateAggregationFunction.h>
11#include <aws/quicksight/model/NumericalAggregationFunction.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QuickSight {
23namespace Model {
24
33 public:
34 AWS_QUICKSIGHT_API AggregationFunction() = default;
35 AWS_QUICKSIGHT_API AggregationFunction(Aws::Utils::Json::JsonView jsonValue);
37 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const NumericalAggregationFunction& GetNumericalAggregationFunction() const { return m_numericalAggregationFunction; }
44 inline bool NumericalAggregationFunctionHasBeenSet() const { return m_numericalAggregationFunctionHasBeenSet; }
45 template <typename NumericalAggregationFunctionT = NumericalAggregationFunction>
46 void SetNumericalAggregationFunction(NumericalAggregationFunctionT&& value) {
47 m_numericalAggregationFunctionHasBeenSet = true;
48 m_numericalAggregationFunction = std::forward<NumericalAggregationFunctionT>(value);
49 }
50 template <typename NumericalAggregationFunctionT = NumericalAggregationFunction>
51 AggregationFunction& WithNumericalAggregationFunction(NumericalAggregationFunctionT&& value) {
52 SetNumericalAggregationFunction(std::forward<NumericalAggregationFunctionT>(value));
53 return *this;
54 }
56
58
64 inline CategoricalAggregationFunction GetCategoricalAggregationFunction() const { return m_categoricalAggregationFunction; }
65 inline bool CategoricalAggregationFunctionHasBeenSet() const { return m_categoricalAggregationFunctionHasBeenSet; }
67 m_categoricalAggregationFunctionHasBeenSet = true;
68 m_categoricalAggregationFunction = value;
69 }
72 return *this;
73 }
75
77
84 inline DateAggregationFunction GetDateAggregationFunction() const { return m_dateAggregationFunction; }
85 inline bool DateAggregationFunctionHasBeenSet() const { return m_dateAggregationFunctionHasBeenSet; }
87 m_dateAggregationFunctionHasBeenSet = true;
88 m_dateAggregationFunction = value;
89 }
92 return *this;
93 }
95
97
100 inline const AttributeAggregationFunction& GetAttributeAggregationFunction() const { return m_attributeAggregationFunction; }
101 inline bool AttributeAggregationFunctionHasBeenSet() const { return m_attributeAggregationFunctionHasBeenSet; }
102 template <typename AttributeAggregationFunctionT = AttributeAggregationFunction>
103 void SetAttributeAggregationFunction(AttributeAggregationFunctionT&& value) {
104 m_attributeAggregationFunctionHasBeenSet = true;
105 m_attributeAggregationFunction = std::forward<AttributeAggregationFunctionT>(value);
106 }
107 template <typename AttributeAggregationFunctionT = AttributeAggregationFunction>
108 AggregationFunction& WithAttributeAggregationFunction(AttributeAggregationFunctionT&& value) {
109 SetAttributeAggregationFunction(std::forward<AttributeAggregationFunctionT>(value));
110 return *this;
111 }
113 private:
114 NumericalAggregationFunction m_numericalAggregationFunction;
115
117
119
120 AttributeAggregationFunction m_attributeAggregationFunction;
121 bool m_numericalAggregationFunctionHasBeenSet = false;
122 bool m_categoricalAggregationFunctionHasBeenSet = false;
123 bool m_dateAggregationFunctionHasBeenSet = false;
124 bool m_attributeAggregationFunctionHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace QuickSight
129} // namespace Aws
void SetNumericalAggregationFunction(NumericalAggregationFunctionT &&value)
AWS_QUICKSIGHT_API AggregationFunction & operator=(Aws::Utils::Json::JsonView jsonValue)
AggregationFunction & WithAttributeAggregationFunction(AttributeAggregationFunctionT &&value)
AggregationFunction & WithCategoricalAggregationFunction(CategoricalAggregationFunction value)
const AttributeAggregationFunction & GetAttributeAggregationFunction() const
CategoricalAggregationFunction GetCategoricalAggregationFunction() const
void SetCategoricalAggregationFunction(CategoricalAggregationFunction value)
void SetDateAggregationFunction(DateAggregationFunction value)
AWS_QUICKSIGHT_API AggregationFunction(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API AggregationFunction()=default
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AggregationFunction & WithDateAggregationFunction(DateAggregationFunction value)
DateAggregationFunction GetDateAggregationFunction() const
AggregationFunction & WithNumericalAggregationFunction(NumericalAggregationFunctionT &&value)
const NumericalAggregationFunction & GetNumericalAggregationFunction() const
void SetAttributeAggregationFunction(AttributeAggregationFunctionT &&value)
Aws::Utils::Json::JsonValue JsonValue