AWS SDK for C++

AWS SDK for C++ Version 1.11.878

Loading...
Searching...
No Matches
InfluxDBAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/InfluxDBBatchConfig.h>
11#include <aws/iot/model/InfluxDBTimestampUnit.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT {
23namespace Model {
24
36 public:
37 AWS_IOT_API InfluxDBAction() = default;
41
43
47 inline const Aws::String& GetDestinationArn() const { return m_destinationArn; }
48 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
49 template <typename DestinationArnT = Aws::String>
50 void SetDestinationArn(DestinationArnT&& value) {
51 m_destinationArnHasBeenSet = true;
52 m_destinationArn = std::forward<DestinationArnT>(value);
53 }
54 template <typename DestinationArnT = Aws::String>
55 InfluxDBAction& WithDestinationArn(DestinationArnT&& value) {
56 SetDestinationArn(std::forward<DestinationArnT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
67 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
68 template <typename RoleArnT = Aws::String>
69 void SetRoleArn(RoleArnT&& value) {
70 m_roleArnHasBeenSet = true;
71 m_roleArn = std::forward<RoleArnT>(value);
72 }
73 template <typename RoleArnT = Aws::String>
74 InfluxDBAction& WithRoleArn(RoleArnT&& value) {
75 SetRoleArn(std::forward<RoleArnT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
86 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
87 template <typename DatabaseNameT = Aws::String>
88 void SetDatabaseName(DatabaseNameT&& value) {
89 m_databaseNameHasBeenSet = true;
90 m_databaseName = std::forward<DatabaseNameT>(value);
91 }
92 template <typename DatabaseNameT = Aws::String>
93 InfluxDBAction& WithDatabaseName(DatabaseNameT&& value) {
94 SetDatabaseName(std::forward<DatabaseNameT>(value));
95 return *this;
96 }
98
100
105 inline const Aws::String& GetTableName() const { return m_tableName; }
106 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
107 template <typename TableNameT = Aws::String>
108 void SetTableName(TableNameT&& value) {
109 m_tableNameHasBeenSet = true;
110 m_tableName = std::forward<TableNameT>(value);
111 }
112 template <typename TableNameT = Aws::String>
113 InfluxDBAction& WithTableName(TableNameT&& value) {
114 SetTableName(std::forward<TableNameT>(value));
115 return *this;
116 }
118
120
125 inline const Aws::String& GetOrganization() const { return m_organization; }
126 inline bool OrganizationHasBeenSet() const { return m_organizationHasBeenSet; }
127 template <typename OrganizationT = Aws::String>
128 void SetOrganization(OrganizationT&& value) {
129 m_organizationHasBeenSet = true;
130 m_organization = std::forward<OrganizationT>(value);
131 }
132 template <typename OrganizationT = Aws::String>
133 InfluxDBAction& WithOrganization(OrganizationT&& value) {
134 SetOrganization(std::forward<OrganizationT>(value));
135 return *this;
136 }
138
140
146 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
147 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
148 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
149 void SetTags(TagsT&& value) {
150 m_tagsHasBeenSet = true;
151 m_tags = std::forward<TagsT>(value);
152 }
153 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
154 InfluxDBAction& WithTags(TagsT&& value) {
155 SetTags(std::forward<TagsT>(value));
156 return *this;
157 }
158 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
159 InfluxDBAction& AddTags(TagsKeyT&& key, TagsValueT&& value) {
160 m_tagsHasBeenSet = true;
161 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
162 return *this;
163 }
165
167
173 inline InfluxDBTimestampUnit GetTimestampUnit() const { return m_timestampUnit; }
174 inline bool TimestampUnitHasBeenSet() const { return m_timestampUnitHasBeenSet; }
176 m_timestampUnitHasBeenSet = true;
177 m_timestampUnit = value;
178 }
180 SetTimestampUnit(value);
181 return *this;
182 }
184
186
192 inline const InfluxDBBatchConfig& GetBatchConfig() const { return m_batchConfig; }
193 inline bool BatchConfigHasBeenSet() const { return m_batchConfigHasBeenSet; }
194 template <typename BatchConfigT = InfluxDBBatchConfig>
195 void SetBatchConfig(BatchConfigT&& value) {
196 m_batchConfigHasBeenSet = true;
197 m_batchConfig = std::forward<BatchConfigT>(value);
198 }
199 template <typename BatchConfigT = InfluxDBBatchConfig>
200 InfluxDBAction& WithBatchConfig(BatchConfigT&& value) {
201 SetBatchConfig(std::forward<BatchConfigT>(value));
202 return *this;
203 }
205 private:
206 Aws::String m_destinationArn;
207
208 Aws::String m_roleArn;
209
210 Aws::String m_databaseName;
211
212 Aws::String m_tableName;
213
214 Aws::String m_organization;
215
217
219
220 InfluxDBBatchConfig m_batchConfig;
221 bool m_destinationArnHasBeenSet = false;
222 bool m_roleArnHasBeenSet = false;
223 bool m_databaseNameHasBeenSet = false;
224 bool m_tableNameHasBeenSet = false;
225 bool m_organizationHasBeenSet = false;
226 bool m_tagsHasBeenSet = false;
227 bool m_timestampUnitHasBeenSet = false;
228 bool m_batchConfigHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace IoT
233} // namespace Aws
const InfluxDBBatchConfig & GetBatchConfig() const
const Aws::String & GetTableName() const
const Aws::String & GetDatabaseName() const
AWS_IOT_API InfluxDBAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTimestampUnit(InfluxDBTimestampUnit value)
const Aws::String & GetRoleArn() const
void SetTableName(TableNameT &&value)
InfluxDBAction & WithOrganization(OrganizationT &&value)
InfluxDBAction & WithTableName(TableNameT &&value)
InfluxDBAction & WithRoleArn(RoleArnT &&value)
InfluxDBAction & WithDestinationArn(DestinationArnT &&value)
InfluxDBAction & WithTimestampUnit(InfluxDBTimestampUnit value)
InfluxDBAction & WithBatchConfig(BatchConfigT &&value)
InfluxDBTimestampUnit GetTimestampUnit() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
InfluxDBAction & WithDatabaseName(DatabaseNameT &&value)
InfluxDBAction & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetDestinationArn() const
AWS_IOT_API InfluxDBAction(Aws::Utils::Json::JsonView jsonValue)
void SetBatchConfig(BatchConfigT &&value)
AWS_IOT_API InfluxDBAction()=default
void SetRoleArn(RoleArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetOrganization() const
void SetOrganization(OrganizationT &&value)
void SetDatabaseName(DatabaseNameT &&value)
void SetDestinationArn(DestinationArnT &&value)
InfluxDBAction & WithTags(TagsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue