AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InvokeAgentRequest.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/BedrockAgentRuntimeRequest.h>
9#include <aws/bedrock-agent-runtime/model/InvokeAgentHandler.h>
10#include <aws/core/utils/event/EventStreamDecoder.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/bedrock-agent-runtime/model/SessionState.h>
13#include <utility>
14
15namespace Aws
16{
17namespace BedrockAgentRuntime
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_BEDROCKAGENTRUNTIME_API InvokeAgentRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "InvokeAgent"; }
34
35 AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override;
36
41
45 inline const InvokeAgentHandler& GetEventStreamHandler() const { return m_handler; }
46
50 inline void SetEventStreamHandler(const InvokeAgentHandler& value) { m_handler = value; m_decoder.ResetEventStreamHandler(&m_handler); }
51
56
57
59
62 inline const Aws::String& GetAgentAliasId() const{ return m_agentAliasId; }
63 inline bool AgentAliasIdHasBeenSet() const { return m_agentAliasIdHasBeenSet; }
64 inline void SetAgentAliasId(const Aws::String& value) { m_agentAliasIdHasBeenSet = true; m_agentAliasId = value; }
65 inline void SetAgentAliasId(Aws::String&& value) { m_agentAliasIdHasBeenSet = true; m_agentAliasId = std::move(value); }
66 inline void SetAgentAliasId(const char* value) { m_agentAliasIdHasBeenSet = true; m_agentAliasId.assign(value); }
67 inline InvokeAgentRequest& WithAgentAliasId(const Aws::String& value) { SetAgentAliasId(value); return *this;}
68 inline InvokeAgentRequest& WithAgentAliasId(Aws::String&& value) { SetAgentAliasId(std::move(value)); return *this;}
69 inline InvokeAgentRequest& WithAgentAliasId(const char* value) { SetAgentAliasId(value); return *this;}
71
73
76 inline const Aws::String& GetAgentId() const{ return m_agentId; }
77 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
78 inline void SetAgentId(const Aws::String& value) { m_agentIdHasBeenSet = true; m_agentId = value; }
79 inline void SetAgentId(Aws::String&& value) { m_agentIdHasBeenSet = true; m_agentId = std::move(value); }
80 inline void SetAgentId(const char* value) { m_agentIdHasBeenSet = true; m_agentId.assign(value); }
81 inline InvokeAgentRequest& WithAgentId(const Aws::String& value) { SetAgentId(value); return *this;}
82 inline InvokeAgentRequest& WithAgentId(Aws::String&& value) { SetAgentId(std::move(value)); return *this;}
83 inline InvokeAgentRequest& WithAgentId(const char* value) { SetAgentId(value); return *this;}
85
87
93 inline bool GetEnableTrace() const{ return m_enableTrace; }
94 inline bool EnableTraceHasBeenSet() const { return m_enableTraceHasBeenSet; }
95 inline void SetEnableTrace(bool value) { m_enableTraceHasBeenSet = true; m_enableTrace = value; }
96 inline InvokeAgentRequest& WithEnableTrace(bool value) { SetEnableTrace(value); return *this;}
98
100
103 inline bool GetEndSession() const{ return m_endSession; }
104 inline bool EndSessionHasBeenSet() const { return m_endSessionHasBeenSet; }
105 inline void SetEndSession(bool value) { m_endSessionHasBeenSet = true; m_endSession = value; }
106 inline InvokeAgentRequest& WithEndSession(bool value) { SetEndSession(value); return *this;}
108
110
115 inline const Aws::String& GetInputText() const{ return m_inputText; }
116 inline bool InputTextHasBeenSet() const { return m_inputTextHasBeenSet; }
117 inline void SetInputText(const Aws::String& value) { m_inputTextHasBeenSet = true; m_inputText = value; }
118 inline void SetInputText(Aws::String&& value) { m_inputTextHasBeenSet = true; m_inputText = std::move(value); }
119 inline void SetInputText(const char* value) { m_inputTextHasBeenSet = true; m_inputText.assign(value); }
120 inline InvokeAgentRequest& WithInputText(const Aws::String& value) { SetInputText(value); return *this;}
121 inline InvokeAgentRequest& WithInputText(Aws::String&& value) { SetInputText(std::move(value)); return *this;}
122 inline InvokeAgentRequest& WithInputText(const char* value) { SetInputText(value); return *this;}
124
126
129 inline const Aws::String& GetMemoryId() const{ return m_memoryId; }
130 inline bool MemoryIdHasBeenSet() const { return m_memoryIdHasBeenSet; }
131 inline void SetMemoryId(const Aws::String& value) { m_memoryIdHasBeenSet = true; m_memoryId = value; }
132 inline void SetMemoryId(Aws::String&& value) { m_memoryIdHasBeenSet = true; m_memoryId = std::move(value); }
133 inline void SetMemoryId(const char* value) { m_memoryIdHasBeenSet = true; m_memoryId.assign(value); }
134 inline InvokeAgentRequest& WithMemoryId(const Aws::String& value) { SetMemoryId(value); return *this;}
135 inline InvokeAgentRequest& WithMemoryId(Aws::String&& value) { SetMemoryId(std::move(value)); return *this;}
136 inline InvokeAgentRequest& WithMemoryId(const char* value) { SetMemoryId(value); return *this;}
138
140
144 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
145 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
146 inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
147 inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
148 inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
149 inline InvokeAgentRequest& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
150 inline InvokeAgentRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
151 inline InvokeAgentRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;}
153
155
163 inline const SessionState& GetSessionState() const{ return m_sessionState; }
164 inline bool SessionStateHasBeenSet() const { return m_sessionStateHasBeenSet; }
165 inline void SetSessionState(const SessionState& value) { m_sessionStateHasBeenSet = true; m_sessionState = value; }
166 inline void SetSessionState(SessionState&& value) { m_sessionStateHasBeenSet = true; m_sessionState = std::move(value); }
167 inline InvokeAgentRequest& WithSessionState(const SessionState& value) { SetSessionState(value); return *this;}
168 inline InvokeAgentRequest& WithSessionState(SessionState&& value) { SetSessionState(std::move(value)); return *this;}
170 private:
171
172 Aws::String m_agentAliasId;
173 bool m_agentAliasIdHasBeenSet = false;
174
175 Aws::String m_agentId;
176 bool m_agentIdHasBeenSet = false;
177
178 bool m_enableTrace;
179 bool m_enableTraceHasBeenSet = false;
180
181 bool m_endSession;
182 bool m_endSessionHasBeenSet = false;
183
184 Aws::String m_inputText;
185 bool m_inputTextHasBeenSet = false;
186
187 Aws::String m_memoryId;
188 bool m_memoryIdHasBeenSet = false;
189
190 Aws::String m_sessionId;
191 bool m_sessionIdHasBeenSet = false;
192
193 SessionState m_sessionState;
194 bool m_sessionStateHasBeenSet = false;
195 InvokeAgentHandler m_handler;
197
198 };
199
200} // namespace Model
201} // namespace BedrockAgentRuntime
202} // namespace Aws
InvokeAgentRequest & WithSessionState(const SessionState &value)
InvokeAgentRequest & WithMemoryId(const Aws::String &value)
InvokeAgentRequest & WithSessionId(const char *value)
AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override
InvokeAgentRequest & WithAgentId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
InvokeAgentRequest & WithAgentAliasId(const Aws::String &value)
InvokeAgentRequest & WithInputText(Aws::String &&value)
InvokeAgentRequest & WithMemoryId(Aws::String &&value)
InvokeAgentRequest & WithEventStreamHandler(const InvokeAgentHandler &value)
void SetEventStreamHandler(const InvokeAgentHandler &value)
InvokeAgentRequest & WithAgentId(const Aws::String &value)
Aws::Utils::Event::EventStreamDecoder & GetEventStreamDecoder()
InvokeAgentRequest & WithInputText(const char *value)
InvokeAgentRequest & WithSessionState(SessionState &&value)
const InvokeAgentHandler & GetEventStreamHandler() const
AWS_BEDROCKAGENTRUNTIME_API InvokeAgentRequest()
InvokeAgentRequest & WithSessionId(Aws::String &&value)
InvokeAgentRequest & WithInputText(const Aws::String &value)
InvokeAgentRequest & WithSessionId(const Aws::String &value)
InvokeAgentRequest & WithAgentAliasId(Aws::String &&value)
InvokeAgentRequest & WithAgentId(const char *value)
InvokeAgentRequest & WithAgentAliasId(const char *value)
InvokeAgentRequest & WithMemoryId(const char *value)
void ResetEventStreamHandler(EventStreamHandler *handler)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String