AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateDataSourceRequest.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/quicksight/QuickSightRequest.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/DataSourceCredentials.h>
12#include <aws/quicksight/model/DataSourceParameters.h>
13#include <aws/quicksight/model/DataSourceType.h>
14#include <aws/quicksight/model/ResourcePermission.h>
15#include <aws/quicksight/model/SslProperties.h>
16#include <aws/quicksight/model/Tag.h>
17#include <aws/quicksight/model/VpcConnectionProperties.h>
18
19#include <utility>
20
21namespace Aws {
22namespace QuickSight {
23namespace Model {
24
28 public:
29 AWS_QUICKSIGHT_API CreateDataSourceRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateDataSource"; }
36
37 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
38
40
43 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
44 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
45 template <typename AwsAccountIdT = Aws::String>
46 void SetAwsAccountId(AwsAccountIdT&& value) {
47 m_awsAccountIdHasBeenSet = true;
48 m_awsAccountId = std::forward<AwsAccountIdT>(value);
49 }
50 template <typename AwsAccountIdT = Aws::String>
51 CreateDataSourceRequest& WithAwsAccountId(AwsAccountIdT&& value) {
52 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
63 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
64 template <typename DataSourceIdT = Aws::String>
65 void SetDataSourceId(DataSourceIdT&& value) {
66 m_dataSourceIdHasBeenSet = true;
67 m_dataSourceId = std::forward<DataSourceIdT>(value);
68 }
69 template <typename DataSourceIdT = Aws::String>
70 CreateDataSourceRequest& WithDataSourceId(DataSourceIdT&& value) {
71 SetDataSourceId(std::forward<DataSourceIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template <typename NameT = Aws::String>
83 void SetName(NameT&& value) {
84 m_nameHasBeenSet = true;
85 m_name = std::forward<NameT>(value);
86 }
87 template <typename NameT = Aws::String>
89 SetName(std::forward<NameT>(value));
90 return *this;
91 }
93
95
100 inline DataSourceType GetType() const { return m_type; }
101 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
102 inline void SetType(DataSourceType value) {
103 m_typeHasBeenSet = true;
104 m_type = value;
105 }
107 SetType(value);
108 return *this;
109 }
111
113
117 inline const DataSourceParameters& GetDataSourceParameters() const { return m_dataSourceParameters; }
118 inline bool DataSourceParametersHasBeenSet() const { return m_dataSourceParametersHasBeenSet; }
119 template <typename DataSourceParametersT = DataSourceParameters>
120 void SetDataSourceParameters(DataSourceParametersT&& value) {
121 m_dataSourceParametersHasBeenSet = true;
122 m_dataSourceParameters = std::forward<DataSourceParametersT>(value);
123 }
124 template <typename DataSourceParametersT = DataSourceParameters>
125 CreateDataSourceRequest& WithDataSourceParameters(DataSourceParametersT&& value) {
126 SetDataSourceParameters(std::forward<DataSourceParametersT>(value));
127 return *this;
128 }
130
132
137 inline const DataSourceCredentials& GetCredentials() const { return m_credentials; }
138 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
139 template <typename CredentialsT = DataSourceCredentials>
140 void SetCredentials(CredentialsT&& value) {
141 m_credentialsHasBeenSet = true;
142 m_credentials = std::forward<CredentialsT>(value);
143 }
144 template <typename CredentialsT = DataSourceCredentials>
146 SetCredentials(std::forward<CredentialsT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::Vector<ResourcePermission>& GetPermissions() const { return m_permissions; }
156 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
157 template <typename PermissionsT = Aws::Vector<ResourcePermission>>
158 void SetPermissions(PermissionsT&& value) {
159 m_permissionsHasBeenSet = true;
160 m_permissions = std::forward<PermissionsT>(value);
161 }
162 template <typename PermissionsT = Aws::Vector<ResourcePermission>>
164 SetPermissions(std::forward<PermissionsT>(value));
165 return *this;
166 }
167 template <typename PermissionsT = ResourcePermission>
169 m_permissionsHasBeenSet = true;
170 m_permissions.emplace_back(std::forward<PermissionsT>(value));
171 return *this;
172 }
174
176
180 inline const VpcConnectionProperties& GetVpcConnectionProperties() const { return m_vpcConnectionProperties; }
181 inline bool VpcConnectionPropertiesHasBeenSet() const { return m_vpcConnectionPropertiesHasBeenSet; }
182 template <typename VpcConnectionPropertiesT = VpcConnectionProperties>
183 void SetVpcConnectionProperties(VpcConnectionPropertiesT&& value) {
184 m_vpcConnectionPropertiesHasBeenSet = true;
185 m_vpcConnectionProperties = std::forward<VpcConnectionPropertiesT>(value);
186 }
187 template <typename VpcConnectionPropertiesT = VpcConnectionProperties>
188 CreateDataSourceRequest& WithVpcConnectionProperties(VpcConnectionPropertiesT&& value) {
189 SetVpcConnectionProperties(std::forward<VpcConnectionPropertiesT>(value));
190 return *this;
191 }
193
195
199 inline const SslProperties& GetSslProperties() const { return m_sslProperties; }
200 inline bool SslPropertiesHasBeenSet() const { return m_sslPropertiesHasBeenSet; }
201 template <typename SslPropertiesT = SslProperties>
202 void SetSslProperties(SslPropertiesT&& value) {
203 m_sslPropertiesHasBeenSet = true;
204 m_sslProperties = std::forward<SslPropertiesT>(value);
205 }
206 template <typename SslPropertiesT = SslProperties>
208 SetSslProperties(std::forward<SslPropertiesT>(value));
209 return *this;
210 }
212
214
218 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
219 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
220 template <typename TagsT = Aws::Vector<Tag>>
221 void SetTags(TagsT&& value) {
222 m_tagsHasBeenSet = true;
223 m_tags = std::forward<TagsT>(value);
224 }
225 template <typename TagsT = Aws::Vector<Tag>>
227 SetTags(std::forward<TagsT>(value));
228 return *this;
229 }
230 template <typename TagsT = Tag>
232 m_tagsHasBeenSet = true;
233 m_tags.emplace_back(std::forward<TagsT>(value));
234 return *this;
235 }
237
239
243 inline const Aws::Vector<Aws::String>& GetFolderArns() const { return m_folderArns; }
244 inline bool FolderArnsHasBeenSet() const { return m_folderArnsHasBeenSet; }
245 template <typename FolderArnsT = Aws::Vector<Aws::String>>
246 void SetFolderArns(FolderArnsT&& value) {
247 m_folderArnsHasBeenSet = true;
248 m_folderArns = std::forward<FolderArnsT>(value);
249 }
250 template <typename FolderArnsT = Aws::Vector<Aws::String>>
252 SetFolderArns(std::forward<FolderArnsT>(value));
253 return *this;
254 }
255 template <typename FolderArnsT = Aws::String>
257 m_folderArnsHasBeenSet = true;
258 m_folderArns.emplace_back(std::forward<FolderArnsT>(value));
259 return *this;
260 }
262 private:
263 Aws::String m_awsAccountId;
264
265 Aws::String m_dataSourceId;
266
267 Aws::String m_name;
268
270
271 DataSourceParameters m_dataSourceParameters;
272
273 DataSourceCredentials m_credentials;
274
276
277 VpcConnectionProperties m_vpcConnectionProperties;
278
279 SslProperties m_sslProperties;
280
281 Aws::Vector<Tag> m_tags;
282
283 Aws::Vector<Aws::String> m_folderArns;
284 bool m_awsAccountIdHasBeenSet = false;
285 bool m_dataSourceIdHasBeenSet = false;
286 bool m_nameHasBeenSet = false;
287 bool m_typeHasBeenSet = false;
288 bool m_dataSourceParametersHasBeenSet = false;
289 bool m_credentialsHasBeenSet = false;
290 bool m_permissionsHasBeenSet = false;
291 bool m_vpcConnectionPropertiesHasBeenSet = false;
292 bool m_sslPropertiesHasBeenSet = false;
293 bool m_tagsHasBeenSet = false;
294 bool m_folderArnsHasBeenSet = false;
295};
296
297} // namespace Model
298} // namespace QuickSight
299} // namespace Aws
CreateDataSourceRequest & WithDataSourceId(DataSourceIdT &&value)
CreateDataSourceRequest & WithPermissions(PermissionsT &&value)
void SetDataSourceParameters(DataSourceParametersT &&value)
AWS_QUICKSIGHT_API CreateDataSourceRequest()=default
CreateDataSourceRequest & WithType(DataSourceType value)
CreateDataSourceRequest & WithCredentials(CredentialsT &&value)
void SetVpcConnectionProperties(VpcConnectionPropertiesT &&value)
virtual const char * GetServiceRequestName() const override
CreateDataSourceRequest & WithDataSourceParameters(DataSourceParametersT &&value)
const Aws::Vector< Aws::String > & GetFolderArns() const
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
CreateDataSourceRequest & WithSslProperties(SslPropertiesT &&value)
CreateDataSourceRequest & WithVpcConnectionProperties(VpcConnectionPropertiesT &&value)
CreateDataSourceRequest & WithTags(TagsT &&value)
CreateDataSourceRequest & WithFolderArns(FolderArnsT &&value)
const VpcConnectionProperties & GetVpcConnectionProperties() const
CreateDataSourceRequest & WithName(NameT &&value)
CreateDataSourceRequest & AddPermissions(PermissionsT &&value)
CreateDataSourceRequest & AddTags(TagsT &&value)
CreateDataSourceRequest & AddFolderArns(FolderArnsT &&value)
const DataSourceCredentials & GetCredentials() const
CreateDataSourceRequest & WithAwsAccountId(AwsAccountIdT &&value)
const DataSourceParameters & GetDataSourceParameters() const
const Aws::Vector< ResourcePermission > & GetPermissions() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector