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/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/AppSyncRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appsync/model/DataSourceType.h>
11#include <aws/appsync/model/DynamodbDataSourceConfig.h>
12#include <aws/appsync/model/LambdaDataSourceConfig.h>
13#include <aws/appsync/model/ElasticsearchDataSourceConfig.h>
14#include <aws/appsync/model/OpenSearchServiceDataSourceConfig.h>
15#include <aws/appsync/model/HttpDataSourceConfig.h>
16#include <aws/appsync/model/RelationalDatabaseDataSourceConfig.h>
17#include <aws/appsync/model/EventBridgeDataSourceConfig.h>
18#include <aws/appsync/model/DataSourceLevelMetricsConfig.h>
19#include <utility>
20
21namespace Aws
22{
23namespace AppSync
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_APPSYNC_API CreateDataSourceRequest();
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateDataSource"; }
40
41 AWS_APPSYNC_API Aws::String SerializePayload() const override;
42
43
45
48 inline const Aws::String& GetApiId() const{ return m_apiId; }
49 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
50 inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
51 inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
52 inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
53 inline CreateDataSourceRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
54 inline CreateDataSourceRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
55 inline CreateDataSourceRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
57
59
62 inline const Aws::String& GetName() const{ return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
65 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
66 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 inline CreateDataSourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
68 inline CreateDataSourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
69 inline CreateDataSourceRequest& WithName(const char* value) { SetName(value); return *this;}
71
73
76 inline const Aws::String& GetDescription() const{ return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
79 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
80 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
81 inline CreateDataSourceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
82 inline CreateDataSourceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
83 inline CreateDataSourceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
85
87
90 inline const DataSourceType& GetType() const{ return m_type; }
91 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
92 inline void SetType(const DataSourceType& value) { m_typeHasBeenSet = true; m_type = value; }
93 inline void SetType(DataSourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
94 inline CreateDataSourceRequest& WithType(const DataSourceType& value) { SetType(value); return *this;}
95 inline CreateDataSourceRequest& WithType(DataSourceType&& value) { SetType(std::move(value)); return *this;}
97
99
104 inline const Aws::String& GetServiceRoleArn() const{ return m_serviceRoleArn; }
105 inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; }
106 inline void SetServiceRoleArn(const Aws::String& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = value; }
107 inline void SetServiceRoleArn(Aws::String&& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = std::move(value); }
108 inline void SetServiceRoleArn(const char* value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn.assign(value); }
109 inline CreateDataSourceRequest& WithServiceRoleArn(const Aws::String& value) { SetServiceRoleArn(value); return *this;}
110 inline CreateDataSourceRequest& WithServiceRoleArn(Aws::String&& value) { SetServiceRoleArn(std::move(value)); return *this;}
111 inline CreateDataSourceRequest& WithServiceRoleArn(const char* value) { SetServiceRoleArn(value); return *this;}
113
115
118 inline const DynamodbDataSourceConfig& GetDynamodbConfig() const{ return m_dynamodbConfig; }
119 inline bool DynamodbConfigHasBeenSet() const { return m_dynamodbConfigHasBeenSet; }
120 inline void SetDynamodbConfig(const DynamodbDataSourceConfig& value) { m_dynamodbConfigHasBeenSet = true; m_dynamodbConfig = value; }
121 inline void SetDynamodbConfig(DynamodbDataSourceConfig&& value) { m_dynamodbConfigHasBeenSet = true; m_dynamodbConfig = std::move(value); }
125
127
130 inline const LambdaDataSourceConfig& GetLambdaConfig() const{ return m_lambdaConfig; }
131 inline bool LambdaConfigHasBeenSet() const { return m_lambdaConfigHasBeenSet; }
132 inline void SetLambdaConfig(const LambdaDataSourceConfig& value) { m_lambdaConfigHasBeenSet = true; m_lambdaConfig = value; }
133 inline void SetLambdaConfig(LambdaDataSourceConfig&& value) { m_lambdaConfigHasBeenSet = true; m_lambdaConfig = std::move(value); }
135 inline CreateDataSourceRequest& WithLambdaConfig(LambdaDataSourceConfig&& value) { SetLambdaConfig(std::move(value)); return *this;}
137
139
146 inline const ElasticsearchDataSourceConfig& GetElasticsearchConfig() const{ return m_elasticsearchConfig; }
147 inline bool ElasticsearchConfigHasBeenSet() const { return m_elasticsearchConfigHasBeenSet; }
148 inline void SetElasticsearchConfig(const ElasticsearchDataSourceConfig& value) { m_elasticsearchConfigHasBeenSet = true; m_elasticsearchConfig = value; }
149 inline void SetElasticsearchConfig(ElasticsearchDataSourceConfig&& value) { m_elasticsearchConfigHasBeenSet = true; m_elasticsearchConfig = std::move(value); }
153
155
158 inline const OpenSearchServiceDataSourceConfig& GetOpenSearchServiceConfig() const{ return m_openSearchServiceConfig; }
159 inline bool OpenSearchServiceConfigHasBeenSet() const { return m_openSearchServiceConfigHasBeenSet; }
160 inline void SetOpenSearchServiceConfig(const OpenSearchServiceDataSourceConfig& value) { m_openSearchServiceConfigHasBeenSet = true; m_openSearchServiceConfig = value; }
161 inline void SetOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig&& value) { m_openSearchServiceConfigHasBeenSet = true; m_openSearchServiceConfig = std::move(value); }
165
167
170 inline const HttpDataSourceConfig& GetHttpConfig() const{ return m_httpConfig; }
171 inline bool HttpConfigHasBeenSet() const { return m_httpConfigHasBeenSet; }
172 inline void SetHttpConfig(const HttpDataSourceConfig& value) { m_httpConfigHasBeenSet = true; m_httpConfig = value; }
173 inline void SetHttpConfig(HttpDataSourceConfig&& value) { m_httpConfigHasBeenSet = true; m_httpConfig = std::move(value); }
174 inline CreateDataSourceRequest& WithHttpConfig(const HttpDataSourceConfig& value) { SetHttpConfig(value); return *this;}
175 inline CreateDataSourceRequest& WithHttpConfig(HttpDataSourceConfig&& value) { SetHttpConfig(std::move(value)); return *this;}
177
179
182 inline const RelationalDatabaseDataSourceConfig& GetRelationalDatabaseConfig() const{ return m_relationalDatabaseConfig; }
183 inline bool RelationalDatabaseConfigHasBeenSet() const { return m_relationalDatabaseConfigHasBeenSet; }
184 inline void SetRelationalDatabaseConfig(const RelationalDatabaseDataSourceConfig& value) { m_relationalDatabaseConfigHasBeenSet = true; m_relationalDatabaseConfig = value; }
185 inline void SetRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig&& value) { m_relationalDatabaseConfigHasBeenSet = true; m_relationalDatabaseConfig = std::move(value); }
189
191
194 inline const EventBridgeDataSourceConfig& GetEventBridgeConfig() const{ return m_eventBridgeConfig; }
195 inline bool EventBridgeConfigHasBeenSet() const { return m_eventBridgeConfigHasBeenSet; }
196 inline void SetEventBridgeConfig(const EventBridgeDataSourceConfig& value) { m_eventBridgeConfigHasBeenSet = true; m_eventBridgeConfig = value; }
197 inline void SetEventBridgeConfig(EventBridgeDataSourceConfig&& value) { m_eventBridgeConfigHasBeenSet = true; m_eventBridgeConfig = std::move(value); }
201
203
214 inline const DataSourceLevelMetricsConfig& GetMetricsConfig() const{ return m_metricsConfig; }
215 inline bool MetricsConfigHasBeenSet() const { return m_metricsConfigHasBeenSet; }
216 inline void SetMetricsConfig(const DataSourceLevelMetricsConfig& value) { m_metricsConfigHasBeenSet = true; m_metricsConfig = value; }
217 inline void SetMetricsConfig(DataSourceLevelMetricsConfig&& value) { m_metricsConfigHasBeenSet = true; m_metricsConfig = std::move(value); }
221 private:
222
223 Aws::String m_apiId;
224 bool m_apiIdHasBeenSet = false;
225
226 Aws::String m_name;
227 bool m_nameHasBeenSet = false;
228
229 Aws::String m_description;
230 bool m_descriptionHasBeenSet = false;
231
232 DataSourceType m_type;
233 bool m_typeHasBeenSet = false;
234
235 Aws::String m_serviceRoleArn;
236 bool m_serviceRoleArnHasBeenSet = false;
237
238 DynamodbDataSourceConfig m_dynamodbConfig;
239 bool m_dynamodbConfigHasBeenSet = false;
240
241 LambdaDataSourceConfig m_lambdaConfig;
242 bool m_lambdaConfigHasBeenSet = false;
243
244 ElasticsearchDataSourceConfig m_elasticsearchConfig;
245 bool m_elasticsearchConfigHasBeenSet = false;
246
247 OpenSearchServiceDataSourceConfig m_openSearchServiceConfig;
248 bool m_openSearchServiceConfigHasBeenSet = false;
249
250 HttpDataSourceConfig m_httpConfig;
251 bool m_httpConfigHasBeenSet = false;
252
253 RelationalDatabaseDataSourceConfig m_relationalDatabaseConfig;
254 bool m_relationalDatabaseConfigHasBeenSet = false;
255
256 EventBridgeDataSourceConfig m_eventBridgeConfig;
257 bool m_eventBridgeConfigHasBeenSet = false;
258
259 DataSourceLevelMetricsConfig m_metricsConfig;
260 bool m_metricsConfigHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace AppSync
265} // namespace Aws
CreateDataSourceRequest & WithServiceRoleArn(const Aws::String &value)
const HttpDataSourceConfig & GetHttpConfig() const
CreateDataSourceRequest & WithDescription(const Aws::String &value)
CreateDataSourceRequest & WithEventBridgeConfig(EventBridgeDataSourceConfig &&value)
void SetMetricsConfig(DataSourceLevelMetricsConfig &&value)
CreateDataSourceRequest & WithOpenSearchServiceConfig(const OpenSearchServiceDataSourceConfig &value)
const RelationalDatabaseDataSourceConfig & GetRelationalDatabaseConfig() const
const ElasticsearchDataSourceConfig & GetElasticsearchConfig() const
CreateDataSourceRequest & WithApiId(const Aws::String &value)
CreateDataSourceRequest & WithServiceRoleArn(Aws::String &&value)
CreateDataSourceRequest & WithMetricsConfig(const DataSourceLevelMetricsConfig &value)
const DataSourceLevelMetricsConfig & GetMetricsConfig() const
CreateDataSourceRequest & WithType(const DataSourceType &value)
CreateDataSourceRequest & WithDynamodbConfig(DynamodbDataSourceConfig &&value)
void SetElasticsearchConfig(ElasticsearchDataSourceConfig &&value)
CreateDataSourceRequest & WithDescription(const char *value)
CreateDataSourceRequest & WithLambdaConfig(LambdaDataSourceConfig &&value)
const DynamodbDataSourceConfig & GetDynamodbConfig() const
CreateDataSourceRequest & WithName(const Aws::String &value)
void SetRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig &&value)
CreateDataSourceRequest & WithApiId(const char *value)
CreateDataSourceRequest & WithElasticsearchConfig(const ElasticsearchDataSourceConfig &value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
CreateDataSourceRequest & WithRelationalDatabaseConfig(const RelationalDatabaseDataSourceConfig &value)
const EventBridgeDataSourceConfig & GetEventBridgeConfig() const
CreateDataSourceRequest & WithName(Aws::String &&value)
void SetRelationalDatabaseConfig(const RelationalDatabaseDataSourceConfig &value)
CreateDataSourceRequest & WithApiId(Aws::String &&value)
void SetDynamodbConfig(const DynamodbDataSourceConfig &value)
CreateDataSourceRequest & WithServiceRoleArn(const char *value)
CreateDataSourceRequest & WithOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig &&value)
CreateDataSourceRequest & WithType(DataSourceType &&value)
CreateDataSourceRequest & WithRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig &&value)
void SetOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig &&value)
const LambdaDataSourceConfig & GetLambdaConfig() const
virtual const char * GetServiceRequestName() const override
CreateDataSourceRequest & WithDescription(Aws::String &&value)
void SetMetricsConfig(const DataSourceLevelMetricsConfig &value)
void SetElasticsearchConfig(const ElasticsearchDataSourceConfig &value)
void SetHttpConfig(const HttpDataSourceConfig &value)
CreateDataSourceRequest & WithHttpConfig(HttpDataSourceConfig &&value)
void SetLambdaConfig(LambdaDataSourceConfig &&value)
const OpenSearchServiceDataSourceConfig & GetOpenSearchServiceConfig() const
CreateDataSourceRequest & WithDynamodbConfig(const DynamodbDataSourceConfig &value)
CreateDataSourceRequest & WithHttpConfig(const HttpDataSourceConfig &value)
CreateDataSourceRequest & WithEventBridgeConfig(const EventBridgeDataSourceConfig &value)
void SetEventBridgeConfig(EventBridgeDataSourceConfig &&value)
void SetLambdaConfig(const LambdaDataSourceConfig &value)
void SetDynamodbConfig(DynamodbDataSourceConfig &&value)
void SetHttpConfig(HttpDataSourceConfig &&value)
void SetOpenSearchServiceConfig(const OpenSearchServiceDataSourceConfig &value)
CreateDataSourceRequest & WithLambdaConfig(const LambdaDataSourceConfig &value)
CreateDataSourceRequest & WithElasticsearchConfig(ElasticsearchDataSourceConfig &&value)
CreateDataSourceRequest & WithName(const char *value)
CreateDataSourceRequest & WithMetricsConfig(DataSourceLevelMetricsConfig &&value)
void SetEventBridgeConfig(const EventBridgeDataSourceConfig &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String