AWS SDK for C++

AWS SDK for C++ Version 1.11.742

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/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace AppSync {
24namespace Model {
26 public:
27 AWS_APPSYNC_API EvaluateCodeResult() = default;
30
32
35 inline const Aws::String& GetEvaluationResult() const { return m_evaluationResult; }
36 template <typename EvaluationResultT = Aws::String>
37 void SetEvaluationResult(EvaluationResultT&& value) {
38 m_evaluationResultHasBeenSet = true;
39 m_evaluationResult = std::forward<EvaluationResultT>(value);
40 }
41 template <typename EvaluationResultT = Aws::String>
42 EvaluateCodeResult& WithEvaluationResult(EvaluationResultT&& value) {
43 SetEvaluationResult(std::forward<EvaluationResultT>(value));
44 return *this;
45 }
47
49
52 inline const EvaluateCodeErrorDetail& GetError() const { return m_error; }
53 template <typename ErrorT = EvaluateCodeErrorDetail>
54 void SetError(ErrorT&& value) {
55 m_errorHasBeenSet = true;
56 m_error = std::forward<ErrorT>(value);
57 }
58 template <typename ErrorT = EvaluateCodeErrorDetail>
59 EvaluateCodeResult& WithError(ErrorT&& value) {
60 SetError(std::forward<ErrorT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::Vector<Aws::String>& GetLogs() const { return m_logs; }
71 template <typename LogsT = Aws::Vector<Aws::String>>
72 void SetLogs(LogsT&& value) {
73 m_logsHasBeenSet = true;
74 m_logs = std::forward<LogsT>(value);
75 }
76 template <typename LogsT = Aws::Vector<Aws::String>>
77 EvaluateCodeResult& WithLogs(LogsT&& value) {
78 SetLogs(std::forward<LogsT>(value));
79 return *this;
80 }
81 template <typename LogsT = Aws::String>
82 EvaluateCodeResult& AddLogs(LogsT&& value) {
83 m_logsHasBeenSet = true;
84 m_logs.emplace_back(std::forward<LogsT>(value));
85 return *this;
86 }
88
90
96 inline const Aws::String& GetStash() const { return m_stash; }
97 template <typename StashT = Aws::String>
98 void SetStash(StashT&& value) {
99 m_stashHasBeenSet = true;
100 m_stash = std::forward<StashT>(value);
101 }
102 template <typename StashT = Aws::String>
103 EvaluateCodeResult& WithStash(StashT&& value) {
104 SetStash(std::forward<StashT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetOutErrors() const { return m_outErrors; }
115 template <typename OutErrorsT = Aws::String>
116 void SetOutErrors(OutErrorsT&& value) {
117 m_outErrorsHasBeenSet = true;
118 m_outErrors = std::forward<OutErrorsT>(value);
119 }
120 template <typename OutErrorsT = Aws::String>
121 EvaluateCodeResult& WithOutErrors(OutErrorsT&& value) {
122 SetOutErrors(std::forward<OutErrorsT>(value));
123 return *this;
124 }
126
128
129 inline const Aws::String& GetRequestId() const { return m_requestId; }
130 template <typename RequestIdT = Aws::String>
131 void SetRequestId(RequestIdT&& value) {
132 m_requestIdHasBeenSet = true;
133 m_requestId = std::forward<RequestIdT>(value);
134 }
135 template <typename RequestIdT = Aws::String>
136 EvaluateCodeResult& WithRequestId(RequestIdT&& value) {
137 SetRequestId(std::forward<RequestIdT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_evaluationResult;
143
145
147
148 Aws::String m_stash;
149
150 Aws::String m_outErrors;
151
152 Aws::String m_requestId;
153 bool m_evaluationResultHasBeenSet = false;
154 bool m_errorHasBeenSet = false;
155 bool m_logsHasBeenSet = false;
156 bool m_stashHasBeenSet = false;
157 bool m_outErrorsHasBeenSet = false;
158 bool m_requestIdHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace AppSync
163} // 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)
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