AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDataSourceRequest.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/QuickSightRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/quicksight/model/DataSourceType.h>
11#include <aws/quicksight/model/DataSourceParameters.h>
12#include <aws/quicksight/model/DataSourceCredentials.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/ResourcePermission.h>
17#include <aws/quicksight/model/Tag.h>
18#include <utility>
19
20namespace Aws
21{
22namespace QuickSight
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_QUICKSIGHT_API CreateDataSourceRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateDataSource"; }
39
40 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
41
42
44
47 inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
48 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
49 inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
50 inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
51 inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
52 inline CreateDataSourceRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
53 inline CreateDataSourceRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
54 inline CreateDataSourceRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
56
58
62 inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; }
63 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
64 inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; }
65 inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); }
66 inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); }
67 inline CreateDataSourceRequest& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;}
68 inline CreateDataSourceRequest& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;}
69 inline CreateDataSourceRequest& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;}
71
73
76 inline const Aws::String& GetName() const{ return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
79 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
80 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
81 inline CreateDataSourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
82 inline CreateDataSourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 inline CreateDataSourceRequest& WithName(const char* value) { SetName(value); return *this;}
85
87
92 inline const DataSourceType& GetType() const{ return m_type; }
93 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
94 inline void SetType(const DataSourceType& value) { m_typeHasBeenSet = true; m_type = value; }
95 inline void SetType(DataSourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
96 inline CreateDataSourceRequest& WithType(const DataSourceType& value) { SetType(value); return *this;}
97 inline CreateDataSourceRequest& WithType(DataSourceType&& value) { SetType(std::move(value)); return *this;}
99
101
105 inline const DataSourceParameters& GetDataSourceParameters() const{ return m_dataSourceParameters; }
106 inline bool DataSourceParametersHasBeenSet() const { return m_dataSourceParametersHasBeenSet; }
107 inline void SetDataSourceParameters(const DataSourceParameters& value) { m_dataSourceParametersHasBeenSet = true; m_dataSourceParameters = value; }
108 inline void SetDataSourceParameters(DataSourceParameters&& value) { m_dataSourceParametersHasBeenSet = true; m_dataSourceParameters = std::move(value); }
112
114
119 inline const DataSourceCredentials& GetCredentials() const{ return m_credentials; }
120 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
121 inline void SetCredentials(const DataSourceCredentials& value) { m_credentialsHasBeenSet = true; m_credentials = value; }
122 inline void SetCredentials(DataSourceCredentials&& value) { m_credentialsHasBeenSet = true; m_credentials = std::move(value); }
124 inline CreateDataSourceRequest& WithCredentials(DataSourceCredentials&& value) { SetCredentials(std::move(value)); return *this;}
126
128
131 inline const Aws::Vector<ResourcePermission>& GetPermissions() const{ return m_permissions; }
132 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
133 inline void SetPermissions(const Aws::Vector<ResourcePermission>& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
134 inline void SetPermissions(Aws::Vector<ResourcePermission>&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
137 inline CreateDataSourceRequest& AddPermissions(const ResourcePermission& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
138 inline CreateDataSourceRequest& AddPermissions(ResourcePermission&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; }
140
142
146 inline const VpcConnectionProperties& GetVpcConnectionProperties() const{ return m_vpcConnectionProperties; }
147 inline bool VpcConnectionPropertiesHasBeenSet() const { return m_vpcConnectionPropertiesHasBeenSet; }
148 inline void SetVpcConnectionProperties(const VpcConnectionProperties& value) { m_vpcConnectionPropertiesHasBeenSet = true; m_vpcConnectionProperties = value; }
149 inline void SetVpcConnectionProperties(VpcConnectionProperties&& value) { m_vpcConnectionPropertiesHasBeenSet = true; m_vpcConnectionProperties = std::move(value); }
153
155
159 inline const SslProperties& GetSslProperties() const{ return m_sslProperties; }
160 inline bool SslPropertiesHasBeenSet() const { return m_sslPropertiesHasBeenSet; }
161 inline void SetSslProperties(const SslProperties& value) { m_sslPropertiesHasBeenSet = true; m_sslProperties = value; }
162 inline void SetSslProperties(SslProperties&& value) { m_sslPropertiesHasBeenSet = true; m_sslProperties = std::move(value); }
163 inline CreateDataSourceRequest& WithSslProperties(const SslProperties& value) { SetSslProperties(value); return *this;}
164 inline CreateDataSourceRequest& WithSslProperties(SslProperties&& value) { SetSslProperties(std::move(value)); return *this;}
166
168
172 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
173 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
174 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
175 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
176 inline CreateDataSourceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
177 inline CreateDataSourceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
178 inline CreateDataSourceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
179 inline CreateDataSourceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
181
183
187 inline const Aws::Vector<Aws::String>& GetFolderArns() const{ return m_folderArns; }
188 inline bool FolderArnsHasBeenSet() const { return m_folderArnsHasBeenSet; }
189 inline void SetFolderArns(const Aws::Vector<Aws::String>& value) { m_folderArnsHasBeenSet = true; m_folderArns = value; }
190 inline void SetFolderArns(Aws::Vector<Aws::String>&& value) { m_folderArnsHasBeenSet = true; m_folderArns = std::move(value); }
192 inline CreateDataSourceRequest& WithFolderArns(Aws::Vector<Aws::String>&& value) { SetFolderArns(std::move(value)); return *this;}
193 inline CreateDataSourceRequest& AddFolderArns(const Aws::String& value) { m_folderArnsHasBeenSet = true; m_folderArns.push_back(value); return *this; }
194 inline CreateDataSourceRequest& AddFolderArns(Aws::String&& value) { m_folderArnsHasBeenSet = true; m_folderArns.push_back(std::move(value)); return *this; }
195 inline CreateDataSourceRequest& AddFolderArns(const char* value) { m_folderArnsHasBeenSet = true; m_folderArns.push_back(value); return *this; }
197 private:
198
199 Aws::String m_awsAccountId;
200 bool m_awsAccountIdHasBeenSet = false;
201
202 Aws::String m_dataSourceId;
203 bool m_dataSourceIdHasBeenSet = false;
204
205 Aws::String m_name;
206 bool m_nameHasBeenSet = false;
207
208 DataSourceType m_type;
209 bool m_typeHasBeenSet = false;
210
211 DataSourceParameters m_dataSourceParameters;
212 bool m_dataSourceParametersHasBeenSet = false;
213
214 DataSourceCredentials m_credentials;
215 bool m_credentialsHasBeenSet = false;
216
218 bool m_permissionsHasBeenSet = false;
219
220 VpcConnectionProperties m_vpcConnectionProperties;
221 bool m_vpcConnectionPropertiesHasBeenSet = false;
222
223 SslProperties m_sslProperties;
224 bool m_sslPropertiesHasBeenSet = false;
225
226 Aws::Vector<Tag> m_tags;
227 bool m_tagsHasBeenSet = false;
228
229 Aws::Vector<Aws::String> m_folderArns;
230 bool m_folderArnsHasBeenSet = false;
231 };
232
233} // namespace Model
234} // namespace QuickSight
235} // namespace Aws
CreateDataSourceRequest & WithName(Aws::String &&value)
void SetPermissions(const Aws::Vector< ResourcePermission > &value)
CreateDataSourceRequest & WithName(const Aws::String &value)
CreateDataSourceRequest & WithSslProperties(SslProperties &&value)
CreateDataSourceRequest & WithDataSourceParameters(DataSourceParameters &&value)
CreateDataSourceRequest & WithType(const DataSourceType &value)
void SetFolderArns(Aws::Vector< Aws::String > &&value)
CreateDataSourceRequest & WithName(const char *value)
CreateDataSourceRequest & WithFolderArns(const Aws::Vector< Aws::String > &value)
CreateDataSourceRequest & AddFolderArns(Aws::String &&value)
CreateDataSourceRequest & WithVpcConnectionProperties(const VpcConnectionProperties &value)
CreateDataSourceRequest & AddFolderArns(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateDataSourceRequest & AddTags(const Tag &value)
void SetDataSourceParameters(const DataSourceParameters &value)
CreateDataSourceRequest & AddPermissions(const ResourcePermission &value)
CreateDataSourceRequest & WithPermissions(Aws::Vector< ResourcePermission > &&value)
CreateDataSourceRequest & WithAwsAccountId(Aws::String &&value)
CreateDataSourceRequest & WithVpcConnectionProperties(VpcConnectionProperties &&value)
CreateDataSourceRequest & WithCredentials(DataSourceCredentials &&value)
const Aws::Vector< Aws::String > & GetFolderArns() const
CreateDataSourceRequest & WithCredentials(const DataSourceCredentials &value)
CreateDataSourceRequest & WithDataSourceId(Aws::String &&value)
CreateDataSourceRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDataSourceRequest & WithFolderArns(Aws::Vector< Aws::String > &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
CreateDataSourceRequest & WithDataSourceId(const Aws::String &value)
CreateDataSourceRequest & AddFolderArns(const char *value)
CreateDataSourceRequest & WithTags(const Aws::Vector< Tag > &value)
const VpcConnectionProperties & GetVpcConnectionProperties() const
void SetVpcConnectionProperties(VpcConnectionProperties &&value)
void SetCredentials(const DataSourceCredentials &value)
CreateDataSourceRequest & WithAwsAccountId(const Aws::String &value)
void SetFolderArns(const Aws::Vector< Aws::String > &value)
void SetVpcConnectionProperties(const VpcConnectionProperties &value)
CreateDataSourceRequest & WithSslProperties(const SslProperties &value)
CreateDataSourceRequest & AddPermissions(ResourcePermission &&value)
CreateDataSourceRequest & WithDataSourceId(const char *value)
void SetDataSourceParameters(DataSourceParameters &&value)
CreateDataSourceRequest & WithDataSourceParameters(const DataSourceParameters &value)
void SetPermissions(Aws::Vector< ResourcePermission > &&value)
const DataSourceCredentials & GetCredentials() const
CreateDataSourceRequest & WithAwsAccountId(const char *value)
const DataSourceParameters & GetDataSourceParameters() const
const Aws::Vector< ResourcePermission > & GetPermissions() const
CreateDataSourceRequest & AddTags(Tag &&value)
CreateDataSourceRequest & WithType(DataSourceType &&value)
CreateDataSourceRequest & WithPermissions(const Aws::Vector< ResourcePermission > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector