AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
DataSource.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/CredentialStatus.h>
12#include <aws/quicksight/model/DataSourceErrorInfo.h>
13#include <aws/quicksight/model/DataSourceParameters.h>
14#include <aws/quicksight/model/DataSourceType.h>
15#include <aws/quicksight/model/ResourceStatus.h>
16#include <aws/quicksight/model/SslProperties.h>
17#include <aws/quicksight/model/VpcConnectionProperties.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace QuickSight {
29namespace Model {
30
37 public:
38 AWS_QUICKSIGHT_API DataSource() = default;
39 AWS_QUICKSIGHT_API DataSource(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QUICKSIGHT_API DataSource& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetArn() const { return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 template <typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) {
51 m_arnHasBeenSet = true;
52 m_arn = std::forward<ArnT>(value);
53 }
54 template <typename ArnT = Aws::String>
55 DataSource& WithArn(ArnT&& value) {
56 SetArn(std::forward<ArnT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
67 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
68 template <typename DataSourceIdT = Aws::String>
69 void SetDataSourceId(DataSourceIdT&& value) {
70 m_dataSourceIdHasBeenSet = true;
71 m_dataSourceId = std::forward<DataSourceIdT>(value);
72 }
73 template <typename DataSourceIdT = Aws::String>
74 DataSource& WithDataSourceId(DataSourceIdT&& value) {
75 SetDataSourceId(std::forward<DataSourceIdT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetName() const { return m_name; }
85 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
86 template <typename NameT = Aws::String>
87 void SetName(NameT&& value) {
88 m_nameHasBeenSet = true;
89 m_name = std::forward<NameT>(value);
90 }
91 template <typename NameT = Aws::String>
92 DataSource& WithName(NameT&& value) {
93 SetName(std::forward<NameT>(value));
94 return *this;
95 }
97
99
103 inline DataSourceType GetType() const { return m_type; }
104 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
105 inline void SetType(DataSourceType value) {
106 m_typeHasBeenSet = true;
107 m_type = value;
108 }
110 SetType(value);
111 return *this;
112 }
114
116
119 inline ResourceStatus GetStatus() const { return m_status; }
120 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
121 inline void SetStatus(ResourceStatus value) {
122 m_statusHasBeenSet = true;
123 m_status = value;
124 }
126 SetStatus(value);
127 return *this;
128 }
130
132
135 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
136 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
137 template <typename CreatedTimeT = Aws::Utils::DateTime>
138 void SetCreatedTime(CreatedTimeT&& value) {
139 m_createdTimeHasBeenSet = true;
140 m_createdTime = std::forward<CreatedTimeT>(value);
141 }
142 template <typename CreatedTimeT = Aws::Utils::DateTime>
143 DataSource& WithCreatedTime(CreatedTimeT&& value) {
144 SetCreatedTime(std::forward<CreatedTimeT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
154 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
155 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
156 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
157 m_lastUpdatedTimeHasBeenSet = true;
158 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
159 }
160 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
161 DataSource& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
162 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
163 return *this;
164 }
166
168
173 inline const DataSourceParameters& GetDataSourceParameters() const { return m_dataSourceParameters; }
174 inline bool DataSourceParametersHasBeenSet() const { return m_dataSourceParametersHasBeenSet; }
175 template <typename DataSourceParametersT = DataSourceParameters>
176 void SetDataSourceParameters(DataSourceParametersT&& value) {
177 m_dataSourceParametersHasBeenSet = true;
178 m_dataSourceParameters = std::forward<DataSourceParametersT>(value);
179 }
180 template <typename DataSourceParametersT = DataSourceParameters>
181 DataSource& WithDataSourceParameters(DataSourceParametersT&& value) {
182 SetDataSourceParameters(std::forward<DataSourceParametersT>(value));
183 return *this;
184 }
186
188
200 inline const Aws::Vector<DataSourceParameters>& GetAlternateDataSourceParameters() const { return m_alternateDataSourceParameters; }
201 inline bool AlternateDataSourceParametersHasBeenSet() const { return m_alternateDataSourceParametersHasBeenSet; }
202 template <typename AlternateDataSourceParametersT = Aws::Vector<DataSourceParameters>>
203 void SetAlternateDataSourceParameters(AlternateDataSourceParametersT&& value) {
204 m_alternateDataSourceParametersHasBeenSet = true;
205 m_alternateDataSourceParameters = std::forward<AlternateDataSourceParametersT>(value);
206 }
207 template <typename AlternateDataSourceParametersT = Aws::Vector<DataSourceParameters>>
208 DataSource& WithAlternateDataSourceParameters(AlternateDataSourceParametersT&& value) {
209 SetAlternateDataSourceParameters(std::forward<AlternateDataSourceParametersT>(value));
210 return *this;
211 }
212 template <typename AlternateDataSourceParametersT = DataSourceParameters>
213 DataSource& AddAlternateDataSourceParameters(AlternateDataSourceParametersT&& value) {
214 m_alternateDataSourceParametersHasBeenSet = true;
215 m_alternateDataSourceParameters.emplace_back(std::forward<AlternateDataSourceParametersT>(value));
216 return *this;
217 }
219
221
226 inline const VpcConnectionProperties& GetVpcConnectionProperties() const { return m_vpcConnectionProperties; }
227 inline bool VpcConnectionPropertiesHasBeenSet() const { return m_vpcConnectionPropertiesHasBeenSet; }
228 template <typename VpcConnectionPropertiesT = VpcConnectionProperties>
229 void SetVpcConnectionProperties(VpcConnectionPropertiesT&& value) {
230 m_vpcConnectionPropertiesHasBeenSet = true;
231 m_vpcConnectionProperties = std::forward<VpcConnectionPropertiesT>(value);
232 }
233 template <typename VpcConnectionPropertiesT = VpcConnectionProperties>
234 DataSource& WithVpcConnectionProperties(VpcConnectionPropertiesT&& value) {
235 SetVpcConnectionProperties(std::forward<VpcConnectionPropertiesT>(value));
236 return *this;
237 }
239
241
245 inline const SslProperties& GetSslProperties() const { return m_sslProperties; }
246 inline bool SslPropertiesHasBeenSet() const { return m_sslPropertiesHasBeenSet; }
247 template <typename SslPropertiesT = SslProperties>
248 void SetSslProperties(SslPropertiesT&& value) {
249 m_sslPropertiesHasBeenSet = true;
250 m_sslProperties = std::forward<SslPropertiesT>(value);
251 }
252 template <typename SslPropertiesT = SslProperties>
253 DataSource& WithSslProperties(SslPropertiesT&& value) {
254 SetSslProperties(std::forward<SslPropertiesT>(value));
255 return *this;
256 }
258
260
264 inline const DataSourceErrorInfo& GetErrorInfo() const { return m_errorInfo; }
265 inline bool ErrorInfoHasBeenSet() const { return m_errorInfoHasBeenSet; }
266 template <typename ErrorInfoT = DataSourceErrorInfo>
267 void SetErrorInfo(ErrorInfoT&& value) {
268 m_errorInfoHasBeenSet = true;
269 m_errorInfo = std::forward<ErrorInfoT>(value);
270 }
271 template <typename ErrorInfoT = DataSourceErrorInfo>
272 DataSource& WithErrorInfo(ErrorInfoT&& value) {
273 SetErrorInfo(std::forward<ErrorInfoT>(value));
274 return *this;
275 }
277
279
283 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
284 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
285 template <typename SecretArnT = Aws::String>
286 void SetSecretArn(SecretArnT&& value) {
287 m_secretArnHasBeenSet = true;
288 m_secretArn = std::forward<SecretArnT>(value);
289 }
290 template <typename SecretArnT = Aws::String>
291 DataSource& WithSecretArn(SecretArnT&& value) {
292 SetSecretArn(std::forward<SecretArnT>(value));
293 return *this;
294 }
296
298
305 inline CredentialStatus GetCredentialStatus() const { return m_credentialStatus; }
306 inline bool CredentialStatusHasBeenSet() const { return m_credentialStatusHasBeenSet; }
308 m_credentialStatusHasBeenSet = true;
309 m_credentialStatus = value;
310 }
312 SetCredentialStatus(value);
313 return *this;
314 }
316
318
321 inline const Aws::Utils::DateTime& GetLastCredentialVerifiedAt() const { return m_lastCredentialVerifiedAt; }
322 inline bool LastCredentialVerifiedAtHasBeenSet() const { return m_lastCredentialVerifiedAtHasBeenSet; }
323 template <typename LastCredentialVerifiedAtT = Aws::Utils::DateTime>
324 void SetLastCredentialVerifiedAt(LastCredentialVerifiedAtT&& value) {
325 m_lastCredentialVerifiedAtHasBeenSet = true;
326 m_lastCredentialVerifiedAt = std::forward<LastCredentialVerifiedAtT>(value);
327 }
328 template <typename LastCredentialVerifiedAtT = Aws::Utils::DateTime>
329 DataSource& WithLastCredentialVerifiedAt(LastCredentialVerifiedAtT&& value) {
330 SetLastCredentialVerifiedAt(std::forward<LastCredentialVerifiedAtT>(value));
331 return *this;
332 }
334 private:
335 Aws::String m_arn;
336
337 Aws::String m_dataSourceId;
338
339 Aws::String m_name;
340
342
344
345 Aws::Utils::DateTime m_createdTime{};
346
347 Aws::Utils::DateTime m_lastUpdatedTime{};
348
349 DataSourceParameters m_dataSourceParameters;
350
351 Aws::Vector<DataSourceParameters> m_alternateDataSourceParameters;
352
353 VpcConnectionProperties m_vpcConnectionProperties;
354
355 SslProperties m_sslProperties;
356
357 DataSourceErrorInfo m_errorInfo;
358
359 Aws::String m_secretArn;
360
362
363 Aws::Utils::DateTime m_lastCredentialVerifiedAt{};
364 bool m_arnHasBeenSet = false;
365 bool m_dataSourceIdHasBeenSet = false;
366 bool m_nameHasBeenSet = false;
367 bool m_typeHasBeenSet = false;
368 bool m_statusHasBeenSet = false;
369 bool m_createdTimeHasBeenSet = false;
370 bool m_lastUpdatedTimeHasBeenSet = false;
371 bool m_dataSourceParametersHasBeenSet = false;
372 bool m_alternateDataSourceParametersHasBeenSet = false;
373 bool m_vpcConnectionPropertiesHasBeenSet = false;
374 bool m_sslPropertiesHasBeenSet = false;
375 bool m_errorInfoHasBeenSet = false;
376 bool m_secretArnHasBeenSet = false;
377 bool m_credentialStatusHasBeenSet = false;
378 bool m_lastCredentialVerifiedAtHasBeenSet = false;
379};
380
381} // namespace Model
382} // namespace QuickSight
383} // namespace Aws
void SetSecretArn(SecretArnT &&value)
Definition DataSource.h:286
void SetCreatedTime(CreatedTimeT &&value)
Definition DataSource.h:138
void SetStatus(ResourceStatus value)
Definition DataSource.h:121
DataSource & WithDataSourceParameters(DataSourceParametersT &&value)
Definition DataSource.h:181
DataSource & WithAlternateDataSourceParameters(AlternateDataSourceParametersT &&value)
Definition DataSource.h:208
DataSource & WithSecretArn(SecretArnT &&value)
Definition DataSource.h:291
void SetLastCredentialVerifiedAt(LastCredentialVerifiedAtT &&value)
Definition DataSource.h:324
DataSource & WithArn(ArnT &&value)
Definition DataSource.h:55
DataSource & WithName(NameT &&value)
Definition DataSource.h:92
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastCredentialVerifiedAt() const
Definition DataSource.h:321
const Aws::String & GetArn() const
Definition DataSource.h:47
bool VpcConnectionPropertiesHasBeenSet() const
Definition DataSource.h:227
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition DataSource.h:153
bool LastCredentialVerifiedAtHasBeenSet() const
Definition DataSource.h:322
DataSource & AddAlternateDataSourceParameters(AlternateDataSourceParametersT &&value)
Definition DataSource.h:213
DataSource & WithVpcConnectionProperties(VpcConnectionPropertiesT &&value)
Definition DataSource.h:234
AWS_QUICKSIGHT_API DataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedTime() const
Definition DataSource.h:135
DataSource & WithLastCredentialVerifiedAt(LastCredentialVerifiedAtT &&value)
Definition DataSource.h:329
AWS_QUICKSIGHT_API DataSource(Aws::Utils::Json::JsonView jsonValue)
void SetDataSourceParameters(DataSourceParametersT &&value)
Definition DataSource.h:176
const VpcConnectionProperties & GetVpcConnectionProperties() const
Definition DataSource.h:226
DataSource & WithStatus(ResourceStatus value)
Definition DataSource.h:125
DataSource & WithSslProperties(SslPropertiesT &&value)
Definition DataSource.h:253
DataSource & WithCreatedTime(CreatedTimeT &&value)
Definition DataSource.h:143
const Aws::String & GetSecretArn() const
Definition DataSource.h:283
void SetCredentialStatus(CredentialStatus value)
Definition DataSource.h:307
const Aws::String & GetDataSourceId() const
Definition DataSource.h:66
DataSource & WithLastUpdatedTime(LastUpdatedTimeT &&value)
Definition DataSource.h:161
AWS_QUICKSIGHT_API DataSource()=default
DataSourceType GetType() const
Definition DataSource.h:103
DataSource & WithType(DataSourceType value)
Definition DataSource.h:109
CredentialStatus GetCredentialStatus() const
Definition DataSource.h:305
bool AlternateDataSourceParametersHasBeenSet() const
Definition DataSource.h:201
void SetDataSourceId(DataSourceIdT &&value)
Definition DataSource.h:69
void SetAlternateDataSourceParameters(AlternateDataSourceParametersT &&value)
Definition DataSource.h:203
const SslProperties & GetSslProperties() const
Definition DataSource.h:245
DataSource & WithErrorInfo(ErrorInfoT &&value)
Definition DataSource.h:272
const DataSourceParameters & GetDataSourceParameters() const
Definition DataSource.h:173
const Aws::String & GetName() const
Definition DataSource.h:84
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
Definition DataSource.h:156
void SetVpcConnectionProperties(VpcConnectionPropertiesT &&value)
Definition DataSource.h:229
void SetErrorInfo(ErrorInfoT &&value)
Definition DataSource.h:267
DataSource & WithCredentialStatus(CredentialStatus value)
Definition DataSource.h:311
ResourceStatus GetStatus() const
Definition DataSource.h:119
void SetSslProperties(SslPropertiesT &&value)
Definition DataSource.h:248
void SetType(DataSourceType value)
Definition DataSource.h:105
DataSource & WithDataSourceId(DataSourceIdT &&value)
Definition DataSource.h:74
const DataSourceErrorInfo & GetErrorInfo() const
Definition DataSource.h:264
const Aws::Vector< DataSourceParameters > & GetAlternateDataSourceParameters() const
Definition DataSource.h:200
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue