AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
CategoricalMeasureField.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/CategoricalAggregationFunction.h>
10#include <aws/quicksight/model/ColumnIdentifier.h>
11#include <aws/quicksight/model/StringFormatConfiguration.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 CategoricalMeasureField() = 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 CategoricalAggregationFunction GetAggregationFunction() const { return m_aggregationFunction; }
79 inline bool AggregationFunctionHasBeenSet() const { return m_aggregationFunctionHasBeenSet; }
81 m_aggregationFunctionHasBeenSet = true;
82 m_aggregationFunction = value;
83 }
86 return *this;
87 }
89
91
94 inline const StringFormatConfiguration& GetFormatConfiguration() const { return m_formatConfiguration; }
95 inline bool FormatConfigurationHasBeenSet() const { return m_formatConfigurationHasBeenSet; }
96 template <typename FormatConfigurationT = StringFormatConfiguration>
97 void SetFormatConfiguration(FormatConfigurationT&& value) {
98 m_formatConfigurationHasBeenSet = true;
99 m_formatConfiguration = std::forward<FormatConfigurationT>(value);
100 }
101 template <typename FormatConfigurationT = StringFormatConfiguration>
102 CategoricalMeasureField& WithFormatConfiguration(FormatConfigurationT&& value) {
103 SetFormatConfiguration(std::forward<FormatConfigurationT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_fieldId;
109
110 ColumnIdentifier m_column;
111
113
114 StringFormatConfiguration m_formatConfiguration;
115 bool m_fieldIdHasBeenSet = false;
116 bool m_columnHasBeenSet = false;
117 bool m_aggregationFunctionHasBeenSet = false;
118 bool m_formatConfigurationHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace QuickSight
123} // namespace Aws
CategoricalMeasureField & WithAggregationFunction(CategoricalAggregationFunction value)
AWS_QUICKSIGHT_API CategoricalMeasureField()=default
void SetAggregationFunction(CategoricalAggregationFunction value)
CategoricalMeasureField & WithFormatConfiguration(FormatConfigurationT &&value)
CategoricalAggregationFunction GetAggregationFunction() const
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
CategoricalMeasureField & WithFieldId(FieldIdT &&value)
void SetFormatConfiguration(FormatConfigurationT &&value)
const StringFormatConfiguration & GetFormatConfiguration() const
CategoricalMeasureField & WithColumn(ColumnT &&value)
AWS_QUICKSIGHT_API CategoricalMeasureField & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API CategoricalMeasureField(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue