AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DataSource.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/quicksight/model/DataSourceType.h>
10#include <aws/quicksight/model/ResourceStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/quicksight/model/DataSourceParameters.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/quicksight/model/VpcConnectionProperties.h>
15#include <aws/quicksight/model/SslProperties.h>
16#include <aws/quicksight/model/DataSourceErrorInfo.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace QuickSight
30{
31namespace Model
32{
33
40 {
41 public:
42 AWS_QUICKSIGHT_API DataSource();
43 AWS_QUICKSIGHT_API DataSource(Aws::Utils::Json::JsonView jsonValue);
44 AWS_QUICKSIGHT_API DataSource& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetArn() const{ return m_arn; }
53 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
54 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
55 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
56 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
57 inline DataSource& WithArn(const Aws::String& value) { SetArn(value); return *this;}
58 inline DataSource& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
59 inline DataSource& WithArn(const char* value) { SetArn(value); return *this;}
61
63
67 inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; }
68 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
69 inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; }
70 inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); }
71 inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); }
72 inline DataSource& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;}
73 inline DataSource& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;}
74 inline DataSource& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;}
76
78
81 inline const Aws::String& GetName() const{ return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
84 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
85 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
86 inline DataSource& WithName(const Aws::String& value) { SetName(value); return *this;}
87 inline DataSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
88 inline DataSource& WithName(const char* value) { SetName(value); return *this;}
90
92
96 inline const DataSourceType& GetType() const{ return m_type; }
97 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
98 inline void SetType(const DataSourceType& value) { m_typeHasBeenSet = true; m_type = value; }
99 inline void SetType(DataSourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
100 inline DataSource& WithType(const DataSourceType& value) { SetType(value); return *this;}
101 inline DataSource& WithType(DataSourceType&& value) { SetType(std::move(value)); return *this;}
103
105
108 inline const ResourceStatus& GetStatus() const{ return m_status; }
109 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
110 inline void SetStatus(const ResourceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
111 inline void SetStatus(ResourceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
112 inline DataSource& WithStatus(const ResourceStatus& value) { SetStatus(value); return *this;}
113 inline DataSource& WithStatus(ResourceStatus&& value) { SetStatus(std::move(value)); return *this;}
115
117
120 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
121 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
122 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
123 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
124 inline DataSource& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
125 inline DataSource& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
127
129
132 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
133 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
134 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
135 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
136 inline DataSource& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
137 inline DataSource& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
139
141
146 inline const DataSourceParameters& GetDataSourceParameters() const{ return m_dataSourceParameters; }
147 inline bool DataSourceParametersHasBeenSet() const { return m_dataSourceParametersHasBeenSet; }
148 inline void SetDataSourceParameters(const DataSourceParameters& value) { m_dataSourceParametersHasBeenSet = true; m_dataSourceParameters = value; }
149 inline void SetDataSourceParameters(DataSourceParameters&& value) { m_dataSourceParametersHasBeenSet = true; m_dataSourceParameters = std::move(value); }
151 inline DataSource& WithDataSourceParameters(DataSourceParameters&& value) { SetDataSourceParameters(std::move(value)); return *this;}
153
155
167 inline const Aws::Vector<DataSourceParameters>& GetAlternateDataSourceParameters() const{ return m_alternateDataSourceParameters; }
168 inline bool AlternateDataSourceParametersHasBeenSet() const { return m_alternateDataSourceParametersHasBeenSet; }
169 inline void SetAlternateDataSourceParameters(const Aws::Vector<DataSourceParameters>& value) { m_alternateDataSourceParametersHasBeenSet = true; m_alternateDataSourceParameters = value; }
170 inline void SetAlternateDataSourceParameters(Aws::Vector<DataSourceParameters>&& value) { m_alternateDataSourceParametersHasBeenSet = true; m_alternateDataSourceParameters = std::move(value); }
173 inline DataSource& AddAlternateDataSourceParameters(const DataSourceParameters& value) { m_alternateDataSourceParametersHasBeenSet = true; m_alternateDataSourceParameters.push_back(value); return *this; }
174 inline DataSource& AddAlternateDataSourceParameters(DataSourceParameters&& value) { m_alternateDataSourceParametersHasBeenSet = true; m_alternateDataSourceParameters.push_back(std::move(value)); return *this; }
176
178
183 inline const VpcConnectionProperties& GetVpcConnectionProperties() const{ return m_vpcConnectionProperties; }
184 inline bool VpcConnectionPropertiesHasBeenSet() const { return m_vpcConnectionPropertiesHasBeenSet; }
185 inline void SetVpcConnectionProperties(const VpcConnectionProperties& value) { m_vpcConnectionPropertiesHasBeenSet = true; m_vpcConnectionProperties = value; }
186 inline void SetVpcConnectionProperties(VpcConnectionProperties&& value) { m_vpcConnectionPropertiesHasBeenSet = true; m_vpcConnectionProperties = std::move(value); }
190
192
196 inline const SslProperties& GetSslProperties() const{ return m_sslProperties; }
197 inline bool SslPropertiesHasBeenSet() const { return m_sslPropertiesHasBeenSet; }
198 inline void SetSslProperties(const SslProperties& value) { m_sslPropertiesHasBeenSet = true; m_sslProperties = value; }
199 inline void SetSslProperties(SslProperties&& value) { m_sslPropertiesHasBeenSet = true; m_sslProperties = std::move(value); }
200 inline DataSource& WithSslProperties(const SslProperties& value) { SetSslProperties(value); return *this;}
201 inline DataSource& WithSslProperties(SslProperties&& value) { SetSslProperties(std::move(value)); return *this;}
203
205
209 inline const DataSourceErrorInfo& GetErrorInfo() const{ return m_errorInfo; }
210 inline bool ErrorInfoHasBeenSet() const { return m_errorInfoHasBeenSet; }
211 inline void SetErrorInfo(const DataSourceErrorInfo& value) { m_errorInfoHasBeenSet = true; m_errorInfo = value; }
212 inline void SetErrorInfo(DataSourceErrorInfo&& value) { m_errorInfoHasBeenSet = true; m_errorInfo = std::move(value); }
213 inline DataSource& WithErrorInfo(const DataSourceErrorInfo& value) { SetErrorInfo(value); return *this;}
214 inline DataSource& WithErrorInfo(DataSourceErrorInfo&& value) { SetErrorInfo(std::move(value)); return *this;}
216
218
222 inline const Aws::String& GetSecretArn() const{ return m_secretArn; }
223 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
224 inline void SetSecretArn(const Aws::String& value) { m_secretArnHasBeenSet = true; m_secretArn = value; }
225 inline void SetSecretArn(Aws::String&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::move(value); }
226 inline void SetSecretArn(const char* value) { m_secretArnHasBeenSet = true; m_secretArn.assign(value); }
227 inline DataSource& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;}
228 inline DataSource& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;}
229 inline DataSource& WithSecretArn(const char* value) { SetSecretArn(value); return *this;}
231 private:
232
233 Aws::String m_arn;
234 bool m_arnHasBeenSet = false;
235
236 Aws::String m_dataSourceId;
237 bool m_dataSourceIdHasBeenSet = false;
238
239 Aws::String m_name;
240 bool m_nameHasBeenSet = false;
241
242 DataSourceType m_type;
243 bool m_typeHasBeenSet = false;
244
245 ResourceStatus m_status;
246 bool m_statusHasBeenSet = false;
247
248 Aws::Utils::DateTime m_createdTime;
249 bool m_createdTimeHasBeenSet = false;
250
251 Aws::Utils::DateTime m_lastUpdatedTime;
252 bool m_lastUpdatedTimeHasBeenSet = false;
253
254 DataSourceParameters m_dataSourceParameters;
255 bool m_dataSourceParametersHasBeenSet = false;
256
257 Aws::Vector<DataSourceParameters> m_alternateDataSourceParameters;
258 bool m_alternateDataSourceParametersHasBeenSet = false;
259
260 VpcConnectionProperties m_vpcConnectionProperties;
261 bool m_vpcConnectionPropertiesHasBeenSet = false;
262
263 SslProperties m_sslProperties;
264 bool m_sslPropertiesHasBeenSet = false;
265
266 DataSourceErrorInfo m_errorInfo;
267 bool m_errorInfoHasBeenSet = false;
268
269 Aws::String m_secretArn;
270 bool m_secretArnHasBeenSet = false;
271 };
272
273} // namespace Model
274} // namespace QuickSight
275} // namespace Aws
void SetStatus(const ResourceStatus &value)
Definition DataSource.h:110
DataSource & WithStatus(ResourceStatus &&value)
Definition DataSource.h:113
DataSource & WithErrorInfo(const DataSourceErrorInfo &value)
Definition DataSource.h:213
DataSource & WithArn(Aws::String &&value)
Definition DataSource.h:58
DataSource & WithCreatedTime(const Aws::Utils::DateTime &value)
Definition DataSource.h:124
DataSource & WithDataSourceId(Aws::String &&value)
Definition DataSource.h:73
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition DataSource.h:135
DataSource & AddAlternateDataSourceParameters(DataSourceParameters &&value)
Definition DataSource.h:174
void SetAlternateDataSourceParameters(Aws::Vector< DataSourceParameters > &&value)
Definition DataSource.h:170
DataSource & WithType(const DataSourceType &value)
Definition DataSource.h:100
DataSource & WithStatus(const ResourceStatus &value)
Definition DataSource.h:112
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSslProperties(const SslProperties &value)
Definition DataSource.h:198
void SetDataSourceId(Aws::String &&value)
Definition DataSource.h:70
void SetName(const Aws::String &value)
Definition DataSource.h:83
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition DataSource.h:134
const Aws::String & GetArn() const
Definition DataSource.h:52
bool VpcConnectionPropertiesHasBeenSet() const
Definition DataSource.h:184
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition DataSource.h:132
void SetArn(Aws::String &&value)
Definition DataSource.h:55
DataSource & WithErrorInfo(DataSourceErrorInfo &&value)
Definition DataSource.h:214
void SetType(DataSourceType &&value)
Definition DataSource.h:99
DataSource & WithSslProperties(const SslProperties &value)
Definition DataSource.h:200
void SetSslProperties(SslProperties &&value)
Definition DataSource.h:199
DataSource & WithDataSourceId(const char *value)
Definition DataSource.h:74
AWS_QUICKSIGHT_API DataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(ResourceStatus &&value)
Definition DataSource.h:111
void SetArn(const char *value)
Definition DataSource.h:56
DataSource & WithType(DataSourceType &&value)
Definition DataSource.h:101
void SetType(const DataSourceType &value)
Definition DataSource.h:98
void SetDataSourceId(const Aws::String &value)
Definition DataSource.h:69
DataSource & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition DataSource.h:136
DataSource & WithSslProperties(SslProperties &&value)
Definition DataSource.h:201
void SetDataSourceId(const char *value)
Definition DataSource.h:71
DataSource & WithAlternateDataSourceParameters(const Aws::Vector< DataSourceParameters > &value)
Definition DataSource.h:171
const Aws::Utils::DateTime & GetCreatedTime() const
Definition DataSource.h:120
void SetName(Aws::String &&value)
Definition DataSource.h:84
void SetSecretArn(const char *value)
Definition DataSource.h:226
DataSource & WithVpcConnectionProperties(const VpcConnectionProperties &value)
Definition DataSource.h:187
DataSource & WithSecretArn(Aws::String &&value)
Definition DataSource.h:228
DataSource & WithDataSourceParameters(const DataSourceParameters &value)
Definition DataSource.h:150
AWS_QUICKSIGHT_API DataSource(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API DataSource()
void SetSecretArn(Aws::String &&value)
Definition DataSource.h:225
const VpcConnectionProperties & GetVpcConnectionProperties() const
Definition DataSource.h:183
DataSource & WithDataSourceId(const Aws::String &value)
Definition DataSource.h:72
void SetName(const char *value)
Definition DataSource.h:85
void SetSecretArn(const Aws::String &value)
Definition DataSource.h:224
void SetArn(const Aws::String &value)
Definition DataSource.h:54
const Aws::String & GetSecretArn() const
Definition DataSource.h:222
const DataSourceType & GetType() const
Definition DataSource.h:96
void SetDataSourceParameters(DataSourceParameters &&value)
Definition DataSource.h:149
const Aws::String & GetDataSourceId() const
Definition DataSource.h:67
void SetVpcConnectionProperties(VpcConnectionProperties &&value)
Definition DataSource.h:186
DataSource & WithArn(const Aws::String &value)
Definition DataSource.h:57
void SetCreatedTime(const Aws::Utils::DateTime &value)
Definition DataSource.h:122
DataSource & WithAlternateDataSourceParameters(Aws::Vector< DataSourceParameters > &&value)
Definition DataSource.h:172
void SetErrorInfo(const DataSourceErrorInfo &value)
Definition DataSource.h:211
bool AlternateDataSourceParametersHasBeenSet() const
Definition DataSource.h:168
DataSource & WithSecretArn(const char *value)
Definition DataSource.h:229
DataSource & AddAlternateDataSourceParameters(const DataSourceParameters &value)
Definition DataSource.h:173
void SetVpcConnectionProperties(const VpcConnectionProperties &value)
Definition DataSource.h:185
DataSource & WithName(Aws::String &&value)
Definition DataSource.h:87
DataSource & WithVpcConnectionProperties(VpcConnectionProperties &&value)
Definition DataSource.h:188
const SslProperties & GetSslProperties() const
Definition DataSource.h:196
void SetCreatedTime(Aws::Utils::DateTime &&value)
Definition DataSource.h:123
const ResourceStatus & GetStatus() const
Definition DataSource.h:108
const DataSourceParameters & GetDataSourceParameters() const
Definition DataSource.h:146
const Aws::String & GetName() const
Definition DataSource.h:81
void SetAlternateDataSourceParameters(const Aws::Vector< DataSourceParameters > &value)
Definition DataSource.h:169
DataSource & WithName(const Aws::String &value)
Definition DataSource.h:86
DataSource & WithArn(const char *value)
Definition DataSource.h:59
DataSource & WithSecretArn(const Aws::String &value)
Definition DataSource.h:227
DataSource & WithCreatedTime(Aws::Utils::DateTime &&value)
Definition DataSource.h:125
void SetDataSourceParameters(const DataSourceParameters &value)
Definition DataSource.h:148
DataSource & WithDataSourceParameters(DataSourceParameters &&value)
Definition DataSource.h:151
void SetErrorInfo(DataSourceErrorInfo &&value)
Definition DataSource.h:212
DataSource & WithName(const char *value)
Definition DataSource.h:88
const DataSourceErrorInfo & GetErrorInfo() const
Definition DataSource.h:209
const Aws::Vector< DataSourceParameters > & GetAlternateDataSourceParameters() const
Definition DataSource.h:167
DataSource & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition DataSource.h:137
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue