/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace AppSync { namespace Model { class EvaluateCodeResult { public: AWS_APPSYNC_API EvaluateCodeResult(); AWS_APPSYNC_API EvaluateCodeResult(const Aws::AmazonWebServiceResult& result); AWS_APPSYNC_API EvaluateCodeResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The result of the evaluation operation.

*/ inline const Aws::String& GetEvaluationResult() const{ return m_evaluationResult; } /** *

The result of the evaluation operation.

*/ inline void SetEvaluationResult(const Aws::String& value) { m_evaluationResult = value; } /** *

The result of the evaluation operation.

*/ inline void SetEvaluationResult(Aws::String&& value) { m_evaluationResult = std::move(value); } /** *

The result of the evaluation operation.

*/ inline void SetEvaluationResult(const char* value) { m_evaluationResult.assign(value); } /** *

The result of the evaluation operation.

*/ inline EvaluateCodeResult& WithEvaluationResult(const Aws::String& value) { SetEvaluationResult(value); return *this;} /** *

The result of the evaluation operation.

*/ inline EvaluateCodeResult& WithEvaluationResult(Aws::String&& value) { SetEvaluationResult(std::move(value)); return *this;} /** *

The result of the evaluation operation.

*/ inline EvaluateCodeResult& WithEvaluationResult(const char* value) { SetEvaluationResult(value); return *this;} /** *

Contains the payload of the response error.

*/ inline const EvaluateCodeErrorDetail& GetError() const{ return m_error; } /** *

Contains the payload of the response error.

*/ inline void SetError(const EvaluateCodeErrorDetail& value) { m_error = value; } /** *

Contains the payload of the response error.

*/ inline void SetError(EvaluateCodeErrorDetail&& value) { m_error = std::move(value); } /** *

Contains the payload of the response error.

*/ inline EvaluateCodeResult& WithError(const EvaluateCodeErrorDetail& value) { SetError(value); return *this;} /** *

Contains the payload of the response error.

*/ inline EvaluateCodeResult& WithError(EvaluateCodeErrorDetail&& value) { SetError(std::move(value)); return *this;} /** *

A list of logs that were generated by calls to util.log.info and * util.log.error in the evaluated code.

*/ inline const Aws::Vector& GetLogs() const{ return m_logs; } /** *

A list of logs that were generated by calls to util.log.info and * util.log.error in the evaluated code.

*/ inline void SetLogs(const Aws::Vector& value) { m_logs = value; } /** *

A list of logs that were generated by calls to util.log.info and * util.log.error in the evaluated code.

*/ inline void SetLogs(Aws::Vector&& value) { m_logs = std::move(value); } /** *

A list of logs that were generated by calls to util.log.info and * util.log.error in the evaluated code.

*/ inline EvaluateCodeResult& WithLogs(const Aws::Vector& value) { SetLogs(value); return *this;} /** *

A list of logs that were generated by calls to util.log.info and * util.log.error in the evaluated code.

*/ inline EvaluateCodeResult& WithLogs(Aws::Vector&& value) { SetLogs(std::move(value)); return *this;} /** *

A list of logs that were generated by calls to util.log.info and * util.log.error in the evaluated code.

*/ inline EvaluateCodeResult& AddLogs(const Aws::String& value) { m_logs.push_back(value); return *this; } /** *

A list of logs that were generated by calls to util.log.info and * util.log.error in the evaluated code.

*/ inline EvaluateCodeResult& AddLogs(Aws::String&& value) { m_logs.push_back(std::move(value)); return *this; } /** *

A list of logs that were generated by calls to util.log.info and * util.log.error in the evaluated code.

*/ inline EvaluateCodeResult& AddLogs(const char* value) { m_logs.push_back(value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline EvaluateCodeResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline EvaluateCodeResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline EvaluateCodeResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_evaluationResult; EvaluateCodeErrorDetail m_error; Aws::Vector m_logs; Aws::String m_requestId; }; } // namespace Model } // namespace AppSync } // namespace Aws