AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RecognizeTextRequest.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/lexv2-runtime/LexRuntimeV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lexv2-runtime/model/SessionState.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace LexRuntimeV2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LEXRUNTIMEV2_API RecognizeTextRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "RecognizeText"; }
33
34 AWS_LEXRUNTIMEV2_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetBotId() const{ return m_botId; }
42 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
43 inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; }
44 inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); }
45 inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); }
46 inline RecognizeTextRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;}
47 inline RecognizeTextRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;}
48 inline RecognizeTextRequest& WithBotId(const char* value) { SetBotId(value); return *this;}
50
52
55 inline const Aws::String& GetBotAliasId() const{ return m_botAliasId; }
56 inline bool BotAliasIdHasBeenSet() const { return m_botAliasIdHasBeenSet; }
57 inline void SetBotAliasId(const Aws::String& value) { m_botAliasIdHasBeenSet = true; m_botAliasId = value; }
58 inline void SetBotAliasId(Aws::String&& value) { m_botAliasIdHasBeenSet = true; m_botAliasId = std::move(value); }
59 inline void SetBotAliasId(const char* value) { m_botAliasIdHasBeenSet = true; m_botAliasId.assign(value); }
60 inline RecognizeTextRequest& WithBotAliasId(const Aws::String& value) { SetBotAliasId(value); return *this;}
61 inline RecognizeTextRequest& WithBotAliasId(Aws::String&& value) { SetBotAliasId(std::move(value)); return *this;}
62 inline RecognizeTextRequest& WithBotAliasId(const char* value) { SetBotAliasId(value); return *this;}
64
66
69 inline const Aws::String& GetLocaleId() const{ return m_localeId; }
70 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
71 inline void SetLocaleId(const Aws::String& value) { m_localeIdHasBeenSet = true; m_localeId = value; }
72 inline void SetLocaleId(Aws::String&& value) { m_localeIdHasBeenSet = true; m_localeId = std::move(value); }
73 inline void SetLocaleId(const char* value) { m_localeIdHasBeenSet = true; m_localeId.assign(value); }
74 inline RecognizeTextRequest& WithLocaleId(const Aws::String& value) { SetLocaleId(value); return *this;}
75 inline RecognizeTextRequest& WithLocaleId(Aws::String&& value) { SetLocaleId(std::move(value)); return *this;}
76 inline RecognizeTextRequest& WithLocaleId(const char* value) { SetLocaleId(value); return *this;}
78
80
83 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
84 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
85 inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
86 inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
87 inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
88 inline RecognizeTextRequest& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
89 inline RecognizeTextRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
90 inline RecognizeTextRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;}
92
94
97 inline const Aws::String& GetText() const{ return m_text; }
98 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
99 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
100 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
101 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
102 inline RecognizeTextRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
103 inline RecognizeTextRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
104 inline RecognizeTextRequest& WithText(const char* value) { SetText(value); return *this;}
106
108
111 inline const SessionState& GetSessionState() const{ return m_sessionState; }
112 inline bool SessionStateHasBeenSet() const { return m_sessionStateHasBeenSet; }
113 inline void SetSessionState(const SessionState& value) { m_sessionStateHasBeenSet = true; m_sessionState = value; }
114 inline void SetSessionState(SessionState&& value) { m_sessionStateHasBeenSet = true; m_sessionState = std::move(value); }
115 inline RecognizeTextRequest& WithSessionState(const SessionState& value) { SetSessionState(value); return *this;}
116 inline RecognizeTextRequest& WithSessionState(SessionState&& value) { SetSessionState(std::move(value)); return *this;}
118
120
126 inline const Aws::Map<Aws::String, Aws::String>& GetRequestAttributes() const{ return m_requestAttributes; }
127 inline bool RequestAttributesHasBeenSet() const { return m_requestAttributesHasBeenSet; }
128 inline void SetRequestAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = value; }
129 inline void SetRequestAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = std::move(value); }
132 inline RecognizeTextRequest& AddRequestAttributes(const Aws::String& key, const Aws::String& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, value); return *this; }
133 inline RecognizeTextRequest& AddRequestAttributes(Aws::String&& key, const Aws::String& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::move(key), value); return *this; }
134 inline RecognizeTextRequest& AddRequestAttributes(const Aws::String& key, Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, std::move(value)); return *this; }
135 inline RecognizeTextRequest& AddRequestAttributes(Aws::String&& key, Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::move(key), std::move(value)); return *this; }
136 inline RecognizeTextRequest& AddRequestAttributes(const char* key, Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, std::move(value)); return *this; }
137 inline RecognizeTextRequest& AddRequestAttributes(Aws::String&& key, const char* value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::move(key), value); return *this; }
138 inline RecognizeTextRequest& AddRequestAttributes(const char* key, const char* value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, value); return *this; }
140 private:
141
142 Aws::String m_botId;
143 bool m_botIdHasBeenSet = false;
144
145 Aws::String m_botAliasId;
146 bool m_botAliasIdHasBeenSet = false;
147
148 Aws::String m_localeId;
149 bool m_localeIdHasBeenSet = false;
150
151 Aws::String m_sessionId;
152 bool m_sessionIdHasBeenSet = false;
153
154 Aws::String m_text;
155 bool m_textHasBeenSet = false;
156
157 SessionState m_sessionState;
158 bool m_sessionStateHasBeenSet = false;
159
160 Aws::Map<Aws::String, Aws::String> m_requestAttributes;
161 bool m_requestAttributesHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace LexRuntimeV2
166} // namespace Aws
RecognizeTextRequest & AddRequestAttributes(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetRequestAttributes() const
RecognizeTextRequest & AddRequestAttributes(const char *key, const char *value)
RecognizeTextRequest & WithLocaleId(const Aws::String &value)
RecognizeTextRequest & AddRequestAttributes(Aws::String &&key, const char *value)
AWS_LEXRUNTIMEV2_API Aws::String SerializePayload() const override
RecognizeTextRequest & WithLocaleId(const char *value)
RecognizeTextRequest & WithBotId(const char *value)
RecognizeTextRequest & WithSessionState(const SessionState &value)
RecognizeTextRequest & WithText(Aws::String &&value)
RecognizeTextRequest & AddRequestAttributes(Aws::String &&key, const Aws::String &value)
RecognizeTextRequest & WithRequestAttributes(const Aws::Map< Aws::String, Aws::String > &value)
void SetRequestAttributes(Aws::Map< Aws::String, Aws::String > &&value)
RecognizeTextRequest & WithBotAliasId(Aws::String &&value)
RecognizeTextRequest & WithSessionId(const char *value)
RecognizeTextRequest & WithSessionId(Aws::String &&value)
RecognizeTextRequest & WithBotId(const Aws::String &value)
RecognizeTextRequest & WithText(const char *value)
void SetRequestAttributes(const Aws::Map< Aws::String, Aws::String > &value)
RecognizeTextRequest & WithBotAliasId(const Aws::String &value)
RecognizeTextRequest & WithText(const Aws::String &value)
RecognizeTextRequest & AddRequestAttributes(const Aws::String &key, const Aws::String &value)
RecognizeTextRequest & AddRequestAttributes(Aws::String &&key, Aws::String &&value)
RecognizeTextRequest & WithBotId(Aws::String &&value)
RecognizeTextRequest & WithSessionId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
RecognizeTextRequest & WithRequestAttributes(Aws::Map< Aws::String, Aws::String > &&value)
RecognizeTextRequest & WithSessionState(SessionState &&value)
RecognizeTextRequest & WithBotAliasId(const char *value)
RecognizeTextRequest & AddRequestAttributes(const char *key, Aws::String &&value)
RecognizeTextRequest & WithLocaleId(Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String