AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Query.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
33 class Query
34 {
35 public:
36 AWS_TEXTRACT_API Query() = default;
37 AWS_TEXTRACT_API Query(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TEXTRACT_API Query& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetText() const { return m_text; }
48 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
49 template<typename TextT = Aws::String>
50 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
51 template<typename TextT = Aws::String>
52 Query& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
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) { m_aliasHasBeenSet = true; m_alias = std::forward<AliasT>(value); }
63 template<typename AliasT = Aws::String>
64 Query& WithAlias(AliasT&& value) { SetAlias(std::forward<AliasT>(value)); return *this;}
66
68
80 inline const Aws::Vector<Aws::String>& GetPages() const { return m_pages; }
81 inline bool PagesHasBeenSet() const { return m_pagesHasBeenSet; }
82 template<typename PagesT = Aws::Vector<Aws::String>>
83 void SetPages(PagesT&& value) { m_pagesHasBeenSet = true; m_pages = std::forward<PagesT>(value); }
84 template<typename PagesT = Aws::Vector<Aws::String>>
85 Query& WithPages(PagesT&& value) { SetPages(std::forward<PagesT>(value)); return *this;}
86 template<typename PagesT = Aws::String>
87 Query& AddPages(PagesT&& value) { m_pagesHasBeenSet = true; m_pages.emplace_back(std::forward<PagesT>(value)); return *this; }
89 private:
90
91 Aws::String m_text;
92 bool m_textHasBeenSet = false;
93
94 Aws::String m_alias;
95 bool m_aliasHasBeenSet = false;
96
98 bool m_pagesHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace Textract
103} // namespace Aws
void SetAlias(AliasT &&value)
Definition Query.h:62
AWS_TEXTRACT_API Query()=default
bool TextHasBeenSet() const
Definition Query.h:48
const Aws::Vector< Aws::String > & GetPages() const
Definition Query.h:80
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
Query & AddPages(PagesT &&value)
Definition Query.h:87
void SetPages(PagesT &&value)
Definition Query.h:83
AWS_TEXTRACT_API Query(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetText() const
Definition Query.h:47
Query & WithAlias(AliasT &&value)
Definition Query.h:64
Query & WithText(TextT &&value)
Definition Query.h:52
void SetText(TextT &&value)
Definition Query.h:50
bool PagesHasBeenSet() const
Definition Query.h:81
Query & WithPages(PagesT &&value)
Definition Query.h:85
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