AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EvaluateCodeErrorDetail.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/appsync/model/CodeError.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppSync
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_APPSYNC_API EvaluateCodeErrorDetail();
40 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetMessage() const{ return m_message; }
48 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
49 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
50 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
51 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
52 inline EvaluateCodeErrorDetail& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
53 inline EvaluateCodeErrorDetail& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
54 inline EvaluateCodeErrorDetail& WithMessage(const char* value) { SetMessage(value); return *this;}
56
58
61 inline const Aws::Vector<CodeError>& GetCodeErrors() const{ return m_codeErrors; }
62 inline bool CodeErrorsHasBeenSet() const { return m_codeErrorsHasBeenSet; }
63 inline void SetCodeErrors(const Aws::Vector<CodeError>& value) { m_codeErrorsHasBeenSet = true; m_codeErrors = value; }
64 inline void SetCodeErrors(Aws::Vector<CodeError>&& value) { m_codeErrorsHasBeenSet = true; m_codeErrors = std::move(value); }
65 inline EvaluateCodeErrorDetail& WithCodeErrors(const Aws::Vector<CodeError>& value) { SetCodeErrors(value); return *this;}
66 inline EvaluateCodeErrorDetail& WithCodeErrors(Aws::Vector<CodeError>&& value) { SetCodeErrors(std::move(value)); return *this;}
67 inline EvaluateCodeErrorDetail& AddCodeErrors(const CodeError& value) { m_codeErrorsHasBeenSet = true; m_codeErrors.push_back(value); return *this; }
68 inline EvaluateCodeErrorDetail& AddCodeErrors(CodeError&& value) { m_codeErrorsHasBeenSet = true; m_codeErrors.push_back(std::move(value)); return *this; }
70 private:
71
72 Aws::String m_message;
73 bool m_messageHasBeenSet = false;
74
75 Aws::Vector<CodeError> m_codeErrors;
76 bool m_codeErrorsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace AppSync
81} // namespace Aws
EvaluateCodeErrorDetail & WithCodeErrors(const Aws::Vector< CodeError > &value)
EvaluateCodeErrorDetail & AddCodeErrors(CodeError &&value)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< CodeError > & GetCodeErrors() const
EvaluateCodeErrorDetail & WithMessage(const char *value)
EvaluateCodeErrorDetail & AddCodeErrors(const CodeError &value)
void SetCodeErrors(Aws::Vector< CodeError > &&value)
void SetCodeErrors(const Aws::Vector< CodeError > &value)
AWS_APPSYNC_API EvaluateCodeErrorDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSYNC_API EvaluateCodeErrorDetail(Aws::Utils::Json::JsonView jsonValue)
EvaluateCodeErrorDetail & WithMessage(const Aws::String &value)
EvaluateCodeErrorDetail & WithCodeErrors(Aws::Vector< CodeError > &&value)
EvaluateCodeErrorDetail & WithMessage(Aws::String &&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