AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDimensions(const Aws::Vector<Dimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
67 inline void SetDimensions(Aws::Vector<Dimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
68 inline Record& WithDimensions(const Aws::Vector<Dimension>& value) { SetDimensions(value); return *this;}
69 inline Record& WithDimensions(Aws::Vector<Dimension>&& value) { SetDimensions(std::move(value)); return *this;}
70 inline Record& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
71 inline Record& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
73
75
80 inline const Aws::String& GetMeasureName() const{ return m_measureName; }
81 inline bool MeasureNameHasBeenSet() const { return m_measureNameHasBeenSet; }
82 inline void SetMeasureName(const Aws::String& value) { m_measureNameHasBeenSet = true; m_measureName = value; }
83 inline void SetMeasureName(Aws::String&& value) { m_measureNameHasBeenSet = true; m_measureName = std::move(value); }
84 inline void SetMeasureName(const char* value) { m_measureNameHasBeenSet = true; m_measureName.assign(value); }
85 inline Record& WithMeasureName(const Aws::String& value) { SetMeasureName(value); return *this;}
86 inline Record& WithMeasureName(Aws::String&& value) { SetMeasureName(std::move(value)); return *this;}
87 inline Record& WithMeasureName(const char* value) { SetMeasureName(value); return *this;}
89
91
94 inline const Aws::String& GetMeasureValue() const{ return m_measureValue; }
95 inline bool MeasureValueHasBeenSet() const { return m_measureValueHasBeenSet; }
96 inline void SetMeasureValue(const Aws::String& value) { m_measureValueHasBeenSet = true; m_measureValue = value; }
97 inline void SetMeasureValue(Aws::String&& value) { m_measureValueHasBeenSet = true; m_measureValue = std::move(value); }
98 inline void SetMeasureValue(const char* value) { m_measureValueHasBeenSet = true; m_measureValue.assign(value); }
99 inline Record& WithMeasureValue(const Aws::String& value) { SetMeasureValue(value); return *this;}
100 inline Record& WithMeasureValue(Aws::String&& value) { SetMeasureValue(std::move(value)); return *this;}
101 inline Record& WithMeasureValue(const char* value) { SetMeasureValue(value); return *this;}
103
105
111 inline const MeasureValueType& GetMeasureValueType() const{ return m_measureValueType; }
112 inline bool MeasureValueTypeHasBeenSet() const { return m_measureValueTypeHasBeenSet; }
113 inline void SetMeasureValueType(const MeasureValueType& value) { m_measureValueTypeHasBeenSet = true; m_measureValueType = value; }
114 inline void SetMeasureValueType(MeasureValueType&& value) { m_measureValueTypeHasBeenSet = true; m_measureValueType = std::move(value); }
115 inline Record& WithMeasureValueType(const MeasureValueType& value) { SetMeasureValueType(value); return *this;}
116 inline Record& WithMeasureValueType(MeasureValueType&& value) { SetMeasureValueType(std::move(value)); return *this;}
118
120
126 inline const Aws::String& GetTime() const{ return m_time; }
127 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
128 inline void SetTime(const Aws::String& value) { m_timeHasBeenSet = true; m_time = value; }
129 inline void SetTime(Aws::String&& value) { m_timeHasBeenSet = true; m_time = std::move(value); }
130 inline void SetTime(const char* value) { m_timeHasBeenSet = true; m_time.assign(value); }
131 inline Record& WithTime(const Aws::String& value) { SetTime(value); return *this;}
132 inline Record& WithTime(Aws::String&& value) { SetTime(std::move(value)); return *this;}
133 inline Record& WithTime(const char* value) { SetTime(value); return *this;}
135
137
142 inline const TimeUnit& GetTimeUnit() const{ return m_timeUnit; }
143 inline bool TimeUnitHasBeenSet() const { return m_timeUnitHasBeenSet; }
144 inline void SetTimeUnit(const TimeUnit& value) { m_timeUnitHasBeenSet = true; m_timeUnit = value; }
145 inline void SetTimeUnit(TimeUnit&& value) { m_timeUnitHasBeenSet = true; m_timeUnit = std::move(value); }
146 inline Record& WithTimeUnit(const TimeUnit& value) { SetTimeUnit(value); return *this;}
147 inline Record& WithTimeUnit(TimeUnit&& value) { SetTimeUnit(std::move(value)); return *this;}
149
151
159 inline long long GetVersion() const{ return m_version; }
160 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
161 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
162 inline Record& WithVersion(long long value) { SetVersion(value); return *this;}
164
166
171 inline const Aws::Vector<MeasureValue>& GetMeasureValues() const{ return m_measureValues; }
172 inline bool MeasureValuesHasBeenSet() const { return m_measureValuesHasBeenSet; }
173 inline void SetMeasureValues(const Aws::Vector<MeasureValue>& value) { m_measureValuesHasBeenSet = true; m_measureValues = value; }
174 inline void SetMeasureValues(Aws::Vector<MeasureValue>&& value) { m_measureValuesHasBeenSet = true; m_measureValues = std::move(value); }
175 inline Record& WithMeasureValues(const Aws::Vector<MeasureValue>& value) { SetMeasureValues(value); return *this;}
176 inline Record& WithMeasureValues(Aws::Vector<MeasureValue>&& value) { SetMeasureValues(std::move(value)); return *this;}
177 inline Record& AddMeasureValues(const MeasureValue& value) { m_measureValuesHasBeenSet = true; m_measureValues.push_back(value); return *this; }
178 inline Record& AddMeasureValues(MeasureValue&& value) { m_measureValuesHasBeenSet = true; m_measureValues.push_back(std::move(value)); return *this; }
180 private:
181
182 Aws::Vector<Dimension> m_dimensions;
183 bool m_dimensionsHasBeenSet = false;
184
185 Aws::String m_measureName;
186 bool m_measureNameHasBeenSet = false;
187
188 Aws::String m_measureValue;
189 bool m_measureValueHasBeenSet = false;
190
191 MeasureValueType m_measureValueType;
192 bool m_measureValueTypeHasBeenSet = false;
193
194 Aws::String m_time;
195 bool m_timeHasBeenSet = false;
196
197 TimeUnit m_timeUnit;
198 bool m_timeUnitHasBeenSet = false;
199
200 long long m_version;
201 bool m_versionHasBeenSet = false;
202
203 Aws::Vector<MeasureValue> m_measureValues;
204 bool m_measureValuesHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace TimestreamWrite
209} // namespace Aws
bool MeasureValueTypeHasBeenSet() const
Definition Record.h:112
Record & WithMeasureValue(Aws::String &&value)
Definition Record.h:100
Record & WithMeasureName(const char *value)
Definition Record.h:87
Record & WithMeasureName(Aws::String &&value)
Definition Record.h:86
void SetTime(const char *value)
Definition Record.h:130
Record & WithTime(Aws::String &&value)
Definition Record.h:132
Record & WithTimeUnit(TimeUnit &&value)
Definition Record.h:147
Record & AddDimensions(Dimension &&value)
Definition Record.h:71
void SetMeasureName(const char *value)
Definition Record.h:84
Record & WithMeasureValue(const char *value)
Definition Record.h:101
Record & WithMeasureValue(const Aws::String &value)
Definition Record.h:99
void SetMeasureValue(const char *value)
Definition Record.h:98
Record & WithTime(const char *value)
Definition Record.h:133
AWS_TIMESTREAMWRITE_API Record()
void SetMeasureValue(const Aws::String &value)
Definition Record.h:96
Record & WithMeasureValues(const Aws::Vector< MeasureValue > &value)
Definition Record.h:175
Record & WithMeasureName(const Aws::String &value)
Definition Record.h:85
void SetMeasureName(Aws::String &&value)
Definition Record.h:83
void SetMeasureValues(Aws::Vector< MeasureValue > &&value)
Definition Record.h:174
void SetMeasureValues(const Aws::Vector< MeasureValue > &value)
Definition Record.h:173
void SetDimensions(Aws::Vector< Dimension > &&value)
Definition Record.h:67
Record & WithDimensions(const Aws::Vector< Dimension > &value)
Definition Record.h:68
Record & WithMeasureValueType(MeasureValueType &&value)
Definition Record.h:116
void SetMeasureValue(Aws::String &&value)
Definition Record.h:97
Record & WithTime(const Aws::String &value)
Definition Record.h:131
const Aws::String & GetMeasureName() const
Definition Record.h:80
Record & WithTimeUnit(const TimeUnit &value)
Definition Record.h:146
void SetDimensions(const Aws::Vector< Dimension > &value)
Definition Record.h:66
Record & WithMeasureValues(Aws::Vector< MeasureValue > &&value)
Definition Record.h:176
AWS_TIMESTREAMWRITE_API Record(Aws::Utils::Json::JsonView jsonValue)
void SetTimeUnit(const TimeUnit &value)
Definition Record.h:144
Record & WithVersion(long long value)
Definition Record.h:162
Record & WithDimensions(Aws::Vector< Dimension > &&value)
Definition Record.h:69
AWS_TIMESTREAMWRITE_API Record & operator=(Aws::Utils::Json::JsonView jsonValue)
Record & AddMeasureValues(MeasureValue &&value)
Definition Record.h:178
const Aws::String & GetTime() const
Definition Record.h:126
void SetTime(const Aws::String &value)
Definition Record.h:128
void SetTimeUnit(TimeUnit &&value)
Definition Record.h:145
const Aws::Vector< MeasureValue > & GetMeasureValues() const
Definition Record.h:171
void SetMeasureValueType(const MeasureValueType &value)
Definition Record.h:113
void SetMeasureName(const Aws::String &value)
Definition Record.h:82
const TimeUnit & GetTimeUnit() const
Definition Record.h:142
void SetVersion(long long value)
Definition Record.h:161
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTime(Aws::String &&value)
Definition Record.h:129
const Aws::Vector< Dimension > & GetDimensions() const
Definition Record.h:64
const Aws::String & GetMeasureValue() const
Definition Record.h:94
const MeasureValueType & GetMeasureValueType() const
Definition Record.h:111
Record & WithMeasureValueType(const MeasureValueType &value)
Definition Record.h:115
Record & AddMeasureValues(const MeasureValue &value)
Definition Record.h:177
void SetMeasureValueType(MeasureValueType &&value)
Definition Record.h:114
Record & AddDimensions(const Dimension &value)
Definition Record.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue