AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateDataSourceRequest.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 UpdateDataSourceRequest() = default;
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 "UpdateDataSource"; }
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 template<typename ApiIdT = Aws::String>
51 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet = true; m_apiId = std::forward<ApiIdT>(value); }
52 template<typename ApiIdT = Aws::String>
53 UpdateDataSourceRequest& WithApiId(ApiIdT&& value) { SetApiId(std::forward<ApiIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template<typename NameT = Aws::String>
63 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
64 template<typename NameT = Aws::String>
65 UpdateDataSourceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
67
69
72 inline const Aws::String& GetDescription() const { return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 template<typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
76 template<typename DescriptionT = Aws::String>
77 UpdateDataSourceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
79
81
84 inline DataSourceType GetType() const { return m_type; }
85 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
86 inline void SetType(DataSourceType value) { m_typeHasBeenSet = true; m_type = value; }
87 inline UpdateDataSourceRequest& WithType(DataSourceType value) { SetType(value); return *this;}
89
91
94 inline const Aws::String& GetServiceRoleArn() const { return m_serviceRoleArn; }
95 inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; }
96 template<typename ServiceRoleArnT = Aws::String>
97 void SetServiceRoleArn(ServiceRoleArnT&& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = std::forward<ServiceRoleArnT>(value); }
98 template<typename ServiceRoleArnT = Aws::String>
99 UpdateDataSourceRequest& WithServiceRoleArn(ServiceRoleArnT&& value) { SetServiceRoleArn(std::forward<ServiceRoleArnT>(value)); return *this;}
101
103
106 inline const DynamodbDataSourceConfig& GetDynamodbConfig() const { return m_dynamodbConfig; }
107 inline bool DynamodbConfigHasBeenSet() const { return m_dynamodbConfigHasBeenSet; }
108 template<typename DynamodbConfigT = DynamodbDataSourceConfig>
109 void SetDynamodbConfig(DynamodbConfigT&& value) { m_dynamodbConfigHasBeenSet = true; m_dynamodbConfig = std::forward<DynamodbConfigT>(value); }
110 template<typename DynamodbConfigT = DynamodbDataSourceConfig>
111 UpdateDataSourceRequest& WithDynamodbConfig(DynamodbConfigT&& value) { SetDynamodbConfig(std::forward<DynamodbConfigT>(value)); return *this;}
113
115
118 inline const LambdaDataSourceConfig& GetLambdaConfig() const { return m_lambdaConfig; }
119 inline bool LambdaConfigHasBeenSet() const { return m_lambdaConfigHasBeenSet; }
120 template<typename LambdaConfigT = LambdaDataSourceConfig>
121 void SetLambdaConfig(LambdaConfigT&& value) { m_lambdaConfigHasBeenSet = true; m_lambdaConfig = std::forward<LambdaConfigT>(value); }
122 template<typename LambdaConfigT = LambdaDataSourceConfig>
123 UpdateDataSourceRequest& WithLambdaConfig(LambdaConfigT&& value) { SetLambdaConfig(std::forward<LambdaConfigT>(value)); return *this;}
125
127
133 inline const ElasticsearchDataSourceConfig& GetElasticsearchConfig() const { return m_elasticsearchConfig; }
134 inline bool ElasticsearchConfigHasBeenSet() const { return m_elasticsearchConfigHasBeenSet; }
135 template<typename ElasticsearchConfigT = ElasticsearchDataSourceConfig>
136 void SetElasticsearchConfig(ElasticsearchConfigT&& value) { m_elasticsearchConfigHasBeenSet = true; m_elasticsearchConfig = std::forward<ElasticsearchConfigT>(value); }
137 template<typename ElasticsearchConfigT = ElasticsearchDataSourceConfig>
138 UpdateDataSourceRequest& WithElasticsearchConfig(ElasticsearchConfigT&& value) { SetElasticsearchConfig(std::forward<ElasticsearchConfigT>(value)); return *this;}
140
142
145 inline const OpenSearchServiceDataSourceConfig& GetOpenSearchServiceConfig() const { return m_openSearchServiceConfig; }
146 inline bool OpenSearchServiceConfigHasBeenSet() const { return m_openSearchServiceConfigHasBeenSet; }
147 template<typename OpenSearchServiceConfigT = OpenSearchServiceDataSourceConfig>
148 void SetOpenSearchServiceConfig(OpenSearchServiceConfigT&& value) { m_openSearchServiceConfigHasBeenSet = true; m_openSearchServiceConfig = std::forward<OpenSearchServiceConfigT>(value); }
149 template<typename OpenSearchServiceConfigT = OpenSearchServiceDataSourceConfig>
150 UpdateDataSourceRequest& WithOpenSearchServiceConfig(OpenSearchServiceConfigT&& value) { SetOpenSearchServiceConfig(std::forward<OpenSearchServiceConfigT>(value)); return *this;}
152
154
157 inline const HttpDataSourceConfig& GetHttpConfig() const { return m_httpConfig; }
158 inline bool HttpConfigHasBeenSet() const { return m_httpConfigHasBeenSet; }
159 template<typename HttpConfigT = HttpDataSourceConfig>
160 void SetHttpConfig(HttpConfigT&& value) { m_httpConfigHasBeenSet = true; m_httpConfig = std::forward<HttpConfigT>(value); }
161 template<typename HttpConfigT = HttpDataSourceConfig>
162 UpdateDataSourceRequest& WithHttpConfig(HttpConfigT&& value) { SetHttpConfig(std::forward<HttpConfigT>(value)); return *this;}
164
166
169 inline const RelationalDatabaseDataSourceConfig& GetRelationalDatabaseConfig() const { return m_relationalDatabaseConfig; }
170 inline bool RelationalDatabaseConfigHasBeenSet() const { return m_relationalDatabaseConfigHasBeenSet; }
171 template<typename RelationalDatabaseConfigT = RelationalDatabaseDataSourceConfig>
172 void SetRelationalDatabaseConfig(RelationalDatabaseConfigT&& value) { m_relationalDatabaseConfigHasBeenSet = true; m_relationalDatabaseConfig = std::forward<RelationalDatabaseConfigT>(value); }
173 template<typename RelationalDatabaseConfigT = RelationalDatabaseDataSourceConfig>
174 UpdateDataSourceRequest& WithRelationalDatabaseConfig(RelationalDatabaseConfigT&& value) { SetRelationalDatabaseConfig(std::forward<RelationalDatabaseConfigT>(value)); return *this;}
176
178
181 inline const EventBridgeDataSourceConfig& GetEventBridgeConfig() const { return m_eventBridgeConfig; }
182 inline bool EventBridgeConfigHasBeenSet() const { return m_eventBridgeConfigHasBeenSet; }
183 template<typename EventBridgeConfigT = EventBridgeDataSourceConfig>
184 void SetEventBridgeConfig(EventBridgeConfigT&& value) { m_eventBridgeConfigHasBeenSet = true; m_eventBridgeConfig = std::forward<EventBridgeConfigT>(value); }
185 template<typename EventBridgeConfigT = EventBridgeDataSourceConfig>
186 UpdateDataSourceRequest& WithEventBridgeConfig(EventBridgeConfigT&& value) { SetEventBridgeConfig(std::forward<EventBridgeConfigT>(value)); return *this;}
188
190
201 inline DataSourceLevelMetricsConfig GetMetricsConfig() const { return m_metricsConfig; }
202 inline bool MetricsConfigHasBeenSet() const { return m_metricsConfigHasBeenSet; }
203 inline void SetMetricsConfig(DataSourceLevelMetricsConfig value) { m_metricsConfigHasBeenSet = true; m_metricsConfig = value; }
206 private:
207
208 Aws::String m_apiId;
209 bool m_apiIdHasBeenSet = false;
210
211 Aws::String m_name;
212 bool m_nameHasBeenSet = false;
213
214 Aws::String m_description;
215 bool m_descriptionHasBeenSet = false;
216
218 bool m_typeHasBeenSet = false;
219
220 Aws::String m_serviceRoleArn;
221 bool m_serviceRoleArnHasBeenSet = false;
222
223 DynamodbDataSourceConfig m_dynamodbConfig;
224 bool m_dynamodbConfigHasBeenSet = false;
225
226 LambdaDataSourceConfig m_lambdaConfig;
227 bool m_lambdaConfigHasBeenSet = false;
228
229 ElasticsearchDataSourceConfig m_elasticsearchConfig;
230 bool m_elasticsearchConfigHasBeenSet = false;
231
232 OpenSearchServiceDataSourceConfig m_openSearchServiceConfig;
233 bool m_openSearchServiceConfigHasBeenSet = false;
234
235 HttpDataSourceConfig m_httpConfig;
236 bool m_httpConfigHasBeenSet = false;
237
238 RelationalDatabaseDataSourceConfig m_relationalDatabaseConfig;
239 bool m_relationalDatabaseConfigHasBeenSet = false;
240
241 EventBridgeDataSourceConfig m_eventBridgeConfig;
242 bool m_eventBridgeConfigHasBeenSet = false;
243
245 bool m_metricsConfigHasBeenSet = false;
246 };
247
248} // namespace Model
249} // namespace AppSync
250} // namespace Aws
void SetOpenSearchServiceConfig(OpenSearchServiceConfigT &&value)
UpdateDataSourceRequest & WithDescription(DescriptionT &&value)
DataSourceLevelMetricsConfig GetMetricsConfig() const
UpdateDataSourceRequest & WithEventBridgeConfig(EventBridgeConfigT &&value)
UpdateDataSourceRequest & WithOpenSearchServiceConfig(OpenSearchServiceConfigT &&value)
const OpenSearchServiceDataSourceConfig & GetOpenSearchServiceConfig() const
UpdateDataSourceRequest & WithHttpConfig(HttpConfigT &&value)
UpdateDataSourceRequest & WithServiceRoleArn(ServiceRoleArnT &&value)
void SetElasticsearchConfig(ElasticsearchConfigT &&value)
virtual const char * GetServiceRequestName() const override
const HttpDataSourceConfig & GetHttpConfig() const
UpdateDataSourceRequest & WithMetricsConfig(DataSourceLevelMetricsConfig value)
UpdateDataSourceRequest & WithElasticsearchConfig(ElasticsearchConfigT &&value)
UpdateDataSourceRequest & WithDynamodbConfig(DynamodbConfigT &&value)
const ElasticsearchDataSourceConfig & GetElasticsearchConfig() const
UpdateDataSourceRequest & WithName(NameT &&value)
UpdateDataSourceRequest & WithApiId(ApiIdT &&value)
UpdateDataSourceRequest & WithLambdaConfig(LambdaConfigT &&value)
const RelationalDatabaseDataSourceConfig & GetRelationalDatabaseConfig() const
void SetRelationalDatabaseConfig(RelationalDatabaseConfigT &&value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
const EventBridgeDataSourceConfig & GetEventBridgeConfig() const
const DynamodbDataSourceConfig & GetDynamodbConfig() const
UpdateDataSourceRequest & WithType(DataSourceType value)
void SetEventBridgeConfig(EventBridgeConfigT &&value)
AWS_APPSYNC_API UpdateDataSourceRequest()=default
void SetMetricsConfig(DataSourceLevelMetricsConfig value)
const LambdaDataSourceConfig & GetLambdaConfig() const
UpdateDataSourceRequest & WithRelationalDatabaseConfig(RelationalDatabaseConfigT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String