AWS SDK for C++

AWS SDK for C++ Version 1.11.790

Loading...
Searching...
No Matches
EvaluateCodeResult.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/EvaluateCodeErrorDetail.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace AppSync {
25namespace Model {
27 public:
28 AWS_APPSYNC_API EvaluateCodeResult() = default;
31
33
36 inline const Aws::String& GetEvaluationResult() const { return m_evaluationResult; }
37 template <typename EvaluationResultT = Aws::String>
38 void SetEvaluationResult(EvaluationResultT&& value) {
39 m_evaluationResultHasBeenSet = true;
40 m_evaluationResult = std::forward<EvaluationResultT>(value);
41 }
42 template <typename EvaluationResultT = Aws::String>
43 EvaluateCodeResult& WithEvaluationResult(EvaluationResultT&& value) {
44 SetEvaluationResult(std::forward<EvaluationResultT>(value));
45 return *this;
46 }
48
50
53 inline const EvaluateCodeErrorDetail& GetError() const { return m_error; }
54 template <typename ErrorT = EvaluateCodeErrorDetail>
55 void SetError(ErrorT&& value) {
56 m_errorHasBeenSet = true;
57 m_error = std::forward<ErrorT>(value);
58 }
59 template <typename ErrorT = EvaluateCodeErrorDetail>
60 EvaluateCodeResult& WithError(ErrorT&& value) {
61 SetError(std::forward<ErrorT>(value));
62 return *this;
63 }
65
67
71 inline const Aws::Vector<Aws::String>& GetLogs() const { return m_logs; }
72 template <typename LogsT = Aws::Vector<Aws::String>>
73 void SetLogs(LogsT&& value) {
74 m_logsHasBeenSet = true;
75 m_logs = std::forward<LogsT>(value);
76 }
77 template <typename LogsT = Aws::Vector<Aws::String>>
78 EvaluateCodeResult& WithLogs(LogsT&& value) {
79 SetLogs(std::forward<LogsT>(value));
80 return *this;
81 }
82 template <typename LogsT = Aws::String>
83 EvaluateCodeResult& AddLogs(LogsT&& value) {
84 m_logsHasBeenSet = true;
85 m_logs.emplace_back(std::forward<LogsT>(value));
86 return *this;
87 }
89
91
97 inline const Aws::String& GetStash() const { return m_stash; }
98 template <typename StashT = Aws::String>
99 void SetStash(StashT&& value) {
100 m_stashHasBeenSet = true;
101 m_stash = std::forward<StashT>(value);
102 }
103 template <typename StashT = Aws::String>
104 EvaluateCodeResult& WithStash(StashT&& value) {
105 SetStash(std::forward<StashT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetOutErrors() const { return m_outErrors; }
116 template <typename OutErrorsT = Aws::String>
117 void SetOutErrors(OutErrorsT&& value) {
118 m_outErrorsHasBeenSet = true;
119 m_outErrors = std::forward<OutErrorsT>(value);
120 }
121 template <typename OutErrorsT = Aws::String>
122 EvaluateCodeResult& WithOutErrors(OutErrorsT&& value) {
123 SetOutErrors(std::forward<OutErrorsT>(value));
124 return *this;
125 }
127
129
130 inline const Aws::String& GetRequestId() const { return m_requestId; }
131 template <typename RequestIdT = Aws::String>
132 void SetRequestId(RequestIdT&& value) {
133 m_requestIdHasBeenSet = true;
134 m_requestId = std::forward<RequestIdT>(value);
135 }
136 template <typename RequestIdT = Aws::String>
137 EvaluateCodeResult& WithRequestId(RequestIdT&& value) {
138 SetRequestId(std::forward<RequestIdT>(value));
139 return *this;
140 }
142 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
143
144 private:
145 Aws::String m_evaluationResult;
146
148
150
151 Aws::String m_stash;
152
153 Aws::String m_outErrors;
154
155 Aws::String m_requestId;
156 Aws::Http::HttpResponseCode m_HttpResponseCode;
157 bool m_evaluationResultHasBeenSet = false;
158 bool m_errorHasBeenSet = false;
159 bool m_logsHasBeenSet = false;
160 bool m_stashHasBeenSet = false;
161 bool m_outErrorsHasBeenSet = false;
162 bool m_requestIdHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace AppSync
167} // namespace Aws
EvaluateCodeResult & WithEvaluationResult(EvaluationResultT &&value)
EvaluateCodeResult & WithOutErrors(OutErrorsT &&value)
EvaluateCodeResult & WithStash(StashT &&value)
AWS_APPSYNC_API EvaluateCodeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetEvaluationResult(EvaluationResultT &&value)
EvaluateCodeResult & WithLogs(LogsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< Aws::String > & GetLogs() const
AWS_APPSYNC_API EvaluateCodeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
EvaluateCodeResult & AddLogs(LogsT &&value)
const EvaluateCodeErrorDetail & GetError() const
AWS_APPSYNC_API EvaluateCodeResult()=default
const Aws::String & GetEvaluationResult() const
EvaluateCodeResult & WithError(ErrorT &&value)
EvaluateCodeResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue