AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Query.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/textract/Textract_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Textract {
21namespace Model {
22
29class Query {
30 public:
31 AWS_TEXTRACT_API Query() = default;
32 AWS_TEXTRACT_API Query(Aws::Utils::Json::JsonView jsonValue);
33 AWS_TEXTRACT_API Query& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetText() const { return m_text; }
42 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
43 template <typename TextT = Aws::String>
44 void SetText(TextT&& value) {
45 m_textHasBeenSet = true;
46 m_text = std::forward<TextT>(value);
47 }
48 template <typename TextT = Aws::String>
49 Query& WithText(TextT&& value) {
50 SetText(std::forward<TextT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAlias() const { return m_alias; }
60 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
61 template <typename AliasT = Aws::String>
62 void SetAlias(AliasT&& value) {
63 m_aliasHasBeenSet = true;
64 m_alias = std::forward<AliasT>(value);
65 }
66 template <typename AliasT = Aws::String>
67 Query& WithAlias(AliasT&& value) {
68 SetAlias(std::forward<AliasT>(value));
69 return *this;
70 }
72
74
86 inline const Aws::Vector<Aws::String>& GetPages() const { return m_pages; }
87 inline bool PagesHasBeenSet() const { return m_pagesHasBeenSet; }
88 template <typename PagesT = Aws::Vector<Aws::String>>
89 void SetPages(PagesT&& value) {
90 m_pagesHasBeenSet = true;
91 m_pages = std::forward<PagesT>(value);
92 }
93 template <typename PagesT = Aws::Vector<Aws::String>>
94 Query& WithPages(PagesT&& value) {
95 SetPages(std::forward<PagesT>(value));
96 return *this;
97 }
98 template <typename PagesT = Aws::String>
99 Query& AddPages(PagesT&& value) {
100 m_pagesHasBeenSet = true;
101 m_pages.emplace_back(std::forward<PagesT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_text;
107
108 Aws::String m_alias;
109
111 bool m_textHasBeenSet = false;
112 bool m_aliasHasBeenSet = false;
113 bool m_pagesHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace Textract
118} // namespace Aws
void SetAlias(AliasT &&value)
Definition Query.h:62
AWS_TEXTRACT_API Query()=default
bool TextHasBeenSet() const
Definition Query.h:42
const Aws::Vector< Aws::String > & GetPages() const
Definition Query.h:86
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
Query & AddPages(PagesT &&value)
Definition Query.h:99
void SetPages(PagesT &&value)
Definition Query.h:89
AWS_TEXTRACT_API Query(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetText() const
Definition Query.h:41
Query & WithAlias(AliasT &&value)
Definition Query.h:67
Query & WithText(TextT &&value)
Definition Query.h:49
void SetText(TextT &&value)
Definition Query.h:44
bool PagesHasBeenSet() const
Definition Query.h:87
Query & WithPages(PagesT &&value)
Definition Query.h:94
AWS_TEXTRACT_API Query & operator=(Aws::Utils::Json::JsonView jsonValue)
bool AliasHasBeenSet() const
Definition Query.h:60
const Aws::String & GetAlias() const
Definition Query.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue