AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
FunctionConfiguration.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/AppSyncRuntime.h>
9#include <aws/appsync/model/SyncConfig.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppSync {
22namespace Model {
23
31 public:
32 AWS_APPSYNC_API FunctionConfiguration() = default;
35 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetFunctionId() const { return m_functionId; }
42 inline bool FunctionIdHasBeenSet() const { return m_functionIdHasBeenSet; }
43 template <typename FunctionIdT = Aws::String>
44 void SetFunctionId(FunctionIdT&& value) {
45 m_functionIdHasBeenSet = true;
46 m_functionId = std::forward<FunctionIdT>(value);
47 }
48 template <typename FunctionIdT = Aws::String>
49 FunctionConfiguration& WithFunctionId(FunctionIdT&& value) {
50 SetFunctionId(std::forward<FunctionIdT>(value));
51 return *this;
52 }
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) {
63 m_functionArnHasBeenSet = true;
64 m_functionArn = std::forward<FunctionArnT>(value);
65 }
66 template <typename FunctionArnT = Aws::String>
67 FunctionConfiguration& WithFunctionArn(FunctionArnT&& value) {
68 SetFunctionArn(std::forward<FunctionArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDescription() const { return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 template <typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) {
99 m_descriptionHasBeenSet = true;
100 m_description = std::forward<DescriptionT>(value);
101 }
102 template <typename DescriptionT = Aws::String>
103 FunctionConfiguration& WithDescription(DescriptionT&& value) {
104 SetDescription(std::forward<DescriptionT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetDataSourceName() const { return m_dataSourceName; }
114 inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
115 template <typename DataSourceNameT = Aws::String>
116 void SetDataSourceName(DataSourceNameT&& value) {
117 m_dataSourceNameHasBeenSet = true;
118 m_dataSourceName = std::forward<DataSourceNameT>(value);
119 }
120 template <typename DataSourceNameT = Aws::String>
121 FunctionConfiguration& WithDataSourceName(DataSourceNameT&& value) {
122 SetDataSourceName(std::forward<DataSourceNameT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::String& GetRequestMappingTemplate() const { return m_requestMappingTemplate; }
133 inline bool RequestMappingTemplateHasBeenSet() const { return m_requestMappingTemplateHasBeenSet; }
134 template <typename RequestMappingTemplateT = Aws::String>
135 void SetRequestMappingTemplate(RequestMappingTemplateT&& value) {
136 m_requestMappingTemplateHasBeenSet = true;
137 m_requestMappingTemplate = std::forward<RequestMappingTemplateT>(value);
138 }
139 template <typename RequestMappingTemplateT = Aws::String>
140 FunctionConfiguration& WithRequestMappingTemplate(RequestMappingTemplateT&& value) {
141 SetRequestMappingTemplate(std::forward<RequestMappingTemplateT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetResponseMappingTemplate() const { return m_responseMappingTemplate; }
151 inline bool ResponseMappingTemplateHasBeenSet() const { return m_responseMappingTemplateHasBeenSet; }
152 template <typename ResponseMappingTemplateT = Aws::String>
153 void SetResponseMappingTemplate(ResponseMappingTemplateT&& value) {
154 m_responseMappingTemplateHasBeenSet = true;
155 m_responseMappingTemplate = std::forward<ResponseMappingTemplateT>(value);
156 }
157 template <typename ResponseMappingTemplateT = Aws::String>
158 FunctionConfiguration& WithResponseMappingTemplate(ResponseMappingTemplateT&& value) {
159 SetResponseMappingTemplate(std::forward<ResponseMappingTemplateT>(value));
160 return *this;
161 }
163
165
169 inline const Aws::String& GetFunctionVersion() const { return m_functionVersion; }
170 inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
171 template <typename FunctionVersionT = Aws::String>
172 void SetFunctionVersion(FunctionVersionT&& value) {
173 m_functionVersionHasBeenSet = true;
174 m_functionVersion = std::forward<FunctionVersionT>(value);
175 }
176 template <typename FunctionVersionT = Aws::String>
177 FunctionConfiguration& WithFunctionVersion(FunctionVersionT&& value) {
178 SetFunctionVersion(std::forward<FunctionVersionT>(value));
179 return *this;
180 }
182
184
185 inline const SyncConfig& GetSyncConfig() const { return m_syncConfig; }
186 inline bool SyncConfigHasBeenSet() const { return m_syncConfigHasBeenSet; }
187 template <typename SyncConfigT = SyncConfig>
188 void SetSyncConfig(SyncConfigT&& value) {
189 m_syncConfigHasBeenSet = true;
190 m_syncConfig = std::forward<SyncConfigT>(value);
191 }
192 template <typename SyncConfigT = SyncConfig>
193 FunctionConfiguration& WithSyncConfig(SyncConfigT&& value) {
194 SetSyncConfig(std::forward<SyncConfigT>(value));
195 return *this;
196 }
198
200
203 inline int GetMaxBatchSize() const { return m_maxBatchSize; }
204 inline bool MaxBatchSizeHasBeenSet() const { return m_maxBatchSizeHasBeenSet; }
205 inline void SetMaxBatchSize(int value) {
206 m_maxBatchSizeHasBeenSet = true;
207 m_maxBatchSize = value;
208 }
210 SetMaxBatchSize(value);
211 return *this;
212 }
214
216
217 inline const AppSyncRuntime& GetRuntime() const { return m_runtime; }
218 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
219 template <typename RuntimeT = AppSyncRuntime>
220 void SetRuntime(RuntimeT&& value) {
221 m_runtimeHasBeenSet = true;
222 m_runtime = std::forward<RuntimeT>(value);
223 }
224 template <typename RuntimeT = AppSyncRuntime>
226 SetRuntime(std::forward<RuntimeT>(value));
227 return *this;
228 }
230
232
237 inline const Aws::String& GetCode() const { return m_code; }
238 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
239 template <typename CodeT = Aws::String>
240 void SetCode(CodeT&& value) {
241 m_codeHasBeenSet = true;
242 m_code = std::forward<CodeT>(value);
243 }
244 template <typename CodeT = Aws::String>
246 SetCode(std::forward<CodeT>(value));
247 return *this;
248 }
250 private:
251 Aws::String m_functionId;
252
253 Aws::String m_functionArn;
254
255 Aws::String m_name;
256
257 Aws::String m_description;
258
259 Aws::String m_dataSourceName;
260
261 Aws::String m_requestMappingTemplate;
262
263 Aws::String m_responseMappingTemplate;
264
265 Aws::String m_functionVersion;
266
267 SyncConfig m_syncConfig;
268
269 int m_maxBatchSize{0};
270
271 AppSyncRuntime m_runtime;
272
273 Aws::String m_code;
274 bool m_functionIdHasBeenSet = false;
275 bool m_functionArnHasBeenSet = false;
276 bool m_nameHasBeenSet = false;
277 bool m_descriptionHasBeenSet = false;
278 bool m_dataSourceNameHasBeenSet = false;
279 bool m_requestMappingTemplateHasBeenSet = false;
280 bool m_responseMappingTemplateHasBeenSet = false;
281 bool m_functionVersionHasBeenSet = false;
282 bool m_syncConfigHasBeenSet = false;
283 bool m_maxBatchSizeHasBeenSet = false;
284 bool m_runtimeHasBeenSet = false;
285 bool m_codeHasBeenSet = false;
286};
287
288} // namespace Model
289} // namespace AppSync
290} // 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)
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