AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DateMeasureField.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/DateAggregationFunction.h>
11#include <aws/quicksight/model/DateTimeFormatConfiguration.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
35 {
36 public:
37 AWS_QUICKSIGHT_API DateMeasureField() = default;
38 AWS_QUICKSIGHT_API DateMeasureField(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetFieldId() const { return m_fieldId; }
48 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
49 template<typename FieldIdT = Aws::String>
50 void SetFieldId(FieldIdT&& value) { m_fieldIdHasBeenSet = true; m_fieldId = std::forward<FieldIdT>(value); }
51 template<typename FieldIdT = Aws::String>
52 DateMeasureField& WithFieldId(FieldIdT&& value) { SetFieldId(std::forward<FieldIdT>(value)); return *this;}
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) { m_columnHasBeenSet = true; m_column = std::forward<ColumnT>(value); }
63 template<typename ColumnT = ColumnIdentifier>
64 DateMeasureField& WithColumn(ColumnT&& value) { SetColumn(std::forward<ColumnT>(value)); return *this;}
66
68
71 inline DateAggregationFunction GetAggregationFunction() const { return m_aggregationFunction; }
72 inline bool AggregationFunctionHasBeenSet() const { return m_aggregationFunctionHasBeenSet; }
73 inline void SetAggregationFunction(DateAggregationFunction value) { m_aggregationFunctionHasBeenSet = true; m_aggregationFunction = value; }
76
78
81 inline const DateTimeFormatConfiguration& GetFormatConfiguration() const { return m_formatConfiguration; }
82 inline bool FormatConfigurationHasBeenSet() const { return m_formatConfigurationHasBeenSet; }
83 template<typename FormatConfigurationT = DateTimeFormatConfiguration>
84 void SetFormatConfiguration(FormatConfigurationT&& value) { m_formatConfigurationHasBeenSet = true; m_formatConfiguration = std::forward<FormatConfigurationT>(value); }
85 template<typename FormatConfigurationT = DateTimeFormatConfiguration>
86 DateMeasureField& WithFormatConfiguration(FormatConfigurationT&& value) { SetFormatConfiguration(std::forward<FormatConfigurationT>(value)); return *this;}
88 private:
89
90 Aws::String m_fieldId;
91 bool m_fieldIdHasBeenSet = false;
92
93 ColumnIdentifier m_column;
94 bool m_columnHasBeenSet = false;
95
97 bool m_aggregationFunctionHasBeenSet = false;
98
99 DateTimeFormatConfiguration m_formatConfiguration;
100 bool m_formatConfigurationHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace QuickSight
105} // 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