AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Warning.h
1
6#pragma once
7#include <aws/textract/Textract_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 Textract
23{
24namespace Model
25{
26
34 class Warning
35 {
36 public:
37 AWS_TEXTRACT_API Warning();
38 AWS_TEXTRACT_API Warning(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TEXTRACT_API Warning& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
48 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
49 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
50 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
51 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
52 inline Warning& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
53 inline Warning& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
54 inline Warning& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
56
58
61 inline const Aws::Vector<int>& GetPages() const{ return m_pages; }
62 inline bool PagesHasBeenSet() const { return m_pagesHasBeenSet; }
63 inline void SetPages(const Aws::Vector<int>& value) { m_pagesHasBeenSet = true; m_pages = value; }
64 inline void SetPages(Aws::Vector<int>&& value) { m_pagesHasBeenSet = true; m_pages = std::move(value); }
65 inline Warning& WithPages(const Aws::Vector<int>& value) { SetPages(value); return *this;}
66 inline Warning& WithPages(Aws::Vector<int>&& value) { SetPages(std::move(value)); return *this;}
67 inline Warning& AddPages(int value) { m_pagesHasBeenSet = true; m_pages.push_back(value); return *this; }
69 private:
70
71 Aws::String m_errorCode;
72 bool m_errorCodeHasBeenSet = false;
73
74 Aws::Vector<int> m_pages;
75 bool m_pagesHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Textract
80} // namespace Aws
bool ErrorCodeHasBeenSet() const
Definition Warning.h:48
Warning & WithPages(Aws::Vector< int > &&value)
Definition Warning.h:66
void SetErrorCode(const char *value)
Definition Warning.h:51
AWS_TEXTRACT_API Warning(Aws::Utils::Json::JsonView jsonValue)
Warning & AddPages(int value)
Definition Warning.h:67
const Aws::String & GetErrorCode() const
Definition Warning.h:47
bool PagesHasBeenSet() const
Definition Warning.h:62
Warning & WithErrorCode(const char *value)
Definition Warning.h:54
AWS_TEXTRACT_API Warning()
Warning & WithErrorCode(Aws::String &&value)
Definition Warning.h:53
void SetPages(Aws::Vector< int > &&value)
Definition Warning.h:64
void SetErrorCode(const Aws::String &value)
Definition Warning.h:49
const Aws::Vector< int > & GetPages() const
Definition Warning.h:61
void SetPages(const Aws::Vector< int > &value)
Definition Warning.h:63
void SetErrorCode(Aws::String &&value)
Definition Warning.h:50
Warning & WithErrorCode(const Aws::String &value)
Definition Warning.h:52
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TEXTRACT_API Warning & operator=(Aws::Utils::Json::JsonView jsonValue)
Warning & WithPages(const Aws::Vector< int > &value)
Definition Warning.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue