AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PipeTargetTimestreamParameters.h
1
6#pragma once
7#include <aws/pipes/Pipes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pipes/model/EpochTimeUnit.h>
10#include <aws/pipes/model/TimeFieldType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/pipes/model/DimensionMapping.h>
13#include <aws/pipes/model/SingleMeasureMapping.h>
14#include <aws/pipes/model/MultiMeasureMapping.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Pipes
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_PIPES_API PipeTargetTimestreamParameters() = default;
44 AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::String& GetTimeValue() const { return m_timeValue; }
53 inline bool TimeValueHasBeenSet() const { return m_timeValueHasBeenSet; }
54 template<typename TimeValueT = Aws::String>
55 void SetTimeValue(TimeValueT&& value) { m_timeValueHasBeenSet = true; m_timeValue = std::forward<TimeValueT>(value); }
56 template<typename TimeValueT = Aws::String>
57 PipeTargetTimestreamParameters& WithTimeValue(TimeValueT&& value) { SetTimeValue(std::forward<TimeValueT>(value)); return *this;}
59
61
66 inline EpochTimeUnit GetEpochTimeUnit() const { return m_epochTimeUnit; }
67 inline bool EpochTimeUnitHasBeenSet() const { return m_epochTimeUnitHasBeenSet; }
68 inline void SetEpochTimeUnit(EpochTimeUnit value) { m_epochTimeUnitHasBeenSet = true; m_epochTimeUnit = value; }
71
73
76 inline TimeFieldType GetTimeFieldType() const { return m_timeFieldType; }
77 inline bool TimeFieldTypeHasBeenSet() const { return m_timeFieldTypeHasBeenSet; }
78 inline void SetTimeFieldType(TimeFieldType value) { m_timeFieldTypeHasBeenSet = true; m_timeFieldType = value; }
81
83
88 inline const Aws::String& GetTimestampFormat() const { return m_timestampFormat; }
89 inline bool TimestampFormatHasBeenSet() const { return m_timestampFormatHasBeenSet; }
90 template<typename TimestampFormatT = Aws::String>
91 void SetTimestampFormat(TimestampFormatT&& value) { m_timestampFormatHasBeenSet = true; m_timestampFormat = std::forward<TimestampFormatT>(value); }
92 template<typename TimestampFormatT = Aws::String>
93 PipeTargetTimestreamParameters& WithTimestampFormat(TimestampFormatT&& value) { SetTimestampFormat(std::forward<TimestampFormatT>(value)); return *this;}
95
97
110 inline const Aws::String& GetVersionValue() const { return m_versionValue; }
111 inline bool VersionValueHasBeenSet() const { return m_versionValueHasBeenSet; }
112 template<typename VersionValueT = Aws::String>
113 void SetVersionValue(VersionValueT&& value) { m_versionValueHasBeenSet = true; m_versionValue = std::forward<VersionValueT>(value); }
114 template<typename VersionValueT = Aws::String>
115 PipeTargetTimestreamParameters& WithVersionValue(VersionValueT&& value) { SetVersionValue(std::forward<VersionValueT>(value)); return *this;}
117
119
125 inline const Aws::Vector<DimensionMapping>& GetDimensionMappings() const { return m_dimensionMappings; }
126 inline bool DimensionMappingsHasBeenSet() const { return m_dimensionMappingsHasBeenSet; }
127 template<typename DimensionMappingsT = Aws::Vector<DimensionMapping>>
128 void SetDimensionMappings(DimensionMappingsT&& value) { m_dimensionMappingsHasBeenSet = true; m_dimensionMappings = std::forward<DimensionMappingsT>(value); }
129 template<typename DimensionMappingsT = Aws::Vector<DimensionMapping>>
130 PipeTargetTimestreamParameters& WithDimensionMappings(DimensionMappingsT&& value) { SetDimensionMappings(std::forward<DimensionMappingsT>(value)); return *this;}
131 template<typename DimensionMappingsT = DimensionMapping>
132 PipeTargetTimestreamParameters& AddDimensionMappings(DimensionMappingsT&& value) { m_dimensionMappingsHasBeenSet = true; m_dimensionMappings.emplace_back(std::forward<DimensionMappingsT>(value)); return *this; }
134
136
140 inline const Aws::Vector<SingleMeasureMapping>& GetSingleMeasureMappings() const { return m_singleMeasureMappings; }
141 inline bool SingleMeasureMappingsHasBeenSet() const { return m_singleMeasureMappingsHasBeenSet; }
142 template<typename SingleMeasureMappingsT = Aws::Vector<SingleMeasureMapping>>
143 void SetSingleMeasureMappings(SingleMeasureMappingsT&& value) { m_singleMeasureMappingsHasBeenSet = true; m_singleMeasureMappings = std::forward<SingleMeasureMappingsT>(value); }
144 template<typename SingleMeasureMappingsT = Aws::Vector<SingleMeasureMapping>>
145 PipeTargetTimestreamParameters& WithSingleMeasureMappings(SingleMeasureMappingsT&& value) { SetSingleMeasureMappings(std::forward<SingleMeasureMappingsT>(value)); return *this;}
146 template<typename SingleMeasureMappingsT = SingleMeasureMapping>
147 PipeTargetTimestreamParameters& AddSingleMeasureMappings(SingleMeasureMappingsT&& value) { m_singleMeasureMappingsHasBeenSet = true; m_singleMeasureMappings.emplace_back(std::forward<SingleMeasureMappingsT>(value)); return *this; }
149
151
155 inline const Aws::Vector<MultiMeasureMapping>& GetMultiMeasureMappings() const { return m_multiMeasureMappings; }
156 inline bool MultiMeasureMappingsHasBeenSet() const { return m_multiMeasureMappingsHasBeenSet; }
157 template<typename MultiMeasureMappingsT = Aws::Vector<MultiMeasureMapping>>
158 void SetMultiMeasureMappings(MultiMeasureMappingsT&& value) { m_multiMeasureMappingsHasBeenSet = true; m_multiMeasureMappings = std::forward<MultiMeasureMappingsT>(value); }
159 template<typename MultiMeasureMappingsT = Aws::Vector<MultiMeasureMapping>>
160 PipeTargetTimestreamParameters& WithMultiMeasureMappings(MultiMeasureMappingsT&& value) { SetMultiMeasureMappings(std::forward<MultiMeasureMappingsT>(value)); return *this;}
161 template<typename MultiMeasureMappingsT = MultiMeasureMapping>
162 PipeTargetTimestreamParameters& AddMultiMeasureMappings(MultiMeasureMappingsT&& value) { m_multiMeasureMappingsHasBeenSet = true; m_multiMeasureMappings.emplace_back(std::forward<MultiMeasureMappingsT>(value)); return *this; }
164 private:
165
166 Aws::String m_timeValue;
167 bool m_timeValueHasBeenSet = false;
168
169 EpochTimeUnit m_epochTimeUnit{EpochTimeUnit::NOT_SET};
170 bool m_epochTimeUnitHasBeenSet = false;
171
172 TimeFieldType m_timeFieldType{TimeFieldType::NOT_SET};
173 bool m_timeFieldTypeHasBeenSet = false;
174
175 Aws::String m_timestampFormat;
176 bool m_timestampFormatHasBeenSet = false;
177
178 Aws::String m_versionValue;
179 bool m_versionValueHasBeenSet = false;
180
181 Aws::Vector<DimensionMapping> m_dimensionMappings;
182 bool m_dimensionMappingsHasBeenSet = false;
183
184 Aws::Vector<SingleMeasureMapping> m_singleMeasureMappings;
185 bool m_singleMeasureMappingsHasBeenSet = false;
186
187 Aws::Vector<MultiMeasureMapping> m_multiMeasureMappings;
188 bool m_multiMeasureMappingsHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace Pipes
193} // 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