AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CategoricalMeasureField.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/CategoricalAggregationFunction.h>
11#include <aws/quicksight/model/StringFormatConfiguration.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 CategoricalMeasureField() = 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 CategoricalMeasureField& 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 CategoricalMeasureField& WithColumn(ColumnT&& value) { SetColumn(std::forward<ColumnT>(value)); return *this;}
67
69
72 inline CategoricalAggregationFunction GetAggregationFunction() const { return m_aggregationFunction; }
73 inline bool AggregationFunctionHasBeenSet() const { return m_aggregationFunctionHasBeenSet; }
74 inline void SetAggregationFunction(CategoricalAggregationFunction value) { m_aggregationFunctionHasBeenSet = true; m_aggregationFunction = value; }
77
79
82 inline const StringFormatConfiguration& GetFormatConfiguration() const { return m_formatConfiguration; }
83 inline bool FormatConfigurationHasBeenSet() const { return m_formatConfigurationHasBeenSet; }
84 template<typename FormatConfigurationT = StringFormatConfiguration>
85 void SetFormatConfiguration(FormatConfigurationT&& value) { m_formatConfigurationHasBeenSet = true; m_formatConfiguration = std::forward<FormatConfigurationT>(value); }
86 template<typename FormatConfigurationT = StringFormatConfiguration>
87 CategoricalMeasureField& WithFormatConfiguration(FormatConfigurationT&& value) { SetFormatConfiguration(std::forward<FormatConfigurationT>(value)); return *this;}
89 private:
90
91 Aws::String m_fieldId;
92 bool m_fieldIdHasBeenSet = false;
93
94 ColumnIdentifier m_column;
95 bool m_columnHasBeenSet = false;
96
98 bool m_aggregationFunctionHasBeenSet = false;
99
100 StringFormatConfiguration m_formatConfiguration;
101 bool m_formatConfigurationHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace QuickSight
106} // 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