AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EvaluateCodeRequest.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/AppSyncRequest.h>
9#include <aws/appsync/model/AppSyncRuntime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace AppSync
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_APPSYNC_API EvaluateCodeRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "EvaluateCode"; }
32
33 AWS_APPSYNC_API Aws::String SerializePayload() const override;
34
35
37
41 inline const AppSyncRuntime& GetRuntime() const { return m_runtime; }
42 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
43 template<typename RuntimeT = AppSyncRuntime>
44 void SetRuntime(RuntimeT&& value) { m_runtimeHasBeenSet = true; m_runtime = std::forward<RuntimeT>(value); }
45 template<typename RuntimeT = AppSyncRuntime>
46 EvaluateCodeRequest& WithRuntime(RuntimeT&& value) { SetRuntime(std::forward<RuntimeT>(value)); return *this;}
48
50
55 inline const Aws::String& GetCode() const { return m_code; }
56 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
57 template<typename CodeT = Aws::String>
58 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
59 template<typename CodeT = Aws::String>
60 EvaluateCodeRequest& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
62
64
68 inline const Aws::String& GetContext() const { return m_context; }
69 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
70 template<typename ContextT = Aws::String>
71 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
72 template<typename ContextT = Aws::String>
73 EvaluateCodeRequest& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
75
77
81 inline const Aws::String& GetFunction() const { return m_function; }
82 inline bool FunctionHasBeenSet() const { return m_functionHasBeenSet; }
83 template<typename FunctionT = Aws::String>
84 void SetFunction(FunctionT&& value) { m_functionHasBeenSet = true; m_function = std::forward<FunctionT>(value); }
85 template<typename FunctionT = Aws::String>
86 EvaluateCodeRequest& WithFunction(FunctionT&& value) { SetFunction(std::forward<FunctionT>(value)); return *this;}
88 private:
89
90 AppSyncRuntime m_runtime;
91 bool m_runtimeHasBeenSet = false;
92
93 Aws::String m_code;
94 bool m_codeHasBeenSet = false;
95
96 Aws::String m_context;
97 bool m_contextHasBeenSet = false;
98
99 Aws::String m_function;
100 bool m_functionHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace AppSync
105} // 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