AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AggregationFunction.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/NumericalAggregationFunction.h>
9#include <aws/quicksight/model/CategoricalAggregationFunction.h>
10#include <aws/quicksight/model/DateAggregationFunction.h>
11#include <aws/quicksight/model/AttributeAggregationFunction.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QuickSight
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_QUICKSIGHT_API AggregationFunction() = default;
40 AWS_QUICKSIGHT_API AggregationFunction(Aws::Utils::Json::JsonView jsonValue);
42 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const NumericalAggregationFunction& GetNumericalAggregationFunction() const { return m_numericalAggregationFunction; }
50 inline bool NumericalAggregationFunctionHasBeenSet() const { return m_numericalAggregationFunctionHasBeenSet; }
51 template<typename NumericalAggregationFunctionT = NumericalAggregationFunction>
52 void SetNumericalAggregationFunction(NumericalAggregationFunctionT&& value) { m_numericalAggregationFunctionHasBeenSet = true; m_numericalAggregationFunction = std::forward<NumericalAggregationFunctionT>(value); }
53 template<typename NumericalAggregationFunctionT = NumericalAggregationFunction>
54 AggregationFunction& WithNumericalAggregationFunction(NumericalAggregationFunctionT&& value) { SetNumericalAggregationFunction(std::forward<NumericalAggregationFunctionT>(value)); return *this;}
56
58
64 inline CategoricalAggregationFunction GetCategoricalAggregationFunction() const { return m_categoricalAggregationFunction; }
65 inline bool CategoricalAggregationFunctionHasBeenSet() const { return m_categoricalAggregationFunctionHasBeenSet; }
66 inline void SetCategoricalAggregationFunction(CategoricalAggregationFunction value) { m_categoricalAggregationFunctionHasBeenSet = true; m_categoricalAggregationFunction = value; }
69
71
78 inline DateAggregationFunction GetDateAggregationFunction() const { return m_dateAggregationFunction; }
79 inline bool DateAggregationFunctionHasBeenSet() const { return m_dateAggregationFunctionHasBeenSet; }
80 inline void SetDateAggregationFunction(DateAggregationFunction value) { m_dateAggregationFunctionHasBeenSet = true; m_dateAggregationFunction = value; }
83
85
88 inline const AttributeAggregationFunction& GetAttributeAggregationFunction() const { return m_attributeAggregationFunction; }
89 inline bool AttributeAggregationFunctionHasBeenSet() const { return m_attributeAggregationFunctionHasBeenSet; }
90 template<typename AttributeAggregationFunctionT = AttributeAggregationFunction>
91 void SetAttributeAggregationFunction(AttributeAggregationFunctionT&& value) { m_attributeAggregationFunctionHasBeenSet = true; m_attributeAggregationFunction = std::forward<AttributeAggregationFunctionT>(value); }
92 template<typename AttributeAggregationFunctionT = AttributeAggregationFunction>
93 AggregationFunction& WithAttributeAggregationFunction(AttributeAggregationFunctionT&& value) { SetAttributeAggregationFunction(std::forward<AttributeAggregationFunctionT>(value)); return *this;}
95 private:
96
97 NumericalAggregationFunction m_numericalAggregationFunction;
98 bool m_numericalAggregationFunctionHasBeenSet = false;
99
101 bool m_categoricalAggregationFunctionHasBeenSet = false;
102
104 bool m_dateAggregationFunctionHasBeenSet = false;
105
106 AttributeAggregationFunction m_attributeAggregationFunction;
107 bool m_attributeAggregationFunctionHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace QuickSight
112} // 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