AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DataModel.h
1
6#pragma once
7#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/timestream-write/model/TimeUnit.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/timestream-write/model/MultiMeasureMappings.h>
12#include <aws/timestream-write/model/DimensionMapping.h>
13#include <aws/timestream-write/model/MixedMeasureMapping.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
37 {
38 public:
39 AWS_TIMESTREAMWRITE_API DataModel();
40 AWS_TIMESTREAMWRITE_API DataModel(Aws::Utils::Json::JsonView jsonValue);
41 AWS_TIMESTREAMWRITE_API DataModel& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetTimeColumn() const{ return m_timeColumn; }
50 inline bool TimeColumnHasBeenSet() const { return m_timeColumnHasBeenSet; }
51 inline void SetTimeColumn(const Aws::String& value) { m_timeColumnHasBeenSet = true; m_timeColumn = value; }
52 inline void SetTimeColumn(Aws::String&& value) { m_timeColumnHasBeenSet = true; m_timeColumn = std::move(value); }
53 inline void SetTimeColumn(const char* value) { m_timeColumnHasBeenSet = true; m_timeColumn.assign(value); }
54 inline DataModel& WithTimeColumn(const Aws::String& value) { SetTimeColumn(value); return *this;}
55 inline DataModel& WithTimeColumn(Aws::String&& value) { SetTimeColumn(std::move(value)); return *this;}
56 inline DataModel& WithTimeColumn(const char* value) { SetTimeColumn(value); return *this;}
58
60
65 inline const TimeUnit& GetTimeUnit() const{ return m_timeUnit; }
66 inline bool TimeUnitHasBeenSet() const { return m_timeUnitHasBeenSet; }
67 inline void SetTimeUnit(const TimeUnit& value) { m_timeUnitHasBeenSet = true; m_timeUnit = value; }
68 inline void SetTimeUnit(TimeUnit&& value) { m_timeUnitHasBeenSet = true; m_timeUnit = std::move(value); }
69 inline DataModel& WithTimeUnit(const TimeUnit& value) { SetTimeUnit(value); return *this;}
70 inline DataModel& WithTimeUnit(TimeUnit&& value) { SetTimeUnit(std::move(value)); return *this;}
72
74
77 inline const Aws::Vector<DimensionMapping>& GetDimensionMappings() const{ return m_dimensionMappings; }
78 inline bool DimensionMappingsHasBeenSet() const { return m_dimensionMappingsHasBeenSet; }
79 inline void SetDimensionMappings(const Aws::Vector<DimensionMapping>& value) { m_dimensionMappingsHasBeenSet = true; m_dimensionMappings = value; }
80 inline void SetDimensionMappings(Aws::Vector<DimensionMapping>&& value) { m_dimensionMappingsHasBeenSet = true; m_dimensionMappings = std::move(value); }
82 inline DataModel& WithDimensionMappings(Aws::Vector<DimensionMapping>&& value) { SetDimensionMappings(std::move(value)); return *this;}
83 inline DataModel& AddDimensionMappings(const DimensionMapping& value) { m_dimensionMappingsHasBeenSet = true; m_dimensionMappings.push_back(value); return *this; }
84 inline DataModel& AddDimensionMappings(DimensionMapping&& value) { m_dimensionMappingsHasBeenSet = true; m_dimensionMappings.push_back(std::move(value)); return *this; }
86
88
91 inline const MultiMeasureMappings& GetMultiMeasureMappings() const{ return m_multiMeasureMappings; }
92 inline bool MultiMeasureMappingsHasBeenSet() const { return m_multiMeasureMappingsHasBeenSet; }
93 inline void SetMultiMeasureMappings(const MultiMeasureMappings& value) { m_multiMeasureMappingsHasBeenSet = true; m_multiMeasureMappings = value; }
94 inline void SetMultiMeasureMappings(MultiMeasureMappings&& value) { m_multiMeasureMappingsHasBeenSet = true; m_multiMeasureMappings = std::move(value); }
96 inline DataModel& WithMultiMeasureMappings(MultiMeasureMappings&& value) { SetMultiMeasureMappings(std::move(value)); return *this;}
98
100
103 inline const Aws::Vector<MixedMeasureMapping>& GetMixedMeasureMappings() const{ return m_mixedMeasureMappings; }
104 inline bool MixedMeasureMappingsHasBeenSet() const { return m_mixedMeasureMappingsHasBeenSet; }
105 inline void SetMixedMeasureMappings(const Aws::Vector<MixedMeasureMapping>& value) { m_mixedMeasureMappingsHasBeenSet = true; m_mixedMeasureMappings = value; }
106 inline void SetMixedMeasureMappings(Aws::Vector<MixedMeasureMapping>&& value) { m_mixedMeasureMappingsHasBeenSet = true; m_mixedMeasureMappings = std::move(value); }
109 inline DataModel& AddMixedMeasureMappings(const MixedMeasureMapping& value) { m_mixedMeasureMappingsHasBeenSet = true; m_mixedMeasureMappings.push_back(value); return *this; }
110 inline DataModel& AddMixedMeasureMappings(MixedMeasureMapping&& value) { m_mixedMeasureMappingsHasBeenSet = true; m_mixedMeasureMappings.push_back(std::move(value)); return *this; }
112
114
117 inline const Aws::String& GetMeasureNameColumn() const{ return m_measureNameColumn; }
118 inline bool MeasureNameColumnHasBeenSet() const { return m_measureNameColumnHasBeenSet; }
119 inline void SetMeasureNameColumn(const Aws::String& value) { m_measureNameColumnHasBeenSet = true; m_measureNameColumn = value; }
120 inline void SetMeasureNameColumn(Aws::String&& value) { m_measureNameColumnHasBeenSet = true; m_measureNameColumn = std::move(value); }
121 inline void SetMeasureNameColumn(const char* value) { m_measureNameColumnHasBeenSet = true; m_measureNameColumn.assign(value); }
122 inline DataModel& WithMeasureNameColumn(const Aws::String& value) { SetMeasureNameColumn(value); return *this;}
123 inline DataModel& WithMeasureNameColumn(Aws::String&& value) { SetMeasureNameColumn(std::move(value)); return *this;}
124 inline DataModel& WithMeasureNameColumn(const char* value) { SetMeasureNameColumn(value); return *this;}
126 private:
127
128 Aws::String m_timeColumn;
129 bool m_timeColumnHasBeenSet = false;
130
131 TimeUnit m_timeUnit;
132 bool m_timeUnitHasBeenSet = false;
133
134 Aws::Vector<DimensionMapping> m_dimensionMappings;
135 bool m_dimensionMappingsHasBeenSet = false;
136
137 MultiMeasureMappings m_multiMeasureMappings;
138 bool m_multiMeasureMappingsHasBeenSet = false;
139
140 Aws::Vector<MixedMeasureMapping> m_mixedMeasureMappings;
141 bool m_mixedMeasureMappingsHasBeenSet = false;
142
143 Aws::String m_measureNameColumn;
144 bool m_measureNameColumnHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace TimestreamWrite
149} // namespace Aws
const Aws::Vector< DimensionMapping > & GetDimensionMappings() const
Definition DataModel.h:77
const Aws::Vector< MixedMeasureMapping > & GetMixedMeasureMappings() const
Definition DataModel.h:103
DataModel & AddMixedMeasureMappings(MixedMeasureMapping &&value)
Definition DataModel.h:110
DataModel & WithMultiMeasureMappings(const MultiMeasureMappings &value)
Definition DataModel.h:95
DataModel & AddMixedMeasureMappings(const MixedMeasureMapping &value)
Definition DataModel.h:109
void SetMultiMeasureMappings(MultiMeasureMappings &&value)
Definition DataModel.h:94
void SetTimeUnit(const TimeUnit &value)
Definition DataModel.h:67
DataModel & WithMeasureNameColumn(const Aws::String &value)
Definition DataModel.h:122
AWS_TIMESTREAMWRITE_API DataModel & operator=(Aws::Utils::Json::JsonView jsonValue)
DataModel & AddDimensionMappings(const DimensionMapping &value)
Definition DataModel.h:83
void SetMultiMeasureMappings(const MultiMeasureMappings &value)
Definition DataModel.h:93
DataModel & WithDimensionMappings(const Aws::Vector< DimensionMapping > &value)
Definition DataModel.h:81
const Aws::String & GetMeasureNameColumn() const
Definition DataModel.h:117
void SetMeasureNameColumn(const char *value)
Definition DataModel.h:121
DataModel & WithTimeColumn(Aws::String &&value)
Definition DataModel.h:55
const TimeUnit & GetTimeUnit() const
Definition DataModel.h:65
void SetDimensionMappings(const Aws::Vector< DimensionMapping > &value)
Definition DataModel.h:79
DataModel & WithTimeColumn(const char *value)
Definition DataModel.h:56
DataModel & WithMixedMeasureMappings(const Aws::Vector< MixedMeasureMapping > &value)
Definition DataModel.h:107
DataModel & WithTimeUnit(const TimeUnit &value)
Definition DataModel.h:69
DataModel & WithDimensionMappings(Aws::Vector< DimensionMapping > &&value)
Definition DataModel.h:82
AWS_TIMESTREAMWRITE_API DataModel()
void SetTimeUnit(TimeUnit &&value)
Definition DataModel.h:68
DataModel & WithMultiMeasureMappings(MultiMeasureMappings &&value)
Definition DataModel.h:96
const MultiMeasureMappings & GetMultiMeasureMappings() const
Definition DataModel.h:91
DataModel & WithMeasureNameColumn(Aws::String &&value)
Definition DataModel.h:123
void SetMixedMeasureMappings(const Aws::Vector< MixedMeasureMapping > &value)
Definition DataModel.h:105
void SetTimeColumn(const char *value)
Definition DataModel.h:53
void SetTimeColumn(const Aws::String &value)
Definition DataModel.h:51
const Aws::String & GetTimeColumn() const
Definition DataModel.h:49
void SetDimensionMappings(Aws::Vector< DimensionMapping > &&value)
Definition DataModel.h:80
DataModel & WithTimeUnit(TimeUnit &&value)
Definition DataModel.h:70
DataModel & WithMeasureNameColumn(const char *value)
Definition DataModel.h:124
void SetMeasureNameColumn(Aws::String &&value)
Definition DataModel.h:120
void SetTimeColumn(Aws::String &&value)
Definition DataModel.h:52
AWS_TIMESTREAMWRITE_API DataModel(Aws::Utils::Json::JsonView jsonValue)
DataModel & AddDimensionMappings(DimensionMapping &&value)
Definition DataModel.h:84
DataModel & WithTimeColumn(const Aws::String &value)
Definition DataModel.h:54
void SetMeasureNameColumn(const Aws::String &value)
Definition DataModel.h:119
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMixedMeasureMappings(Aws::Vector< MixedMeasureMapping > &&value)
Definition DataModel.h:106
DataModel & WithMixedMeasureMappings(Aws::Vector< MixedMeasureMapping > &&value)
Definition DataModel.h:108
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue