AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
DateMeasureField.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/DateAggregationFunction.h>
11#include <aws/quicksight/model/DateTimeFormatConfiguration.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
31 public:
32 AWS_QUICKSIGHT_API DateMeasureField() = default;
33 AWS_QUICKSIGHT_API DateMeasureField(Aws::Utils::Json::JsonView jsonValue);
35 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetFieldId() const { return m_fieldId; }
42 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
43 template <typename FieldIdT = Aws::String>
44 void SetFieldId(FieldIdT&& value) {
45 m_fieldIdHasBeenSet = true;
46 m_fieldId = std::forward<FieldIdT>(value);
47 }
48 template <typename FieldIdT = Aws::String>
49 DateMeasureField& WithFieldId(FieldIdT&& value) {
50 SetFieldId(std::forward<FieldIdT>(value));
51 return *this;
52 }
54
56
59 inline const ColumnIdentifier& GetColumn() const { return m_column; }
60 inline bool ColumnHasBeenSet() const { return m_columnHasBeenSet; }
61 template <typename ColumnT = ColumnIdentifier>
62 void SetColumn(ColumnT&& value) {
63 m_columnHasBeenSet = true;
64 m_column = std::forward<ColumnT>(value);
65 }
66 template <typename ColumnT = ColumnIdentifier>
67 DateMeasureField& WithColumn(ColumnT&& value) {
68 SetColumn(std::forward<ColumnT>(value));
69 return *this;
70 }
72
74
77 inline DateAggregationFunction GetAggregationFunction() const { return m_aggregationFunction; }
78 inline bool AggregationFunctionHasBeenSet() const { return m_aggregationFunctionHasBeenSet; }
80 m_aggregationFunctionHasBeenSet = true;
81 m_aggregationFunction = value;
82 }
85 return *this;
86 }
88
90
93 inline const DateTimeFormatConfiguration& GetFormatConfiguration() const { return m_formatConfiguration; }
94 inline bool FormatConfigurationHasBeenSet() const { return m_formatConfigurationHasBeenSet; }
95 template <typename FormatConfigurationT = DateTimeFormatConfiguration>
96 void SetFormatConfiguration(FormatConfigurationT&& value) {
97 m_formatConfigurationHasBeenSet = true;
98 m_formatConfiguration = std::forward<FormatConfigurationT>(value);
99 }
100 template <typename FormatConfigurationT = DateTimeFormatConfiguration>
101 DateMeasureField& WithFormatConfiguration(FormatConfigurationT&& value) {
102 SetFormatConfiguration(std::forward<FormatConfigurationT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_fieldId;
108
109 ColumnIdentifier m_column;
110
112
113 DateTimeFormatConfiguration m_formatConfiguration;
114 bool m_fieldIdHasBeenSet = false;
115 bool m_columnHasBeenSet = false;
116 bool m_aggregationFunctionHasBeenSet = false;
117 bool m_formatConfigurationHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace QuickSight
122} // namespace Aws
const ColumnIdentifier & GetColumn() const
DateMeasureField & WithFieldId(FieldIdT &&value)
AWS_QUICKSIGHT_API DateMeasureField(Aws::Utils::Json::JsonView jsonValue)
const DateTimeFormatConfiguration & GetFormatConfiguration() const
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
DateMeasureField & WithAggregationFunction(DateAggregationFunction value)
AWS_QUICKSIGHT_API DateMeasureField & operator=(Aws::Utils::Json::JsonView jsonValue)
DateAggregationFunction GetAggregationFunction() const
const Aws::String & GetFieldId() const
void SetFormatConfiguration(FormatConfigurationT &&value)
DateMeasureField & WithFormatConfiguration(FormatConfigurationT &&value)
AWS_QUICKSIGHT_API DateMeasureField()=default
void SetAggregationFunction(DateAggregationFunction value)
DateMeasureField & WithColumn(ColumnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue