AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
NumericalMeasureField.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/ColumnIdentifier.h>
10#include <aws/quicksight/model/NumberFormatConfiguration.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
32 public:
33 AWS_QUICKSIGHT_API NumericalMeasureField() = default;
36 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetFieldId() const { return m_fieldId; }
43 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
44 template <typename FieldIdT = Aws::String>
45 void SetFieldId(FieldIdT&& value) {
46 m_fieldIdHasBeenSet = true;
47 m_fieldId = std::forward<FieldIdT>(value);
48 }
49 template <typename FieldIdT = Aws::String>
51 SetFieldId(std::forward<FieldIdT>(value));
52 return *this;
53 }
55
57
60 inline const ColumnIdentifier& GetColumn() const { return m_column; }
61 inline bool ColumnHasBeenSet() const { return m_columnHasBeenSet; }
62 template <typename ColumnT = ColumnIdentifier>
63 void SetColumn(ColumnT&& value) {
64 m_columnHasBeenSet = true;
65 m_column = std::forward<ColumnT>(value);
66 }
67 template <typename ColumnT = ColumnIdentifier>
69 SetColumn(std::forward<ColumnT>(value));
70 return *this;
71 }
73
75
78 inline const NumericalAggregationFunction& GetAggregationFunction() const { return m_aggregationFunction; }
79 inline bool AggregationFunctionHasBeenSet() const { return m_aggregationFunctionHasBeenSet; }
80 template <typename AggregationFunctionT = NumericalAggregationFunction>
81 void SetAggregationFunction(AggregationFunctionT&& value) {
82 m_aggregationFunctionHasBeenSet = true;
83 m_aggregationFunction = std::forward<AggregationFunctionT>(value);
84 }
85 template <typename AggregationFunctionT = NumericalAggregationFunction>
86 NumericalMeasureField& WithAggregationFunction(AggregationFunctionT&& value) {
87 SetAggregationFunction(std::forward<AggregationFunctionT>(value));
88 return *this;
89 }
91
93
96 inline const NumberFormatConfiguration& GetFormatConfiguration() const { return m_formatConfiguration; }
97 inline bool FormatConfigurationHasBeenSet() const { return m_formatConfigurationHasBeenSet; }
98 template <typename FormatConfigurationT = NumberFormatConfiguration>
99 void SetFormatConfiguration(FormatConfigurationT&& value) {
100 m_formatConfigurationHasBeenSet = true;
101 m_formatConfiguration = std::forward<FormatConfigurationT>(value);
102 }
103 template <typename FormatConfigurationT = NumberFormatConfiguration>
104 NumericalMeasureField& WithFormatConfiguration(FormatConfigurationT&& value) {
105 SetFormatConfiguration(std::forward<FormatConfigurationT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_fieldId;
111
112 ColumnIdentifier m_column;
113
114 NumericalAggregationFunction m_aggregationFunction;
115
116 NumberFormatConfiguration m_formatConfiguration;
117 bool m_fieldIdHasBeenSet = false;
118 bool m_columnHasBeenSet = false;
119 bool m_aggregationFunctionHasBeenSet = false;
120 bool m_formatConfigurationHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace QuickSight
125} // namespace Aws
const NumberFormatConfiguration & GetFormatConfiguration() const
void SetAggregationFunction(AggregationFunctionT &&value)
AWS_QUICKSIGHT_API NumericalMeasureField & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
NumericalMeasureField & WithColumn(ColumnT &&value)
NumericalMeasureField & WithFieldId(FieldIdT &&value)
const NumericalAggregationFunction & GetAggregationFunction() const
void SetFormatConfiguration(FormatConfigurationT &&value)
NumericalMeasureField & WithAggregationFunction(AggregationFunctionT &&value)
AWS_QUICKSIGHT_API NumericalMeasureField()=default
NumericalMeasureField & WithFormatConfiguration(FormatConfigurationT &&value)
AWS_QUICKSIGHT_API NumericalMeasureField(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue