AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RecognizeTextResult.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lexv2-runtime/model/SessionState.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/lexv2-runtime/model/RecognizedBotMember.h>
13#include <aws/lexv2-runtime/model/Message.h>
14#include <aws/lexv2-runtime/model/Interpretation.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace LexRuntimeV2
30{
31namespace Model
32{
34 {
35 public:
36 AWS_LEXRUNTIMEV2_API RecognizeTextResult();
39
40
42
47 inline const Aws::Vector<Message>& GetMessages() const{ return m_messages; }
48 inline void SetMessages(const Aws::Vector<Message>& value) { m_messages = value; }
49 inline void SetMessages(Aws::Vector<Message>&& value) { m_messages = std::move(value); }
50 inline RecognizeTextResult& WithMessages(const Aws::Vector<Message>& value) { SetMessages(value); return *this;}
51 inline RecognizeTextResult& WithMessages(Aws::Vector<Message>&& value) { SetMessages(std::move(value)); return *this;}
52 inline RecognizeTextResult& AddMessages(const Message& value) { m_messages.push_back(value); return *this; }
53 inline RecognizeTextResult& AddMessages(Message&& value) { m_messages.push_back(std::move(value)); return *this; }
55
57
62 inline const SessionState& GetSessionState() const{ return m_sessionState; }
63 inline void SetSessionState(const SessionState& value) { m_sessionState = value; }
64 inline void SetSessionState(SessionState&& value) { m_sessionState = std::move(value); }
65 inline RecognizeTextResult& WithSessionState(const SessionState& value) { SetSessionState(value); return *this;}
66 inline RecognizeTextResult& WithSessionState(SessionState&& value) { SetSessionState(std::move(value)); return *this;}
68
70
77 inline const Aws::Vector<Interpretation>& GetInterpretations() const{ return m_interpretations; }
78 inline void SetInterpretations(const Aws::Vector<Interpretation>& value) { m_interpretations = value; }
79 inline void SetInterpretations(Aws::Vector<Interpretation>&& value) { m_interpretations = std::move(value); }
82 inline RecognizeTextResult& AddInterpretations(const Interpretation& value) { m_interpretations.push_back(value); return *this; }
83 inline RecognizeTextResult& AddInterpretations(Interpretation&& value) { m_interpretations.push_back(std::move(value)); return *this; }
85
87
90 inline const Aws::Map<Aws::String, Aws::String>& GetRequestAttributes() const{ return m_requestAttributes; }
91 inline void SetRequestAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_requestAttributes = value; }
92 inline void SetRequestAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_requestAttributes = std::move(value); }
95 inline RecognizeTextResult& AddRequestAttributes(const Aws::String& key, const Aws::String& value) { m_requestAttributes.emplace(key, value); return *this; }
96 inline RecognizeTextResult& AddRequestAttributes(Aws::String&& key, const Aws::String& value) { m_requestAttributes.emplace(std::move(key), value); return *this; }
97 inline RecognizeTextResult& AddRequestAttributes(const Aws::String& key, Aws::String&& value) { m_requestAttributes.emplace(key, std::move(value)); return *this; }
98 inline RecognizeTextResult& AddRequestAttributes(Aws::String&& key, Aws::String&& value) { m_requestAttributes.emplace(std::move(key), std::move(value)); return *this; }
99 inline RecognizeTextResult& AddRequestAttributes(const char* key, Aws::String&& value) { m_requestAttributes.emplace(key, std::move(value)); return *this; }
100 inline RecognizeTextResult& AddRequestAttributes(Aws::String&& key, const char* value) { m_requestAttributes.emplace(std::move(key), value); return *this; }
101 inline RecognizeTextResult& AddRequestAttributes(const char* key, const char* value) { m_requestAttributes.emplace(key, value); return *this; }
103
105
108 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
109 inline void SetSessionId(const Aws::String& value) { m_sessionId = value; }
110 inline void SetSessionId(Aws::String&& value) { m_sessionId = std::move(value); }
111 inline void SetSessionId(const char* value) { m_sessionId.assign(value); }
112 inline RecognizeTextResult& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
113 inline RecognizeTextResult& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
114 inline RecognizeTextResult& WithSessionId(const char* value) { SetSessionId(value); return *this;}
116
118
121 inline const RecognizedBotMember& GetRecognizedBotMember() const{ return m_recognizedBotMember; }
122 inline void SetRecognizedBotMember(const RecognizedBotMember& value) { m_recognizedBotMember = value; }
123 inline void SetRecognizedBotMember(RecognizedBotMember&& value) { m_recognizedBotMember = std::move(value); }
127
129
130 inline const Aws::String& GetRequestId() const{ return m_requestId; }
131 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
132 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
133 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
134 inline RecognizeTextResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
135 inline RecognizeTextResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
136 inline RecognizeTextResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
138 private:
139
140 Aws::Vector<Message> m_messages;
141
142 SessionState m_sessionState;
143
144 Aws::Vector<Interpretation> m_interpretations;
145
146 Aws::Map<Aws::String, Aws::String> m_requestAttributes;
147
148 Aws::String m_sessionId;
149
150 RecognizedBotMember m_recognizedBotMember;
151
152 Aws::String m_requestId;
153 };
154
155} // namespace Model
156} // namespace LexRuntimeV2
157} // namespace Aws
RecognizeTextResult & WithRecognizedBotMember(const RecognizedBotMember &value)
const Aws::Vector< Interpretation > & GetInterpretations() const
void SetRecognizedBotMember(RecognizedBotMember &&value)
void SetInterpretations(const Aws::Vector< Interpretation > &value)
RecognizeTextResult & WithSessionId(const Aws::String &value)
RecognizeTextResult & WithRequestAttributes(const Aws::Map< Aws::String, Aws::String > &value)
RecognizeTextResult & AddMessages(Message &&value)
RecognizeTextResult & AddRequestAttributes(const char *key, Aws::String &&value)
RecognizeTextResult & AddMessages(const Message &value)
AWS_LEXRUNTIMEV2_API RecognizeTextResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RecognizeTextResult & AddInterpretations(Interpretation &&value)
RecognizeTextResult & WithMessages(Aws::Vector< Message > &&value)
RecognizeTextResult & WithRequestId(Aws::String &&value)
const Aws::Vector< Message > & GetMessages() const
void SetRecognizedBotMember(const RecognizedBotMember &value)
RecognizeTextResult & AddRequestAttributes(const Aws::String &key, Aws::String &&value)
void SetSessionState(const SessionState &value)
RecognizeTextResult & WithSessionId(const char *value)
RecognizeTextResult & WithInterpretations(const Aws::Vector< Interpretation > &value)
RecognizeTextResult & AddRequestAttributes(Aws::String &&key, const char *value)
void SetRequestAttributes(Aws::Map< Aws::String, Aws::String > &&value)
RecognizeTextResult & WithRequestAttributes(Aws::Map< Aws::String, Aws::String > &&value)
RecognizeTextResult & AddRequestAttributes(Aws::String &&key, const Aws::String &value)
RecognizeTextResult & AddRequestAttributes(Aws::String &&key, Aws::String &&value)
AWS_LEXRUNTIMEV2_API RecognizeTextResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RecognizeTextResult & WithInterpretations(Aws::Vector< Interpretation > &&value)
RecognizeTextResult & WithSessionState(const SessionState &value)
RecognizeTextResult & WithRecognizedBotMember(RecognizedBotMember &&value)
RecognizeTextResult & AddRequestAttributes(const Aws::String &key, const Aws::String &value)
RecognizeTextResult & AddRequestAttributes(const char *key, const char *value)
const RecognizedBotMember & GetRecognizedBotMember() const
RecognizeTextResult & WithSessionId(Aws::String &&value)
void SetMessages(Aws::Vector< Message > &&value)
void SetInterpretations(Aws::Vector< Interpretation > &&value)
void SetMessages(const Aws::Vector< Message > &value)
const Aws::Map< Aws::String, Aws::String > & GetRequestAttributes() const
void SetRequestAttributes(const Aws::Map< Aws::String, Aws::String > &value)
RecognizeTextResult & AddInterpretations(const Interpretation &value)
RecognizeTextResult & WithSessionState(SessionState &&value)
RecognizeTextResult & WithRequestId(const char *value)
RecognizeTextResult & WithRequestId(const Aws::String &value)
RecognizeTextResult & WithMessages(const Aws::Vector< Message > &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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue