AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFunctionId(const Aws::String& value) { m_functionIdHasBeenSet = true; m_functionId = value; }
50 inline void SetFunctionId(Aws::String&& value) { m_functionIdHasBeenSet = true; m_functionId = std::move(value); }
51 inline void SetFunctionId(const char* value) { m_functionIdHasBeenSet = true; m_functionId.assign(value); }
52 inline FunctionConfiguration& WithFunctionId(const Aws::String& value) { SetFunctionId(value); return *this;}
53 inline FunctionConfiguration& WithFunctionId(Aws::String&& value) { SetFunctionId(std::move(value)); return *this;}
54 inline FunctionConfiguration& WithFunctionId(const char* value) { SetFunctionId(value); return *this;}
56
58
61 inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
62 inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
63 inline void SetFunctionArn(const Aws::String& value) { m_functionArnHasBeenSet = true; m_functionArn = value; }
64 inline void SetFunctionArn(Aws::String&& value) { m_functionArnHasBeenSet = true; m_functionArn = std::move(value); }
65 inline void SetFunctionArn(const char* value) { m_functionArnHasBeenSet = true; m_functionArn.assign(value); }
66 inline FunctionConfiguration& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
67 inline FunctionConfiguration& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
68 inline FunctionConfiguration& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
70
72
75 inline const Aws::String& GetName() const{ return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
78 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
79 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
80 inline FunctionConfiguration& WithName(const Aws::String& value) { SetName(value); return *this;}
81 inline FunctionConfiguration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
82 inline FunctionConfiguration& WithName(const char* value) { SetName(value); return *this;}
84
86
89 inline const Aws::String& GetDescription() const{ return m_description; }
90 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
92 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
93 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
94 inline FunctionConfiguration& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
95 inline FunctionConfiguration& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
96 inline FunctionConfiguration& WithDescription(const char* value) { SetDescription(value); return *this;}
98
100
103 inline const Aws::String& GetDataSourceName() const{ return m_dataSourceName; }
104 inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
105 inline void SetDataSourceName(const Aws::String& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = value; }
106 inline void SetDataSourceName(Aws::String&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::move(value); }
107 inline void SetDataSourceName(const char* value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName.assign(value); }
108 inline FunctionConfiguration& WithDataSourceName(const Aws::String& value) { SetDataSourceName(value); return *this;}
109 inline FunctionConfiguration& WithDataSourceName(Aws::String&& value) { SetDataSourceName(std::move(value)); return *this;}
110 inline FunctionConfiguration& WithDataSourceName(const char* value) { SetDataSourceName(value); return *this;}
112
114
118 inline const Aws::String& GetRequestMappingTemplate() const{ return m_requestMappingTemplate; }
119 inline bool RequestMappingTemplateHasBeenSet() const { return m_requestMappingTemplateHasBeenSet; }
120 inline void SetRequestMappingTemplate(const Aws::String& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = value; }
121 inline void SetRequestMappingTemplate(Aws::String&& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = std::move(value); }
122 inline void SetRequestMappingTemplate(const char* value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate.assign(value); }
125 inline FunctionConfiguration& WithRequestMappingTemplate(const char* value) { SetRequestMappingTemplate(value); return *this;}
127
129
132 inline const Aws::String& GetResponseMappingTemplate() const{ return m_responseMappingTemplate; }
133 inline bool ResponseMappingTemplateHasBeenSet() const { return m_responseMappingTemplateHasBeenSet; }
134 inline void SetResponseMappingTemplate(const Aws::String& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = value; }
135 inline void SetResponseMappingTemplate(Aws::String&& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = std::move(value); }
136 inline void SetResponseMappingTemplate(const char* value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate.assign(value); }
139 inline FunctionConfiguration& WithResponseMappingTemplate(const char* value) { SetResponseMappingTemplate(value); return *this;}
141
143
147 inline const Aws::String& GetFunctionVersion() const{ return m_functionVersion; }
148 inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
149 inline void SetFunctionVersion(const Aws::String& value) { m_functionVersionHasBeenSet = true; m_functionVersion = value; }
150 inline void SetFunctionVersion(Aws::String&& value) { m_functionVersionHasBeenSet = true; m_functionVersion = std::move(value); }
151 inline void SetFunctionVersion(const char* value) { m_functionVersionHasBeenSet = true; m_functionVersion.assign(value); }
152 inline FunctionConfiguration& WithFunctionVersion(const Aws::String& value) { SetFunctionVersion(value); return *this;}
153 inline FunctionConfiguration& WithFunctionVersion(Aws::String&& value) { SetFunctionVersion(std::move(value)); return *this;}
154 inline FunctionConfiguration& WithFunctionVersion(const char* value) { SetFunctionVersion(value); return *this;}
156
158
159 inline const SyncConfig& GetSyncConfig() const{ return m_syncConfig; }
160 inline bool SyncConfigHasBeenSet() const { return m_syncConfigHasBeenSet; }
161 inline void SetSyncConfig(const SyncConfig& value) { m_syncConfigHasBeenSet = true; m_syncConfig = value; }
162 inline void SetSyncConfig(SyncConfig&& value) { m_syncConfigHasBeenSet = true; m_syncConfig = std::move(value); }
163 inline FunctionConfiguration& WithSyncConfig(const SyncConfig& value) { SetSyncConfig(value); return *this;}
164 inline FunctionConfiguration& WithSyncConfig(SyncConfig&& value) { SetSyncConfig(std::move(value)); return *this;}
166
168
171 inline int GetMaxBatchSize() const{ return m_maxBatchSize; }
172 inline bool MaxBatchSizeHasBeenSet() const { return m_maxBatchSizeHasBeenSet; }
173 inline void SetMaxBatchSize(int value) { m_maxBatchSizeHasBeenSet = true; m_maxBatchSize = value; }
174 inline FunctionConfiguration& WithMaxBatchSize(int value) { SetMaxBatchSize(value); return *this;}
176
178
179 inline const AppSyncRuntime& GetRuntime() const{ return m_runtime; }
180 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
181 inline void SetRuntime(const AppSyncRuntime& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
182 inline void SetRuntime(AppSyncRuntime&& value) { m_runtimeHasBeenSet = true; m_runtime = std::move(value); }
183 inline FunctionConfiguration& WithRuntime(const AppSyncRuntime& value) { SetRuntime(value); return *this;}
184 inline FunctionConfiguration& WithRuntime(AppSyncRuntime&& value) { SetRuntime(std::move(value)); return *this;}
186
188
193 inline const Aws::String& GetCode() const{ return m_code; }
194 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
195 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
196 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
197 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
198 inline FunctionConfiguration& WithCode(const Aws::String& value) { SetCode(value); return *this;}
199 inline FunctionConfiguration& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
200 inline FunctionConfiguration& WithCode(const char* value) { SetCode(value); return *this;}
202 private:
203
204 Aws::String m_functionId;
205 bool m_functionIdHasBeenSet = false;
206
207 Aws::String m_functionArn;
208 bool m_functionArnHasBeenSet = false;
209
210 Aws::String m_name;
211 bool m_nameHasBeenSet = false;
212
213 Aws::String m_description;
214 bool m_descriptionHasBeenSet = false;
215
216 Aws::String m_dataSourceName;
217 bool m_dataSourceNameHasBeenSet = false;
218
219 Aws::String m_requestMappingTemplate;
220 bool m_requestMappingTemplateHasBeenSet = false;
221
222 Aws::String m_responseMappingTemplate;
223 bool m_responseMappingTemplateHasBeenSet = false;
224
225 Aws::String m_functionVersion;
226 bool m_functionVersionHasBeenSet = false;
227
228 SyncConfig m_syncConfig;
229 bool m_syncConfigHasBeenSet = false;
230
231 int m_maxBatchSize;
232 bool m_maxBatchSizeHasBeenSet = false;
233
234 AppSyncRuntime m_runtime;
235 bool m_runtimeHasBeenSet = false;
236
237 Aws::String m_code;
238 bool m_codeHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace AppSync
243} // namespace Aws
FunctionConfiguration & WithFunctionArn(Aws::String &&value)
FunctionConfiguration & WithName(const Aws::String &value)
AWS_APPSYNC_API FunctionConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetResponseMappingTemplate(const Aws::String &value)
FunctionConfiguration & WithResponseMappingTemplate(const Aws::String &value)
FunctionConfiguration & WithFunctionId(Aws::String &&value)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDataSourceName(const Aws::String &value)
FunctionConfiguration & WithRequestMappingTemplate(const Aws::String &value)
FunctionConfiguration & WithResponseMappingTemplate(Aws::String &&value)
FunctionConfiguration & WithFunctionVersion(Aws::String &&value)
FunctionConfiguration & WithMaxBatchSize(int value)
FunctionConfiguration & WithCode(Aws::String &&value)
void SetFunctionVersion(const Aws::String &value)
void SetRuntime(const AppSyncRuntime &value)
void SetRequestMappingTemplate(const Aws::String &value)
FunctionConfiguration & WithRuntime(const AppSyncRuntime &value)
void SetDescription(const Aws::String &value)
FunctionConfiguration & WithFunctionVersion(const char *value)
FunctionConfiguration & WithResponseMappingTemplate(const char *value)
FunctionConfiguration & WithRuntime(AppSyncRuntime &&value)
FunctionConfiguration & WithFunctionId(const char *value)
FunctionConfiguration & WithFunctionId(const Aws::String &value)
AWS_APPSYNC_API FunctionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
FunctionConfiguration & WithDataSourceName(const Aws::String &value)
FunctionConfiguration & WithFunctionArn(const Aws::String &value)
FunctionConfiguration & WithName(const char *value)
FunctionConfiguration & WithDataSourceName(const char *value)
FunctionConfiguration & WithDataSourceName(Aws::String &&value)
FunctionConfiguration & WithFunctionArn(const char *value)
FunctionConfiguration & WithCode(const Aws::String &value)
const Aws::String & GetRequestMappingTemplate() const
FunctionConfiguration & WithRequestMappingTemplate(Aws::String &&value)
FunctionConfiguration & WithSyncConfig(const SyncConfig &value)
FunctionConfiguration & WithDescription(const Aws::String &value)
FunctionConfiguration & WithCode(const char *value)
FunctionConfiguration & WithDescription(Aws::String &&value)
FunctionConfiguration & WithFunctionVersion(const Aws::String &value)
FunctionConfiguration & WithDescription(const char *value)
void SetFunctionArn(const Aws::String &value)
const Aws::String & GetResponseMappingTemplate() const
FunctionConfiguration & WithName(Aws::String &&value)
FunctionConfiguration & WithRequestMappingTemplate(const char *value)
FunctionConfiguration & WithSyncConfig(SyncConfig &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue