AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EvaluateCodeResult.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appsync/model/EvaluateCodeErrorDetail.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace AppSync
26{
27namespace Model
28{
30 {
31 public:
32 AWS_APPSYNC_API EvaluateCodeResult();
35
36
38
41 inline const Aws::String& GetEvaluationResult() const{ return m_evaluationResult; }
42 inline void SetEvaluationResult(const Aws::String& value) { m_evaluationResult = value; }
43 inline void SetEvaluationResult(Aws::String&& value) { m_evaluationResult = std::move(value); }
44 inline void SetEvaluationResult(const char* value) { m_evaluationResult.assign(value); }
45 inline EvaluateCodeResult& WithEvaluationResult(const Aws::String& value) { SetEvaluationResult(value); return *this;}
46 inline EvaluateCodeResult& WithEvaluationResult(Aws::String&& value) { SetEvaluationResult(std::move(value)); return *this;}
47 inline EvaluateCodeResult& WithEvaluationResult(const char* value) { SetEvaluationResult(value); return *this;}
49
51
54 inline const EvaluateCodeErrorDetail& GetError() const{ return m_error; }
55 inline void SetError(const EvaluateCodeErrorDetail& value) { m_error = value; }
56 inline void SetError(EvaluateCodeErrorDetail&& value) { m_error = std::move(value); }
57 inline EvaluateCodeResult& WithError(const EvaluateCodeErrorDetail& value) { SetError(value); return *this;}
58 inline EvaluateCodeResult& WithError(EvaluateCodeErrorDetail&& value) { SetError(std::move(value)); return *this;}
60
62
66 inline const Aws::Vector<Aws::String>& GetLogs() const{ return m_logs; }
67 inline void SetLogs(const Aws::Vector<Aws::String>& value) { m_logs = value; }
68 inline void SetLogs(Aws::Vector<Aws::String>&& value) { m_logs = std::move(value); }
69 inline EvaluateCodeResult& WithLogs(const Aws::Vector<Aws::String>& value) { SetLogs(value); return *this;}
70 inline EvaluateCodeResult& WithLogs(Aws::Vector<Aws::String>&& value) { SetLogs(std::move(value)); return *this;}
71 inline EvaluateCodeResult& AddLogs(const Aws::String& value) { m_logs.push_back(value); return *this; }
72 inline EvaluateCodeResult& AddLogs(Aws::String&& value) { m_logs.push_back(std::move(value)); return *this; }
73 inline EvaluateCodeResult& AddLogs(const char* value) { m_logs.push_back(value); return *this; }
75
77
78 inline const Aws::String& GetRequestId() const{ return m_requestId; }
79 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
80 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
81 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
82 inline EvaluateCodeResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
83 inline EvaluateCodeResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
84 inline EvaluateCodeResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
86 private:
87
88 Aws::String m_evaluationResult;
89
91
93
94 Aws::String m_requestId;
95 };
96
97} // namespace Model
98} // namespace AppSync
99} // namespace Aws
EvaluateCodeResult & AddLogs(const char *value)
void SetError(EvaluateCodeErrorDetail &&value)
EvaluateCodeResult & WithEvaluationResult(const Aws::String &value)
void SetLogs(const Aws::Vector< Aws::String > &value)
EvaluateCodeResult & WithRequestId(const Aws::String &value)
EvaluateCodeResult & WithRequestId(const char *value)
EvaluateCodeResult & AddLogs(Aws::String &&value)
AWS_APPSYNC_API EvaluateCodeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
EvaluateCodeResult & WithError(EvaluateCodeErrorDetail &&value)
const Aws::Vector< Aws::String > & GetLogs() const
EvaluateCodeResult & WithError(const EvaluateCodeErrorDetail &value)
EvaluateCodeResult & WithEvaluationResult(const char *value)
EvaluateCodeResult & WithRequestId(Aws::String &&value)
void SetEvaluationResult(Aws::String &&value)
void SetLogs(Aws::Vector< Aws::String > &&value)
void SetRequestId(const Aws::String &value)
EvaluateCodeResult & WithLogs(Aws::Vector< Aws::String > &&value)
EvaluateCodeResult & WithEvaluationResult(Aws::String &&value)
EvaluateCodeResult & AddLogs(const Aws::String &value)
void SetError(const EvaluateCodeErrorDetail &value)
AWS_APPSYNC_API EvaluateCodeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
EvaluateCodeResult & WithLogs(const Aws::Vector< Aws::String > &value)
const Aws::String & GetRequestId() const
const EvaluateCodeErrorDetail & GetError() const
void SetEvaluationResult(const Aws::String &value)
const Aws::String & GetEvaluationResult() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue