AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Record.h
1
6#pragma once
7#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/timestream-write/model/MeasureValueType.h>
11#include <aws/timestream-write/model/TimeUnit.h>
12#include <aws/timestream-write/model/Dimension.h>
13#include <aws/timestream-write/model/MeasureValue.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace TimestreamWrite
27{
28namespace Model
29{
30
51 class Record
52 {
53 public:
54 AWS_TIMESTREAMWRITE_API Record() = default;
55 AWS_TIMESTREAMWRITE_API Record(Aws::Utils::Json::JsonView jsonValue);
56 AWS_TIMESTREAMWRITE_API Record& operator=(Aws::Utils::Json::JsonView jsonValue);
57 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
58
59
61
64 inline const Aws::Vector<Dimension>& GetDimensions() const { return m_dimensions; }
65 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
66 template<typename DimensionsT = Aws::Vector<Dimension>>
67 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::forward<DimensionsT>(value); }
68 template<typename DimensionsT = Aws::Vector<Dimension>>
69 Record& WithDimensions(DimensionsT&& value) { SetDimensions(std::forward<DimensionsT>(value)); return *this;}
70 template<typename DimensionsT = Dimension>
71 Record& AddDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace_back(std::forward<DimensionsT>(value)); return *this; }
73
75
80 inline const Aws::String& GetMeasureName() const { return m_measureName; }
81 inline bool MeasureNameHasBeenSet() const { return m_measureNameHasBeenSet; }
82 template<typename MeasureNameT = Aws::String>
83 void SetMeasureName(MeasureNameT&& value) { m_measureNameHasBeenSet = true; m_measureName = std::forward<MeasureNameT>(value); }
84 template<typename MeasureNameT = Aws::String>
85 Record& WithMeasureName(MeasureNameT&& value) { SetMeasureName(std::forward<MeasureNameT>(value)); return *this;}
87
89
92 inline const Aws::String& GetMeasureValue() const { return m_measureValue; }
93 inline bool MeasureValueHasBeenSet() const { return m_measureValueHasBeenSet; }
94 template<typename MeasureValueT = Aws::String>
95 void SetMeasureValue(MeasureValueT&& value) { m_measureValueHasBeenSet = true; m_measureValue = std::forward<MeasureValueT>(value); }
96 template<typename MeasureValueT = Aws::String>
97 Record& WithMeasureValue(MeasureValueT&& value) { SetMeasureValue(std::forward<MeasureValueT>(value)); return *this;}
99
101
107 inline MeasureValueType GetMeasureValueType() const { return m_measureValueType; }
108 inline bool MeasureValueTypeHasBeenSet() const { return m_measureValueTypeHasBeenSet; }
109 inline void SetMeasureValueType(MeasureValueType value) { m_measureValueTypeHasBeenSet = true; m_measureValueType = value; }
110 inline Record& WithMeasureValueType(MeasureValueType value) { SetMeasureValueType(value); return *this;}
112
114
120 inline const Aws::String& GetTime() const { return m_time; }
121 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
122 template<typename TimeT = Aws::String>
123 void SetTime(TimeT&& value) { m_timeHasBeenSet = true; m_time = std::forward<TimeT>(value); }
124 template<typename TimeT = Aws::String>
125 Record& WithTime(TimeT&& value) { SetTime(std::forward<TimeT>(value)); return *this;}
127
129
134 inline TimeUnit GetTimeUnit() const { return m_timeUnit; }
135 inline bool TimeUnitHasBeenSet() const { return m_timeUnitHasBeenSet; }
136 inline void SetTimeUnit(TimeUnit value) { m_timeUnitHasBeenSet = true; m_timeUnit = value; }
137 inline Record& WithTimeUnit(TimeUnit value) { SetTimeUnit(value); return *this;}
139
141
149 inline long long GetVersion() const { return m_version; }
150 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
151 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
152 inline Record& WithVersion(long long value) { SetVersion(value); return *this;}
154
156
161 inline const Aws::Vector<MeasureValue>& GetMeasureValues() const { return m_measureValues; }
162 inline bool MeasureValuesHasBeenSet() const { return m_measureValuesHasBeenSet; }
163 template<typename MeasureValuesT = Aws::Vector<MeasureValue>>
164 void SetMeasureValues(MeasureValuesT&& value) { m_measureValuesHasBeenSet = true; m_measureValues = std::forward<MeasureValuesT>(value); }
165 template<typename MeasureValuesT = Aws::Vector<MeasureValue>>
166 Record& WithMeasureValues(MeasureValuesT&& value) { SetMeasureValues(std::forward<MeasureValuesT>(value)); return *this;}
167 template<typename MeasureValuesT = MeasureValue>
168 Record& AddMeasureValues(MeasureValuesT&& value) { m_measureValuesHasBeenSet = true; m_measureValues.emplace_back(std::forward<MeasureValuesT>(value)); return *this; }
170 private:
171
172 Aws::Vector<Dimension> m_dimensions;
173 bool m_dimensionsHasBeenSet = false;
174
175 Aws::String m_measureName;
176 bool m_measureNameHasBeenSet = false;
177
178 Aws::String m_measureValue;
179 bool m_measureValueHasBeenSet = false;
180
182 bool m_measureValueTypeHasBeenSet = false;
183
184 Aws::String m_time;
185 bool m_timeHasBeenSet = false;
186
187 TimeUnit m_timeUnit{TimeUnit::NOT_SET};
188 bool m_timeUnitHasBeenSet = false;
189
190 long long m_version{0};
191 bool m_versionHasBeenSet = false;
192
193 Aws::Vector<MeasureValue> m_measureValues;
194 bool m_measureValuesHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace TimestreamWrite
199} // namespace Aws
bool MeasureValueTypeHasBeenSet() const
Definition Record.h:108
Record & WithMeasureName(MeasureNameT &&value)
Definition Record.h:85
Record & AddDimensions(DimensionsT &&value)
Definition Record.h:71
Record & WithDimensions(DimensionsT &&value)
Definition Record.h:69
void SetMeasureValueType(MeasureValueType value)
Definition Record.h:109
Record & AddMeasureValues(MeasureValuesT &&value)
Definition Record.h:168
void SetDimensions(DimensionsT &&value)
Definition Record.h:67
Record & WithMeasureValue(MeasureValueT &&value)
Definition Record.h:97
const Aws::String & GetMeasureName() const
Definition Record.h:80
Record & WithTimeUnit(TimeUnit value)
Definition Record.h:137
void SetMeasureValues(MeasureValuesT &&value)
Definition Record.h:164
AWS_TIMESTREAMWRITE_API Record(Aws::Utils::Json::JsonView jsonValue)
void SetMeasureName(MeasureNameT &&value)
Definition Record.h:83
Record & WithVersion(long long value)
Definition Record.h:152
void SetTime(TimeT &&value)
Definition Record.h:123
AWS_TIMESTREAMWRITE_API Record & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTime() const
Definition Record.h:120
void SetMeasureValue(MeasureValueT &&value)
Definition Record.h:95
const Aws::Vector< MeasureValue > & GetMeasureValues() const
Definition Record.h:161
Record & WithMeasureValues(MeasureValuesT &&value)
Definition Record.h:166
void SetVersion(long long value)
Definition Record.h:151
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Dimension > & GetDimensions() const
Definition Record.h:64
const Aws::String & GetMeasureValue() const
Definition Record.h:92
Record & WithTime(TimeT &&value)
Definition Record.h:125
AWS_TIMESTREAMWRITE_API Record()=default
MeasureValueType GetMeasureValueType() const
Definition Record.h:107
Record & WithMeasureValueType(MeasureValueType value)
Definition Record.h:110
void SetTimeUnit(TimeUnit value)
Definition Record.h:136
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue