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/SyncConfig.h>
11#include <aws/appsync/model/AppSyncRuntime.h>
43 template<
typename ApiIdT = Aws::String>
44 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet =
true; m_apiId = std::forward<ApiIdT>(value); }
45 template<
typename ApiIdT = Aws::String>
55 template<
typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
57 template<
typename NameT = Aws::String>
67 template<
typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
69 template<
typename DescriptionT = Aws::String>
79 template<
typename FunctionIdT = Aws::String>
80 void SetFunctionId(FunctionIdT&& value) { m_functionIdHasBeenSet =
true; m_functionId = std::forward<FunctionIdT>(value); }
81 template<
typename FunctionIdT = Aws::String>
91 template<
typename DataSourceNameT = Aws::String>
92 void SetDataSourceName(DataSourceNameT&& value) { m_dataSourceNameHasBeenSet =
true; m_dataSourceName = std::forward<DataSourceNameT>(value); }
93 template<
typename DataSourceNameT = Aws::String>
104 template<
typename RequestMappingTemplateT = Aws::String>
105 void SetRequestMappingTemplate(RequestMappingTemplateT&& value) { m_requestMappingTemplateHasBeenSet =
true; m_requestMappingTemplate = std::forward<RequestMappingTemplateT>(value); }
106 template<
typename RequestMappingTemplateT = Aws::String>
116 template<
typename ResponseMappingTemplateT = Aws::String>
117 void SetResponseMappingTemplate(ResponseMappingTemplateT&& value) { m_responseMappingTemplateHasBeenSet =
true; m_responseMappingTemplate = std::forward<ResponseMappingTemplateT>(value); }
118 template<
typename ResponseMappingTemplateT = Aws::String>
130 template<
typename FunctionVersionT = Aws::String>
131 void SetFunctionVersion(FunctionVersionT&& value) { m_functionVersionHasBeenSet =
true; m_functionVersion = std::forward<FunctionVersionT>(value); }
132 template<
typename FunctionVersionT = Aws::String>
140 template<
typename SyncConfigT = SyncConfig>
141 void SetSyncConfig(SyncConfigT&& value) { m_syncConfigHasBeenSet =
true; m_syncConfig = std::forward<SyncConfigT>(value); }
142 template<
typename SyncConfigT = SyncConfig>
152 inline void SetMaxBatchSize(
int value) { m_maxBatchSizeHasBeenSet =
true; m_maxBatchSize = value; }
160 template<
typename RuntimeT = AppSyncRuntime>
161 void SetRuntime(RuntimeT&& value) { m_runtimeHasBeenSet =
true; m_runtime = std::forward<RuntimeT>(value); }
162 template<
typename RuntimeT = AppSyncRuntime>
174 template<
typename CodeT = Aws::String>
175 void SetCode(CodeT&& value) { m_codeHasBeenSet =
true; m_code = std::forward<CodeT>(value); }
176 template<
typename CodeT = Aws::String>
182 bool m_apiIdHasBeenSet =
false;
185 bool m_nameHasBeenSet =
false;
188 bool m_descriptionHasBeenSet =
false;
191 bool m_functionIdHasBeenSet =
false;
194 bool m_dataSourceNameHasBeenSet =
false;
197 bool m_requestMappingTemplateHasBeenSet =
false;
200 bool m_responseMappingTemplateHasBeenSet =
false;
203 bool m_functionVersionHasBeenSet =
false;
206 bool m_syncConfigHasBeenSet =
false;
208 int m_maxBatchSize{0};
209 bool m_maxBatchSizeHasBeenSet =
false;
211 AppSyncRuntime m_runtime;
212 bool m_runtimeHasBeenSet =
false;
215 bool m_codeHasBeenSet =
false;
bool MaxBatchSizeHasBeenSet() const
const Aws::String & GetCode() const
const Aws::String & GetDescription() const
const Aws::String & GetApiId() const
const AppSyncRuntime & GetRuntime() const
void SetCode(CodeT &&value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
UpdateFunctionRequest & WithDescription(DescriptionT &&value)
bool RuntimeHasBeenSet() const
bool SyncConfigHasBeenSet() const
UpdateFunctionRequest & WithApiId(ApiIdT &&value)
const Aws::String & GetFunctionVersion() const
const Aws::String & GetName() const
UpdateFunctionRequest & WithFunctionVersion(FunctionVersionT &&value)
UpdateFunctionRequest & WithFunctionId(FunctionIdT &&value)
bool NameHasBeenSet() const
const Aws::String & GetRequestMappingTemplate() const
AWS_APPSYNC_API UpdateFunctionRequest()=default
void SetResponseMappingTemplate(ResponseMappingTemplateT &&value)
void SetApiId(ApiIdT &&value)
void SetDataSourceName(DataSourceNameT &&value)
bool ApiIdHasBeenSet() const
UpdateFunctionRequest & WithName(NameT &&value)
bool DataSourceNameHasBeenSet() const
bool CodeHasBeenSet() const
UpdateFunctionRequest & WithRequestMappingTemplate(RequestMappingTemplateT &&value)
const SyncConfig & GetSyncConfig() const
bool DescriptionHasBeenSet() const
virtual const char * GetServiceRequestName() const override
void SetSyncConfig(SyncConfigT &&value)
void SetRequestMappingTemplate(RequestMappingTemplateT &&value)
const Aws::String & GetResponseMappingTemplate() const
void SetRuntime(RuntimeT &&value)
UpdateFunctionRequest & WithMaxBatchSize(int value)
bool FunctionVersionHasBeenSet() const
void SetDescription(DescriptionT &&value)
bool RequestMappingTemplateHasBeenSet() const
void SetFunctionId(FunctionIdT &&value)
void SetName(NameT &&value)
UpdateFunctionRequest & WithCode(CodeT &&value)
UpdateFunctionRequest & WithSyncConfig(SyncConfigT &&value)
const Aws::String & GetFunctionId() const
UpdateFunctionRequest & WithDataSourceName(DataSourceNameT &&value)
void SetFunctionVersion(FunctionVersionT &&value)
bool FunctionIdHasBeenSet() const
UpdateFunctionRequest & WithRuntime(RuntimeT &&value)
const Aws::String & GetDataSourceName() const
int GetMaxBatchSize() const
void SetMaxBatchSize(int value)
bool ResponseMappingTemplateHasBeenSet() const
UpdateFunctionRequest & WithResponseMappingTemplate(ResponseMappingTemplateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String