AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
50 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
51 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
52 inline Query& WithText(const Aws::String& value) { SetText(value); return *this;}
53 inline Query& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
54 inline Query& WithText(const char* value) { SetText(value); return *this;}
56
58
61 inline const Aws::String& GetAlias() const{ return m_alias; }
62 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
63 inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
64 inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
65 inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
66 inline Query& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
67 inline Query& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
68 inline Query& WithAlias(const char* value) { SetAlias(value); return *this;}
70
72
84 inline const Aws::Vector<Aws::String>& GetPages() const{ return m_pages; }
85 inline bool PagesHasBeenSet() const { return m_pagesHasBeenSet; }
86 inline void SetPages(const Aws::Vector<Aws::String>& value) { m_pagesHasBeenSet = true; m_pages = value; }
87 inline void SetPages(Aws::Vector<Aws::String>&& value) { m_pagesHasBeenSet = true; m_pages = std::move(value); }
88 inline Query& WithPages(const Aws::Vector<Aws::String>& value) { SetPages(value); return *this;}
89 inline Query& WithPages(Aws::Vector<Aws::String>&& value) { SetPages(std::move(value)); return *this;}
90 inline Query& AddPages(const Aws::String& value) { m_pagesHasBeenSet = true; m_pages.push_back(value); return *this; }
91 inline Query& AddPages(Aws::String&& value) { m_pagesHasBeenSet = true; m_pages.push_back(std::move(value)); return *this; }
92 inline Query& AddPages(const char* value) { m_pagesHasBeenSet = true; m_pages.push_back(value); return *this; }
94 private:
95
96 Aws::String m_text;
97 bool m_textHasBeenSet = false;
98
99 Aws::String m_alias;
100 bool m_aliasHasBeenSet = false;
101
103 bool m_pagesHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Textract
108} // namespace Aws
Query & AddPages(const Aws::String &value)
Definition Query.h:90
void SetPages(Aws::Vector< Aws::String > &&value)
Definition Query.h:87
Query & WithPages(const Aws::Vector< Aws::String > &value)
Definition Query.h:88
Query & WithText(const char *value)
Definition Query.h:54
void SetAlias(Aws::String &&value)
Definition Query.h:64
bool TextHasBeenSet() const
Definition Query.h:48
const Aws::Vector< Aws::String > & GetPages() const
Definition Query.h:84
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TEXTRACT_API Query()
Query & AddPages(Aws::String &&value)
Definition Query.h:91
Query & WithAlias(const Aws::String &value)
Definition Query.h:66
AWS_TEXTRACT_API Query(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetText() const
Definition Query.h:47
void SetText(Aws::String &&value)
Definition Query.h:50
void SetPages(const Aws::Vector< Aws::String > &value)
Definition Query.h:86
void SetText(const char *value)
Definition Query.h:51
void SetAlias(const char *value)
Definition Query.h:65
Query & AddPages(const char *value)
Definition Query.h:92
bool PagesHasBeenSet() const
Definition Query.h:85
void SetText(const Aws::String &value)
Definition Query.h:49
void SetAlias(const Aws::String &value)
Definition Query.h:63
Query & WithText(const Aws::String &value)
Definition Query.h:52
Query & WithPages(Aws::Vector< Aws::String > &&value)
Definition Query.h:89
Query & WithAlias(const char *value)
Definition Query.h:68
Query & WithAlias(Aws::String &&value)
Definition Query.h:67
AWS_TEXTRACT_API Query & operator=(Aws::Utils::Json::JsonView jsonValue)
Query & WithText(Aws::String &&value)
Definition Query.h:53
bool AliasHasBeenSet() const
Definition Query.h:62
const Aws::String & GetAlias() const
Definition Query.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue