AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
PipeTargetTimestreamParameters.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pipes/Pipes_EXPORTS.h>
10#include <aws/pipes/model/DimensionMapping.h>
11#include <aws/pipes/model/EpochTimeUnit.h>
12#include <aws/pipes/model/MultiMeasureMapping.h>
13#include <aws/pipes/model/SingleMeasureMapping.h>
14#include <aws/pipes/model/TimeFieldType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Pipes {
26namespace Model {
27
35 public:
36 AWS_PIPES_API PipeTargetTimestreamParameters() = default;
39 AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const Aws::String& GetTimeValue() const { return m_timeValue; }
47 inline bool TimeValueHasBeenSet() const { return m_timeValueHasBeenSet; }
48 template <typename TimeValueT = Aws::String>
49 void SetTimeValue(TimeValueT&& value) {
50 m_timeValueHasBeenSet = true;
51 m_timeValue = std::forward<TimeValueT>(value);
52 }
53 template <typename TimeValueT = Aws::String>
55 SetTimeValue(std::forward<TimeValueT>(value));
56 return *this;
57 }
59
61
66 inline EpochTimeUnit GetEpochTimeUnit() const { return m_epochTimeUnit; }
67 inline bool EpochTimeUnitHasBeenSet() const { return m_epochTimeUnitHasBeenSet; }
68 inline void SetEpochTimeUnit(EpochTimeUnit value) {
69 m_epochTimeUnitHasBeenSet = true;
70 m_epochTimeUnit = value;
71 }
73 SetEpochTimeUnit(value);
74 return *this;
75 }
77
79
82 inline TimeFieldType GetTimeFieldType() const { return m_timeFieldType; }
83 inline bool TimeFieldTypeHasBeenSet() const { return m_timeFieldTypeHasBeenSet; }
84 inline void SetTimeFieldType(TimeFieldType value) {
85 m_timeFieldTypeHasBeenSet = true;
86 m_timeFieldType = value;
87 }
89 SetTimeFieldType(value);
90 return *this;
91 }
93
95
100 inline const Aws::String& GetTimestampFormat() const { return m_timestampFormat; }
101 inline bool TimestampFormatHasBeenSet() const { return m_timestampFormatHasBeenSet; }
102 template <typename TimestampFormatT = Aws::String>
103 void SetTimestampFormat(TimestampFormatT&& value) {
104 m_timestampFormatHasBeenSet = true;
105 m_timestampFormat = std::forward<TimestampFormatT>(value);
106 }
107 template <typename TimestampFormatT = Aws::String>
109 SetTimestampFormat(std::forward<TimestampFormatT>(value));
110 return *this;
111 }
113
115
128 inline const Aws::String& GetVersionValue() const { return m_versionValue; }
129 inline bool VersionValueHasBeenSet() const { return m_versionValueHasBeenSet; }
130 template <typename VersionValueT = Aws::String>
131 void SetVersionValue(VersionValueT&& value) {
132 m_versionValueHasBeenSet = true;
133 m_versionValue = std::forward<VersionValueT>(value);
134 }
135 template <typename VersionValueT = Aws::String>
137 SetVersionValue(std::forward<VersionValueT>(value));
138 return *this;
139 }
141
143
149 inline const Aws::Vector<DimensionMapping>& GetDimensionMappings() const { return m_dimensionMappings; }
150 inline bool DimensionMappingsHasBeenSet() const { return m_dimensionMappingsHasBeenSet; }
151 template <typename DimensionMappingsT = Aws::Vector<DimensionMapping>>
152 void SetDimensionMappings(DimensionMappingsT&& value) {
153 m_dimensionMappingsHasBeenSet = true;
154 m_dimensionMappings = std::forward<DimensionMappingsT>(value);
155 }
156 template <typename DimensionMappingsT = Aws::Vector<DimensionMapping>>
158 SetDimensionMappings(std::forward<DimensionMappingsT>(value));
159 return *this;
160 }
161 template <typename DimensionMappingsT = DimensionMapping>
163 m_dimensionMappingsHasBeenSet = true;
164 m_dimensionMappings.emplace_back(std::forward<DimensionMappingsT>(value));
165 return *this;
166 }
168
170
174 inline const Aws::Vector<SingleMeasureMapping>& GetSingleMeasureMappings() const { return m_singleMeasureMappings; }
175 inline bool SingleMeasureMappingsHasBeenSet() const { return m_singleMeasureMappingsHasBeenSet; }
176 template <typename SingleMeasureMappingsT = Aws::Vector<SingleMeasureMapping>>
177 void SetSingleMeasureMappings(SingleMeasureMappingsT&& value) {
178 m_singleMeasureMappingsHasBeenSet = true;
179 m_singleMeasureMappings = std::forward<SingleMeasureMappingsT>(value);
180 }
181 template <typename SingleMeasureMappingsT = Aws::Vector<SingleMeasureMapping>>
183 SetSingleMeasureMappings(std::forward<SingleMeasureMappingsT>(value));
184 return *this;
185 }
186 template <typename SingleMeasureMappingsT = SingleMeasureMapping>
188 m_singleMeasureMappingsHasBeenSet = true;
189 m_singleMeasureMappings.emplace_back(std::forward<SingleMeasureMappingsT>(value));
190 return *this;
191 }
193
195
199 inline const Aws::Vector<MultiMeasureMapping>& GetMultiMeasureMappings() const { return m_multiMeasureMappings; }
200 inline bool MultiMeasureMappingsHasBeenSet() const { return m_multiMeasureMappingsHasBeenSet; }
201 template <typename MultiMeasureMappingsT = Aws::Vector<MultiMeasureMapping>>
202 void SetMultiMeasureMappings(MultiMeasureMappingsT&& value) {
203 m_multiMeasureMappingsHasBeenSet = true;
204 m_multiMeasureMappings = std::forward<MultiMeasureMappingsT>(value);
205 }
206 template <typename MultiMeasureMappingsT = Aws::Vector<MultiMeasureMapping>>
208 SetMultiMeasureMappings(std::forward<MultiMeasureMappingsT>(value));
209 return *this;
210 }
211 template <typename MultiMeasureMappingsT = MultiMeasureMapping>
213 m_multiMeasureMappingsHasBeenSet = true;
214 m_multiMeasureMappings.emplace_back(std::forward<MultiMeasureMappingsT>(value));
215 return *this;
216 }
218 private:
219 Aws::String m_timeValue;
220
221 EpochTimeUnit m_epochTimeUnit{EpochTimeUnit::NOT_SET};
222
223 TimeFieldType m_timeFieldType{TimeFieldType::NOT_SET};
224
225 Aws::String m_timestampFormat;
226
227 Aws::String m_versionValue;
228
229 Aws::Vector<DimensionMapping> m_dimensionMappings;
230
231 Aws::Vector<SingleMeasureMapping> m_singleMeasureMappings;
232
233 Aws::Vector<MultiMeasureMapping> m_multiMeasureMappings;
234 bool m_timeValueHasBeenSet = false;
235 bool m_epochTimeUnitHasBeenSet = false;
236 bool m_timeFieldTypeHasBeenSet = false;
237 bool m_timestampFormatHasBeenSet = false;
238 bool m_versionValueHasBeenSet = false;
239 bool m_dimensionMappingsHasBeenSet = false;
240 bool m_singleMeasureMappingsHasBeenSet = false;
241 bool m_multiMeasureMappingsHasBeenSet = false;
242};
243
244} // namespace Model
245} // namespace Pipes
246} // namespace Aws
PipeTargetTimestreamParameters & WithSingleMeasureMappings(SingleMeasureMappingsT &&value)
const Aws::Vector< SingleMeasureMapping > & GetSingleMeasureMappings() const
AWS_PIPES_API PipeTargetTimestreamParameters(Aws::Utils::Json::JsonView jsonValue)
PipeTargetTimestreamParameters & WithEpochTimeUnit(EpochTimeUnit value)
const Aws::Vector< MultiMeasureMapping > & GetMultiMeasureMappings() const
PipeTargetTimestreamParameters & WithMultiMeasureMappings(MultiMeasureMappingsT &&value)
PipeTargetTimestreamParameters & AddMultiMeasureMappings(MultiMeasureMappingsT &&value)
const Aws::Vector< DimensionMapping > & GetDimensionMappings() const
PipeTargetTimestreamParameters & WithTimestampFormat(TimestampFormatT &&value)
PipeTargetTimestreamParameters & AddSingleMeasureMappings(SingleMeasureMappingsT &&value)
PipeTargetTimestreamParameters & WithTimeValue(TimeValueT &&value)
AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const
PipeTargetTimestreamParameters & WithVersionValue(VersionValueT &&value)
AWS_PIPES_API PipeTargetTimestreamParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PIPES_API PipeTargetTimestreamParameters()=default
PipeTargetTimestreamParameters & AddDimensionMappings(DimensionMappingsT &&value)
PipeTargetTimestreamParameters & WithTimeFieldType(TimeFieldType value)
PipeTargetTimestreamParameters & WithDimensionMappings(DimensionMappingsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue