AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WarningsListItem.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/PageBasedWarningCode.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
37 {
38 public:
39 AWS_COMPREHEND_API WarningsListItem();
40 AWS_COMPREHEND_API WarningsListItem(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline int GetPage() const{ return m_page; }
50 inline bool PageHasBeenSet() const { return m_pageHasBeenSet; }
51 inline void SetPage(int value) { m_pageHasBeenSet = true; m_page = value; }
52 inline WarningsListItem& WithPage(int value) { SetPage(value); return *this;}
54
56
59 inline const PageBasedWarningCode& GetWarnCode() const{ return m_warnCode; }
60 inline bool WarnCodeHasBeenSet() const { return m_warnCodeHasBeenSet; }
61 inline void SetWarnCode(const PageBasedWarningCode& value) { m_warnCodeHasBeenSet = true; m_warnCode = value; }
62 inline void SetWarnCode(PageBasedWarningCode&& value) { m_warnCodeHasBeenSet = true; m_warnCode = std::move(value); }
63 inline WarningsListItem& WithWarnCode(const PageBasedWarningCode& value) { SetWarnCode(value); return *this;}
64 inline WarningsListItem& WithWarnCode(PageBasedWarningCode&& value) { SetWarnCode(std::move(value)); return *this;}
66
68
71 inline const Aws::String& GetWarnMessage() const{ return m_warnMessage; }
72 inline bool WarnMessageHasBeenSet() const { return m_warnMessageHasBeenSet; }
73 inline void SetWarnMessage(const Aws::String& value) { m_warnMessageHasBeenSet = true; m_warnMessage = value; }
74 inline void SetWarnMessage(Aws::String&& value) { m_warnMessageHasBeenSet = true; m_warnMessage = std::move(value); }
75 inline void SetWarnMessage(const char* value) { m_warnMessageHasBeenSet = true; m_warnMessage.assign(value); }
76 inline WarningsListItem& WithWarnMessage(const Aws::String& value) { SetWarnMessage(value); return *this;}
77 inline WarningsListItem& WithWarnMessage(Aws::String&& value) { SetWarnMessage(std::move(value)); return *this;}
78 inline WarningsListItem& WithWarnMessage(const char* value) { SetWarnMessage(value); return *this;}
80 private:
81
82 int m_page;
83 bool m_pageHasBeenSet = false;
84
85 PageBasedWarningCode m_warnCode;
86 bool m_warnCodeHasBeenSet = false;
87
88 Aws::String m_warnMessage;
89 bool m_warnMessageHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace Comprehend
94} // namespace Aws
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
void SetWarnMessage(const Aws::String &value)
void SetWarnCode(PageBasedWarningCode &&value)
const PageBasedWarningCode & GetWarnCode() const
WarningsListItem & WithPage(int value)
WarningsListItem & WithWarnCode(const PageBasedWarningCode &value)
void SetWarnCode(const PageBasedWarningCode &value)
const Aws::String & GetWarnMessage() const
WarningsListItem & WithWarnMessage(const char *value)
AWS_COMPREHEND_API WarningsListItem & operator=(Aws::Utils::Json::JsonView jsonValue)
WarningsListItem & WithWarnMessage(Aws::String &&value)
WarningsListItem & WithWarnCode(PageBasedWarningCode &&value)
WarningsListItem & WithWarnMessage(const Aws::String &value)
AWS_COMPREHEND_API WarningsListItem(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue