AWS SDK for C++

AWS SDK for C++ Version 1.11.753

Loading...
Searching...
No Matches
PeriodToDateComputation.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/DimensionField.h>
10#include <aws/quicksight/model/MeasureField.h>
11#include <aws/quicksight/model/TimeGranularity.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 PeriodToDateComputation() = default;
35 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetComputationId() const { return m_computationId; }
42 inline bool ComputationIdHasBeenSet() const { return m_computationIdHasBeenSet; }
43 template <typename ComputationIdT = Aws::String>
44 void SetComputationId(ComputationIdT&& value) {
45 m_computationIdHasBeenSet = true;
46 m_computationId = std::forward<ComputationIdT>(value);
47 }
48 template <typename ComputationIdT = Aws::String>
49 PeriodToDateComputation& WithComputationId(ComputationIdT&& value) {
50 SetComputationId(std::forward<ComputationIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const DimensionField& GetTime() const { return m_time; }
78 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
79 template <typename TimeT = DimensionField>
80 void SetTime(TimeT&& value) {
81 m_timeHasBeenSet = true;
82 m_time = std::forward<TimeT>(value);
83 }
84 template <typename TimeT = DimensionField>
86 SetTime(std::forward<TimeT>(value));
87 return *this;
88 }
90
92
95 inline const MeasureField& GetValue() const { return m_value; }
96 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
97 template <typename ValueT = MeasureField>
98 void SetValue(ValueT&& value) {
99 m_valueHasBeenSet = true;
100 m_value = std::forward<ValueT>(value);
101 }
102 template <typename ValueT = MeasureField>
104 SetValue(std::forward<ValueT>(value));
105 return *this;
106 }
108
110
115 inline TimeGranularity GetPeriodTimeGranularity() const { return m_periodTimeGranularity; }
116 inline bool PeriodTimeGranularityHasBeenSet() const { return m_periodTimeGranularityHasBeenSet; }
118 m_periodTimeGranularityHasBeenSet = true;
119 m_periodTimeGranularity = value;
120 }
123 return *this;
124 }
126 private:
127 Aws::String m_computationId;
128
129 Aws::String m_name;
130
131 DimensionField m_time;
132
133 MeasureField m_value;
134
135 TimeGranularity m_periodTimeGranularity{TimeGranularity::NOT_SET};
136 bool m_computationIdHasBeenSet = false;
137 bool m_nameHasBeenSet = false;
138 bool m_timeHasBeenSet = false;
139 bool m_valueHasBeenSet = false;
140 bool m_periodTimeGranularityHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace QuickSight
145} // namespace Aws
AWS_QUICKSIGHT_API PeriodToDateComputation(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API PeriodToDateComputation()=default
PeriodToDateComputation & WithName(NameT &&value)
PeriodToDateComputation & WithPeriodTimeGranularity(TimeGranularity value)
AWS_QUICKSIGHT_API PeriodToDateComputation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
PeriodToDateComputation & WithComputationId(ComputationIdT &&value)
PeriodToDateComputation & WithValue(ValueT &&value)
PeriodToDateComputation & WithTime(TimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue