AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
GetAgentMemoryRequest.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntimeRequest.h>
8#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
9#include <aws/bedrock-agent-runtime/model/MemoryType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace BedrockAgentRuntime {
19namespace Model {
20
24 public:
25 AWS_BEDROCKAGENTRUNTIME_API GetAgentMemoryRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetAgentMemory"; }
32
33 AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override;
34
35 AWS_BEDROCKAGENTRUNTIME_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline const Aws::String& GetAgentAliasId() const { return m_agentAliasId; }
42 inline bool AgentAliasIdHasBeenSet() const { return m_agentAliasIdHasBeenSet; }
43 template <typename AgentAliasIdT = Aws::String>
45 m_agentAliasIdHasBeenSet = true;
46 m_agentAliasId = std::forward<AgentAliasIdT>(value);
47 }
48 template <typename AgentAliasIdT = Aws::String>
50 SetAgentAliasId(std::forward<AgentAliasIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAgentId() const { return m_agentId; }
60 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
61 template <typename AgentIdT = Aws::String>
62 void SetAgentId(AgentIdT&& value) {
63 m_agentIdHasBeenSet = true;
64 m_agentId = std::forward<AgentIdT>(value);
65 }
66 template <typename AgentIdT = Aws::String>
68 SetAgentId(std::forward<AgentIdT>(value));
69 return *this;
70 }
72
74
80 inline int GetMaxItems() const { return m_maxItems; }
81 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
82 inline void SetMaxItems(int value) {
83 m_maxItemsHasBeenSet = true;
84 m_maxItems = value;
85 }
87 SetMaxItems(value);
88 return *this;
89 }
91
93
96 inline const Aws::String& GetMemoryId() const { return m_memoryId; }
97 inline bool MemoryIdHasBeenSet() const { return m_memoryIdHasBeenSet; }
98 template <typename MemoryIdT = Aws::String>
99 void SetMemoryId(MemoryIdT&& value) {
100 m_memoryIdHasBeenSet = true;
101 m_memoryId = std::forward<MemoryIdT>(value);
102 }
103 template <typename MemoryIdT = Aws::String>
105 SetMemoryId(std::forward<MemoryIdT>(value));
106 return *this;
107 }
109
111
114 inline MemoryType GetMemoryType() const { return m_memoryType; }
115 inline bool MemoryTypeHasBeenSet() const { return m_memoryTypeHasBeenSet; }
116 inline void SetMemoryType(MemoryType value) {
117 m_memoryTypeHasBeenSet = true;
118 m_memoryType = value;
119 }
121 SetMemoryType(value);
122 return *this;
123 }
125
127
132 inline const Aws::String& GetNextToken() const { return m_nextToken; }
133 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
134 template <typename NextTokenT = Aws::String>
135 void SetNextToken(NextTokenT&& value) {
136 m_nextTokenHasBeenSet = true;
137 m_nextToken = std::forward<NextTokenT>(value);
138 }
139 template <typename NextTokenT = Aws::String>
141 SetNextToken(std::forward<NextTokenT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_agentAliasId;
147
148 Aws::String m_agentId;
149
150 int m_maxItems{0};
151
152 Aws::String m_memoryId;
153
154 MemoryType m_memoryType{MemoryType::NOT_SET};
155
156 Aws::String m_nextToken;
157 bool m_agentAliasIdHasBeenSet = false;
158 bool m_agentIdHasBeenSet = false;
159 bool m_maxItemsHasBeenSet = false;
160 bool m_memoryIdHasBeenSet = false;
161 bool m_memoryTypeHasBeenSet = false;
162 bool m_nextTokenHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace BedrockAgentRuntime
167} // namespace Aws
GetAgentMemoryRequest & WithAgentAliasId(AgentAliasIdT &&value)
GetAgentMemoryRequest & WithNextToken(NextTokenT &&value)
AWS_BEDROCKAGENTRUNTIME_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override
AWS_BEDROCKAGENTRUNTIME_API GetAgentMemoryRequest()=default
virtual const char * GetServiceRequestName() const override
GetAgentMemoryRequest & WithAgentId(AgentIdT &&value)
GetAgentMemoryRequest & WithMemoryId(MemoryIdT &&value)
GetAgentMemoryRequest & WithMemoryType(MemoryType value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String