AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ErrorsListItem.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/PageBasedErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Comprehend
23{
24namespace Model
25{
26
48 {
49 public:
50 AWS_COMPREHEND_API ErrorsListItem();
51 AWS_COMPREHEND_API ErrorsListItem(Aws::Utils::Json::JsonView jsonValue);
52 AWS_COMPREHEND_API ErrorsListItem& operator=(Aws::Utils::Json::JsonView jsonValue);
53 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
54
55
57
60 inline int GetPage() const{ return m_page; }
61 inline bool PageHasBeenSet() const { return m_pageHasBeenSet; }
62 inline void SetPage(int value) { m_pageHasBeenSet = true; m_page = value; }
63 inline ErrorsListItem& WithPage(int value) { SetPage(value); return *this;}
65
67
70 inline const PageBasedErrorCode& GetErrorCode() const{ return m_errorCode; }
71 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
72 inline void SetErrorCode(const PageBasedErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
73 inline void SetErrorCode(PageBasedErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
74 inline ErrorsListItem& WithErrorCode(const PageBasedErrorCode& value) { SetErrorCode(value); return *this;}
75 inline ErrorsListItem& WithErrorCode(PageBasedErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
77
79
82 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
83 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
84 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
85 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
86 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
87 inline ErrorsListItem& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
88 inline ErrorsListItem& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
89 inline ErrorsListItem& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
91 private:
92
93 int m_page;
94 bool m_pageHasBeenSet = false;
95
96 PageBasedErrorCode m_errorCode;
97 bool m_errorCodeHasBeenSet = false;
98
99 Aws::String m_errorMessage;
100 bool m_errorMessageHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Comprehend
105} // namespace Aws
void SetErrorCode(const PageBasedErrorCode &value)
void SetErrorMessage(const char *value)
void SetErrorCode(PageBasedErrorCode &&value)
const Aws::String & GetErrorMessage() const
ErrorsListItem & WithErrorCode(const PageBasedErrorCode &value)
AWS_COMPREHEND_API ErrorsListItem(Aws::Utils::Json::JsonView jsonValue)
void SetErrorMessage(const Aws::String &value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
ErrorsListItem & WithPage(int value)
ErrorsListItem & WithErrorMessage(Aws::String &&value)
const PageBasedErrorCode & GetErrorCode() const
AWS_COMPREHEND_API ErrorsListItem & operator=(Aws::Utils::Json::JsonView jsonValue)
ErrorsListItem & WithErrorMessage(const Aws::String &value)
void SetErrorMessage(Aws::String &&value)
ErrorsListItem & WithErrorMessage(const char *value)
ErrorsListItem & WithErrorCode(PageBasedErrorCode &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue