AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FunctionConfiguration.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appsync/model/SyncConfig.h>
10#include <aws/appsync/model/AppSyncRuntime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppSync
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_APPSYNC_API FunctionConfiguration() = default;
40 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetFunctionId() const { return m_functionId; }
48 inline bool FunctionIdHasBeenSet() const { return m_functionIdHasBeenSet; }
49 template<typename FunctionIdT = Aws::String>
50 void SetFunctionId(FunctionIdT&& value) { m_functionIdHasBeenSet = true; m_functionId = std::forward<FunctionIdT>(value); }
51 template<typename FunctionIdT = Aws::String>
52 FunctionConfiguration& WithFunctionId(FunctionIdT&& value) { SetFunctionId(std::forward<FunctionIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetFunctionArn() const { return m_functionArn; }
60 inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
61 template<typename FunctionArnT = Aws::String>
62 void SetFunctionArn(FunctionArnT&& value) { m_functionArnHasBeenSet = true; m_functionArn = std::forward<FunctionArnT>(value); }
63 template<typename FunctionArnT = Aws::String>
64 FunctionConfiguration& WithFunctionArn(FunctionArnT&& value) { SetFunctionArn(std::forward<FunctionArnT>(value)); return *this;}
66
68
71 inline const Aws::String& GetName() const { return m_name; }
72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 template<typename NameT = Aws::String>
74 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
75 template<typename NameT = Aws::String>
76 FunctionConfiguration& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
78
80
83 inline const Aws::String& GetDescription() const { return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 template<typename DescriptionT = Aws::String>
86 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
87 template<typename DescriptionT = Aws::String>
88 FunctionConfiguration& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
90
92
95 inline const Aws::String& GetDataSourceName() const { return m_dataSourceName; }
96 inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
97 template<typename DataSourceNameT = Aws::String>
98 void SetDataSourceName(DataSourceNameT&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::forward<DataSourceNameT>(value); }
99 template<typename DataSourceNameT = Aws::String>
100 FunctionConfiguration& WithDataSourceName(DataSourceNameT&& value) { SetDataSourceName(std::forward<DataSourceNameT>(value)); return *this;}
102
104
108 inline const Aws::String& GetRequestMappingTemplate() const { return m_requestMappingTemplate; }
109 inline bool RequestMappingTemplateHasBeenSet() const { return m_requestMappingTemplateHasBeenSet; }
110 template<typename RequestMappingTemplateT = Aws::String>
111 void SetRequestMappingTemplate(RequestMappingTemplateT&& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = std::forward<RequestMappingTemplateT>(value); }
112 template<typename RequestMappingTemplateT = Aws::String>
113 FunctionConfiguration& WithRequestMappingTemplate(RequestMappingTemplateT&& value) { SetRequestMappingTemplate(std::forward<RequestMappingTemplateT>(value)); return *this;}
115
117
120 inline const Aws::String& GetResponseMappingTemplate() const { return m_responseMappingTemplate; }
121 inline bool ResponseMappingTemplateHasBeenSet() const { return m_responseMappingTemplateHasBeenSet; }
122 template<typename ResponseMappingTemplateT = Aws::String>
123 void SetResponseMappingTemplate(ResponseMappingTemplateT&& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = std::forward<ResponseMappingTemplateT>(value); }
124 template<typename ResponseMappingTemplateT = Aws::String>
125 FunctionConfiguration& WithResponseMappingTemplate(ResponseMappingTemplateT&& value) { SetResponseMappingTemplate(std::forward<ResponseMappingTemplateT>(value)); return *this;}
127
129
133 inline const Aws::String& GetFunctionVersion() const { return m_functionVersion; }
134 inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
135 template<typename FunctionVersionT = Aws::String>
136 void SetFunctionVersion(FunctionVersionT&& value) { m_functionVersionHasBeenSet = true; m_functionVersion = std::forward<FunctionVersionT>(value); }
137 template<typename FunctionVersionT = Aws::String>
138 FunctionConfiguration& WithFunctionVersion(FunctionVersionT&& value) { SetFunctionVersion(std::forward<FunctionVersionT>(value)); return *this;}
140
142
143 inline const SyncConfig& GetSyncConfig() const { return m_syncConfig; }
144 inline bool SyncConfigHasBeenSet() const { return m_syncConfigHasBeenSet; }
145 template<typename SyncConfigT = SyncConfig>
146 void SetSyncConfig(SyncConfigT&& value) { m_syncConfigHasBeenSet = true; m_syncConfig = std::forward<SyncConfigT>(value); }
147 template<typename SyncConfigT = SyncConfig>
148 FunctionConfiguration& WithSyncConfig(SyncConfigT&& value) { SetSyncConfig(std::forward<SyncConfigT>(value)); return *this;}
150
152
155 inline int GetMaxBatchSize() const { return m_maxBatchSize; }
156 inline bool MaxBatchSizeHasBeenSet() const { return m_maxBatchSizeHasBeenSet; }
157 inline void SetMaxBatchSize(int value) { m_maxBatchSizeHasBeenSet = true; m_maxBatchSize = value; }
158 inline FunctionConfiguration& WithMaxBatchSize(int value) { SetMaxBatchSize(value); return *this;}
160
162
163 inline const AppSyncRuntime& GetRuntime() const { return m_runtime; }
164 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
165 template<typename RuntimeT = AppSyncRuntime>
166 void SetRuntime(RuntimeT&& value) { m_runtimeHasBeenSet = true; m_runtime = std::forward<RuntimeT>(value); }
167 template<typename RuntimeT = AppSyncRuntime>
168 FunctionConfiguration& WithRuntime(RuntimeT&& value) { SetRuntime(std::forward<RuntimeT>(value)); return *this;}
170
172
177 inline const Aws::String& GetCode() const { return m_code; }
178 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
179 template<typename CodeT = Aws::String>
180 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
181 template<typename CodeT = Aws::String>
182 FunctionConfiguration& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
184 private:
185
186 Aws::String m_functionId;
187 bool m_functionIdHasBeenSet = false;
188
189 Aws::String m_functionArn;
190 bool m_functionArnHasBeenSet = false;
191
192 Aws::String m_name;
193 bool m_nameHasBeenSet = false;
194
195 Aws::String m_description;
196 bool m_descriptionHasBeenSet = false;
197
198 Aws::String m_dataSourceName;
199 bool m_dataSourceNameHasBeenSet = false;
200
201 Aws::String m_requestMappingTemplate;
202 bool m_requestMappingTemplateHasBeenSet = false;
203
204 Aws::String m_responseMappingTemplate;
205 bool m_responseMappingTemplateHasBeenSet = false;
206
207 Aws::String m_functionVersion;
208 bool m_functionVersionHasBeenSet = false;
209
210 SyncConfig m_syncConfig;
211 bool m_syncConfigHasBeenSet = false;
212
213 int m_maxBatchSize{0};
214 bool m_maxBatchSizeHasBeenSet = false;
215
216 AppSyncRuntime m_runtime;
217 bool m_runtimeHasBeenSet = false;
218
219 Aws::String m_code;
220 bool m_codeHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace AppSync
225} // namespace Aws
FunctionConfiguration & WithResponseMappingTemplate(ResponseMappingTemplateT &&value)
AWS_APPSYNC_API FunctionConfiguration()=default
AWS_APPSYNC_API FunctionConfiguration(Aws::Utils::Json::JsonView jsonValue)
FunctionConfiguration & WithDescription(DescriptionT &&value)
FunctionConfiguration & WithFunctionId(FunctionIdT &&value)
void SetDataSourceName(DataSourceNameT &&value)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
FunctionConfiguration & WithRequestMappingTemplate(RequestMappingTemplateT &&value)
FunctionConfiguration & WithMaxBatchSize(int value)
FunctionConfiguration & WithName(NameT &&value)
FunctionConfiguration & WithCode(CodeT &&value)
FunctionConfiguration & WithSyncConfig(SyncConfigT &&value)
FunctionConfiguration & WithRuntime(RuntimeT &&value)
AWS_APPSYNC_API FunctionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
FunctionConfiguration & WithFunctionVersion(FunctionVersionT &&value)
const Aws::String & GetRequestMappingTemplate() const
void SetRequestMappingTemplate(RequestMappingTemplateT &&value)
FunctionConfiguration & WithFunctionArn(FunctionArnT &&value)
void SetFunctionVersion(FunctionVersionT &&value)
const Aws::String & GetResponseMappingTemplate() const
FunctionConfiguration & WithDataSourceName(DataSourceNameT &&value)
void SetResponseMappingTemplate(ResponseMappingTemplateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue