AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRuntime(const AppSyncRuntime& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
44 inline void SetRuntime(AppSyncRuntime&& value) { m_runtimeHasBeenSet = true; m_runtime = std::move(value); }
45 inline EvaluateCodeRequest& WithRuntime(const AppSyncRuntime& value) { SetRuntime(value); return *this;}
46 inline EvaluateCodeRequest& WithRuntime(AppSyncRuntime&& value) { SetRuntime(std::move(value)); return *this;}
48
50
55 inline const Aws::String& GetCode() const{ return m_code; }
56 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
57 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
58 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
59 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
60 inline EvaluateCodeRequest& WithCode(const Aws::String& value) { SetCode(value); return *this;}
61 inline EvaluateCodeRequest& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
62 inline EvaluateCodeRequest& WithCode(const char* value) { SetCode(value); return *this;}
64
66
70 inline const Aws::String& GetContext() const{ return m_context; }
71 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
72 inline void SetContext(const Aws::String& value) { m_contextHasBeenSet = true; m_context = value; }
73 inline void SetContext(Aws::String&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
74 inline void SetContext(const char* value) { m_contextHasBeenSet = true; m_context.assign(value); }
75 inline EvaluateCodeRequest& WithContext(const Aws::String& value) { SetContext(value); return *this;}
76 inline EvaluateCodeRequest& WithContext(Aws::String&& value) { SetContext(std::move(value)); return *this;}
77 inline EvaluateCodeRequest& WithContext(const char* value) { SetContext(value); return *this;}
79
81
85 inline const Aws::String& GetFunction() const{ return m_function; }
86 inline bool FunctionHasBeenSet() const { return m_functionHasBeenSet; }
87 inline void SetFunction(const Aws::String& value) { m_functionHasBeenSet = true; m_function = value; }
88 inline void SetFunction(Aws::String&& value) { m_functionHasBeenSet = true; m_function = std::move(value); }
89 inline void SetFunction(const char* value) { m_functionHasBeenSet = true; m_function.assign(value); }
90 inline EvaluateCodeRequest& WithFunction(const Aws::String& value) { SetFunction(value); return *this;}
91 inline EvaluateCodeRequest& WithFunction(Aws::String&& value) { SetFunction(std::move(value)); return *this;}
92 inline EvaluateCodeRequest& WithFunction(const char* value) { SetFunction(value); return *this;}
94 private:
95
96 AppSyncRuntime m_runtime;
97 bool m_runtimeHasBeenSet = false;
98
99 Aws::String m_code;
100 bool m_codeHasBeenSet = false;
101
102 Aws::String m_context;
103 bool m_contextHasBeenSet = false;
104
105 Aws::String m_function;
106 bool m_functionHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace AppSync
111} // namespace Aws
EvaluateCodeRequest & WithFunction(const Aws::String &value)
EvaluateCodeRequest & WithCode(const Aws::String &value)
EvaluateCodeRequest & WithRuntime(const AppSyncRuntime &value)
const AppSyncRuntime & GetRuntime() const
void SetCode(const Aws::String &value)
void SetRuntime(const AppSyncRuntime &value)
void SetContext(const Aws::String &value)
EvaluateCodeRequest & WithCode(const char *value)
EvaluateCodeRequest & WithContext(const Aws::String &value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
EvaluateCodeRequest & WithCode(Aws::String &&value)
EvaluateCodeRequest & WithContext(const char *value)
EvaluateCodeRequest & WithRuntime(AppSyncRuntime &&value)
virtual const char * GetServiceRequestName() const override
void SetFunction(const Aws::String &value)
EvaluateCodeRequest & WithFunction(Aws::String &&value)
EvaluateCodeRequest & WithFunction(const char *value)
EvaluateCodeRequest & WithContext(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String