AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
NumericalMeasureField.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/quicksight/model/ColumnIdentifier.h>
10#include <aws/quicksight/model/NumericalAggregationFunction.h>
11#include <aws/quicksight/model/NumberFormatConfiguration.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
36 {
37 public:
38 AWS_QUICKSIGHT_API NumericalMeasureField() = default;
41 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetFieldId() const { return m_fieldId; }
49 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
50 template<typename FieldIdT = Aws::String>
51 void SetFieldId(FieldIdT&& value) { m_fieldIdHasBeenSet = true; m_fieldId = std::forward<FieldIdT>(value); }
52 template<typename FieldIdT = Aws::String>
53 NumericalMeasureField& WithFieldId(FieldIdT&& value) { SetFieldId(std::forward<FieldIdT>(value)); return *this;}
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) { m_columnHasBeenSet = true; m_column = std::forward<ColumnT>(value); }
64 template<typename ColumnT = ColumnIdentifier>
65 NumericalMeasureField& WithColumn(ColumnT&& value) { SetColumn(std::forward<ColumnT>(value)); return *this;}
67
69
72 inline const NumericalAggregationFunction& GetAggregationFunction() const { return m_aggregationFunction; }
73 inline bool AggregationFunctionHasBeenSet() const { return m_aggregationFunctionHasBeenSet; }
74 template<typename AggregationFunctionT = NumericalAggregationFunction>
75 void SetAggregationFunction(AggregationFunctionT&& value) { m_aggregationFunctionHasBeenSet = true; m_aggregationFunction = std::forward<AggregationFunctionT>(value); }
76 template<typename AggregationFunctionT = NumericalAggregationFunction>
77 NumericalMeasureField& WithAggregationFunction(AggregationFunctionT&& value) { SetAggregationFunction(std::forward<AggregationFunctionT>(value)); return *this;}
79
81
84 inline const NumberFormatConfiguration& GetFormatConfiguration() const { return m_formatConfiguration; }
85 inline bool FormatConfigurationHasBeenSet() const { return m_formatConfigurationHasBeenSet; }
86 template<typename FormatConfigurationT = NumberFormatConfiguration>
87 void SetFormatConfiguration(FormatConfigurationT&& value) { m_formatConfigurationHasBeenSet = true; m_formatConfiguration = std::forward<FormatConfigurationT>(value); }
88 template<typename FormatConfigurationT = NumberFormatConfiguration>
89 NumericalMeasureField& WithFormatConfiguration(FormatConfigurationT&& value) { SetFormatConfiguration(std::forward<FormatConfigurationT>(value)); return *this;}
91 private:
92
93 Aws::String m_fieldId;
94 bool m_fieldIdHasBeenSet = false;
95
96 ColumnIdentifier m_column;
97 bool m_columnHasBeenSet = false;
98
99 NumericalAggregationFunction m_aggregationFunction;
100 bool m_aggregationFunctionHasBeenSet = false;
101
102 NumberFormatConfiguration m_formatConfiguration;
103 bool m_formatConfigurationHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace QuickSight
108} // 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