AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EvaluateCodeRequest.h
1
6#pragma once
7#include <aws/appsync/AppSyncRequest.h>
8#include <aws/appsync/AppSync_EXPORTS.h>
9#include <aws/appsync/model/AppSyncRuntime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AppSync {
16namespace Model {
17
21 public:
22 AWS_APPSYNC_API EvaluateCodeRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "EvaluateCode"; }
29
30 AWS_APPSYNC_API Aws::String SerializePayload() const override;
31
33
37 inline const AppSyncRuntime& GetRuntime() const { return m_runtime; }
38 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
39 template <typename RuntimeT = AppSyncRuntime>
40 void SetRuntime(RuntimeT&& value) {
41 m_runtimeHasBeenSet = true;
42 m_runtime = std::forward<RuntimeT>(value);
43 }
44 template <typename RuntimeT = AppSyncRuntime>
45 EvaluateCodeRequest& WithRuntime(RuntimeT&& value) {
46 SetRuntime(std::forward<RuntimeT>(value));
47 return *this;
48 }
50
52
57 inline const Aws::String& GetCode() const { return m_code; }
58 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
59 template <typename CodeT = Aws::String>
60 void SetCode(CodeT&& value) {
61 m_codeHasBeenSet = true;
62 m_code = std::forward<CodeT>(value);
63 }
64 template <typename CodeT = Aws::String>
65 EvaluateCodeRequest& WithCode(CodeT&& value) {
66 SetCode(std::forward<CodeT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetContext() const { return m_context; }
77 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
78 template <typename ContextT = Aws::String>
79 void SetContext(ContextT&& value) {
80 m_contextHasBeenSet = true;
81 m_context = std::forward<ContextT>(value);
82 }
83 template <typename ContextT = Aws::String>
84 EvaluateCodeRequest& WithContext(ContextT&& value) {
85 SetContext(std::forward<ContextT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetFunction() const { return m_function; }
96 inline bool FunctionHasBeenSet() const { return m_functionHasBeenSet; }
97 template <typename FunctionT = Aws::String>
98 void SetFunction(FunctionT&& value) {
99 m_functionHasBeenSet = true;
100 m_function = std::forward<FunctionT>(value);
101 }
102 template <typename FunctionT = Aws::String>
103 EvaluateCodeRequest& WithFunction(FunctionT&& value) {
104 SetFunction(std::forward<FunctionT>(value));
105 return *this;
106 }
108 private:
109 AppSyncRuntime m_runtime;
110
111 Aws::String m_code;
112
113 Aws::String m_context;
114
115 Aws::String m_function;
116 bool m_runtimeHasBeenSet = false;
117 bool m_codeHasBeenSet = false;
118 bool m_contextHasBeenSet = false;
119 bool m_functionHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace AppSync
124} // namespace Aws
EvaluateCodeRequest & WithContext(ContextT &&value)
const AppSyncRuntime & GetRuntime() const
EvaluateCodeRequest & WithRuntime(RuntimeT &&value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
EvaluateCodeRequest & WithFunction(FunctionT &&value)
AWS_APPSYNC_API EvaluateCodeRequest()=default
EvaluateCodeRequest & WithCode(CodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String