AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
MixedMeasureMapping.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/timestream-query/TimestreamQuery_EXPORTS.h>
10#include <aws/timestream-query/model/MeasureValueType.h>
11#include <aws/timestream-query/model/MultiMeasureAttributeMapping.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace TimestreamQuery {
23namespace Model {
24
33 public:
34 AWS_TIMESTREAMQUERY_API MixedMeasureMapping() = default;
37 AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetMeasureName() const { return m_measureName; }
45 inline bool MeasureNameHasBeenSet() const { return m_measureNameHasBeenSet; }
46 template <typename MeasureNameT = Aws::String>
48 m_measureNameHasBeenSet = true;
49 m_measureName = std::forward<MeasureNameT>(value);
50 }
51 template <typename MeasureNameT = Aws::String>
53 SetMeasureName(std::forward<MeasureNameT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetSourceColumn() const { return m_sourceColumn; }
64 inline bool SourceColumnHasBeenSet() const { return m_sourceColumnHasBeenSet; }
65 template <typename SourceColumnT = Aws::String>
67 m_sourceColumnHasBeenSet = true;
68 m_sourceColumn = std::forward<SourceColumnT>(value);
69 }
70 template <typename SourceColumnT = Aws::String>
72 SetSourceColumn(std::forward<SourceColumnT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetTargetMeasureName() const { return m_targetMeasureName; }
83 inline bool TargetMeasureNameHasBeenSet() const { return m_targetMeasureNameHasBeenSet; }
84 template <typename TargetMeasureNameT = Aws::String>
86 m_targetMeasureNameHasBeenSet = true;
87 m_targetMeasureName = std::forward<TargetMeasureNameT>(value);
88 }
89 template <typename TargetMeasureNameT = Aws::String>
91 SetTargetMeasureName(std::forward<TargetMeasureNameT>(value));
92 return *this;
93 }
95
97
101 inline MeasureValueType GetMeasureValueType() const { return m_measureValueType; }
102 inline bool MeasureValueTypeHasBeenSet() const { return m_measureValueTypeHasBeenSet; }
104 m_measureValueTypeHasBeenSet = true;
105 m_measureValueType = value;
106 }
108 SetMeasureValueType(value);
109 return *this;
110 }
112
114
119 return m_multiMeasureAttributeMappings;
120 }
121 inline bool MultiMeasureAttributeMappingsHasBeenSet() const { return m_multiMeasureAttributeMappingsHasBeenSet; }
122 template <typename MultiMeasureAttributeMappingsT = Aws::Vector<MultiMeasureAttributeMapping>>
124 m_multiMeasureAttributeMappingsHasBeenSet = true;
125 m_multiMeasureAttributeMappings = std::forward<MultiMeasureAttributeMappingsT>(value);
126 }
127 template <typename MultiMeasureAttributeMappingsT = Aws::Vector<MultiMeasureAttributeMapping>>
129 SetMultiMeasureAttributeMappings(std::forward<MultiMeasureAttributeMappingsT>(value));
130 return *this;
131 }
132 template <typename MultiMeasureAttributeMappingsT = MultiMeasureAttributeMapping>
134 m_multiMeasureAttributeMappingsHasBeenSet = true;
135 m_multiMeasureAttributeMappings.emplace_back(std::forward<MultiMeasureAttributeMappingsT>(value));
136 return *this;
137 }
139 private:
140 Aws::String m_measureName;
141
142 Aws::String m_sourceColumn;
143
144 Aws::String m_targetMeasureName;
145
147
148 Aws::Vector<MultiMeasureAttributeMapping> m_multiMeasureAttributeMappings;
149 bool m_measureNameHasBeenSet = false;
150 bool m_sourceColumnHasBeenSet = false;
151 bool m_targetMeasureNameHasBeenSet = false;
152 bool m_measureValueTypeHasBeenSet = false;
153 bool m_multiMeasureAttributeMappingsHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace TimestreamQuery
158} // namespace Aws
MixedMeasureMapping & WithSourceColumn(SourceColumnT &&value)
MixedMeasureMapping & WithMultiMeasureAttributeMappings(MultiMeasureAttributeMappingsT &&value)
AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TIMESTREAMQUERY_API MixedMeasureMapping()=default
void SetTargetMeasureName(TargetMeasureNameT &&value)
AWS_TIMESTREAMQUERY_API MixedMeasureMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
MixedMeasureMapping & AddMultiMeasureAttributeMappings(MultiMeasureAttributeMappingsT &&value)
void SetMultiMeasureAttributeMappings(MultiMeasureAttributeMappingsT &&value)
MixedMeasureMapping & WithMeasureName(MeasureNameT &&value)
MixedMeasureMapping & WithMeasureValueType(MeasureValueType value)
AWS_TIMESTREAMQUERY_API MixedMeasureMapping(Aws::Utils::Json::JsonView jsonValue)
MixedMeasureMapping & WithTargetMeasureName(TargetMeasureNameT &&value)
const Aws::Vector< MultiMeasureAttributeMapping > & GetMultiMeasureAttributeMappings() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue