AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename AwsAccountIdT = Aws::String>
50 void SetAwsAccountId(AwsAccountIdT&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::forward<AwsAccountIdT>(value); }
51 template<typename AwsAccountIdT = Aws::String>
52 CreateDataSourceRequest& WithAwsAccountId(AwsAccountIdT&& value) { SetAwsAccountId(std::forward<AwsAccountIdT>(value)); return *this;}
54
56
60 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
61 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
62 template<typename DataSourceIdT = Aws::String>
63 void SetDataSourceId(DataSourceIdT&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::forward<DataSourceIdT>(value); }
64 template<typename DataSourceIdT = Aws::String>
65 CreateDataSourceRequest& WithDataSourceId(DataSourceIdT&& value) { SetDataSourceId(std::forward<DataSourceIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 template<typename NameT = Aws::String>
75 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
76 template<typename NameT = Aws::String>
77 CreateDataSourceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
79
81
86 inline DataSourceType GetType() const { return m_type; }
87 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
88 inline void SetType(DataSourceType value) { m_typeHasBeenSet = true; m_type = value; }
89 inline CreateDataSourceRequest& WithType(DataSourceType value) { SetType(value); return *this;}
91
93
97 inline const DataSourceParameters& GetDataSourceParameters() const { return m_dataSourceParameters; }
98 inline bool DataSourceParametersHasBeenSet() const { return m_dataSourceParametersHasBeenSet; }
99 template<typename DataSourceParametersT = DataSourceParameters>
100 void SetDataSourceParameters(DataSourceParametersT&& value) { m_dataSourceParametersHasBeenSet = true; m_dataSourceParameters = std::forward<DataSourceParametersT>(value); }
101 template<typename DataSourceParametersT = DataSourceParameters>
102 CreateDataSourceRequest& WithDataSourceParameters(DataSourceParametersT&& value) { SetDataSourceParameters(std::forward<DataSourceParametersT>(value)); return *this;}
104
106
111 inline const DataSourceCredentials& GetCredentials() const { return m_credentials; }
112 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
113 template<typename CredentialsT = DataSourceCredentials>
114 void SetCredentials(CredentialsT&& value) { m_credentialsHasBeenSet = true; m_credentials = std::forward<CredentialsT>(value); }
115 template<typename CredentialsT = DataSourceCredentials>
116 CreateDataSourceRequest& WithCredentials(CredentialsT&& value) { SetCredentials(std::forward<CredentialsT>(value)); return *this;}
118
120
123 inline const Aws::Vector<ResourcePermission>& GetPermissions() const { return m_permissions; }
124 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
125 template<typename PermissionsT = Aws::Vector<ResourcePermission>>
126 void SetPermissions(PermissionsT&& value) { m_permissionsHasBeenSet = true; m_permissions = std::forward<PermissionsT>(value); }
127 template<typename PermissionsT = Aws::Vector<ResourcePermission>>
128 CreateDataSourceRequest& WithPermissions(PermissionsT&& value) { SetPermissions(std::forward<PermissionsT>(value)); return *this;}
129 template<typename PermissionsT = ResourcePermission>
130 CreateDataSourceRequest& AddPermissions(PermissionsT&& value) { m_permissionsHasBeenSet = true; m_permissions.emplace_back(std::forward<PermissionsT>(value)); return *this; }
132
134
138 inline const VpcConnectionProperties& GetVpcConnectionProperties() const { return m_vpcConnectionProperties; }
139 inline bool VpcConnectionPropertiesHasBeenSet() const { return m_vpcConnectionPropertiesHasBeenSet; }
140 template<typename VpcConnectionPropertiesT = VpcConnectionProperties>
141 void SetVpcConnectionProperties(VpcConnectionPropertiesT&& value) { m_vpcConnectionPropertiesHasBeenSet = true; m_vpcConnectionProperties = std::forward<VpcConnectionPropertiesT>(value); }
142 template<typename VpcConnectionPropertiesT = VpcConnectionProperties>
143 CreateDataSourceRequest& WithVpcConnectionProperties(VpcConnectionPropertiesT&& value) { SetVpcConnectionProperties(std::forward<VpcConnectionPropertiesT>(value)); return *this;}
145
147
151 inline const SslProperties& GetSslProperties() const { return m_sslProperties; }
152 inline bool SslPropertiesHasBeenSet() const { return m_sslPropertiesHasBeenSet; }
153 template<typename SslPropertiesT = SslProperties>
154 void SetSslProperties(SslPropertiesT&& value) { m_sslPropertiesHasBeenSet = true; m_sslProperties = std::forward<SslPropertiesT>(value); }
155 template<typename SslPropertiesT = SslProperties>
156 CreateDataSourceRequest& WithSslProperties(SslPropertiesT&& value) { SetSslProperties(std::forward<SslPropertiesT>(value)); return *this;}
158
160
164 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
165 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
166 template<typename TagsT = Aws::Vector<Tag>>
167 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
168 template<typename TagsT = Aws::Vector<Tag>>
169 CreateDataSourceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
170 template<typename TagsT = Tag>
171 CreateDataSourceRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
173
175
179 inline const Aws::Vector<Aws::String>& GetFolderArns() const { return m_folderArns; }
180 inline bool FolderArnsHasBeenSet() const { return m_folderArnsHasBeenSet; }
181 template<typename FolderArnsT = Aws::Vector<Aws::String>>
182 void SetFolderArns(FolderArnsT&& value) { m_folderArnsHasBeenSet = true; m_folderArns = std::forward<FolderArnsT>(value); }
183 template<typename FolderArnsT = Aws::Vector<Aws::String>>
184 CreateDataSourceRequest& WithFolderArns(FolderArnsT&& value) { SetFolderArns(std::forward<FolderArnsT>(value)); return *this;}
185 template<typename FolderArnsT = Aws::String>
186 CreateDataSourceRequest& AddFolderArns(FolderArnsT&& value) { m_folderArnsHasBeenSet = true; m_folderArns.emplace_back(std::forward<FolderArnsT>(value)); return *this; }
188 private:
189
190 Aws::String m_awsAccountId;
191 bool m_awsAccountIdHasBeenSet = false;
192
193 Aws::String m_dataSourceId;
194 bool m_dataSourceIdHasBeenSet = false;
195
196 Aws::String m_name;
197 bool m_nameHasBeenSet = false;
198
200 bool m_typeHasBeenSet = false;
201
202 DataSourceParameters m_dataSourceParameters;
203 bool m_dataSourceParametersHasBeenSet = false;
204
205 DataSourceCredentials m_credentials;
206 bool m_credentialsHasBeenSet = false;
207
209 bool m_permissionsHasBeenSet = false;
210
211 VpcConnectionProperties m_vpcConnectionProperties;
212 bool m_vpcConnectionPropertiesHasBeenSet = false;
213
214 SslProperties m_sslProperties;
215 bool m_sslPropertiesHasBeenSet = false;
216
217 Aws::Vector<Tag> m_tags;
218 bool m_tagsHasBeenSet = false;
219
220 Aws::Vector<Aws::String> m_folderArns;
221 bool m_folderArnsHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace QuickSight
226} // 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