AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
GetRetrievalInstructionResult.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/RetrievalInstructionContent.h>
9#include <aws/bedrock-agent/model/RetrievalInstructionFailureReason.h>
10#include <aws/bedrock-agent/model/RetrievalInstructionLastTransitionStatus.h>
11#include <aws/bedrock-agent/model/RetrievalInstructionStatus.h>
12#include <aws/core/http/HttpResponse.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace BedrockAgent {
29namespace Model {
31 public:
32 AWS_BEDROCKAGENT_API GetRetrievalInstructionResult() = default;
35
37
40 inline const Aws::String& GetRetrievalInstructionId() const { return m_retrievalInstructionId; }
41 template <typename RetrievalInstructionIdT = Aws::String>
42 void SetRetrievalInstructionId(RetrievalInstructionIdT&& value) {
43 m_retrievalInstructionIdHasBeenSet = true;
44 m_retrievalInstructionId = std::forward<RetrievalInstructionIdT>(value);
45 }
46 template <typename RetrievalInstructionIdT = Aws::String>
48 SetRetrievalInstructionId(std::forward<RetrievalInstructionIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetRetrievalInstructionArn() const { return m_retrievalInstructionArn; }
58 template <typename RetrievalInstructionArnT = Aws::String>
59 void SetRetrievalInstructionArn(RetrievalInstructionArnT&& value) {
60 m_retrievalInstructionArnHasBeenSet = true;
61 m_retrievalInstructionArn = std::forward<RetrievalInstructionArnT>(value);
62 }
63 template <typename RetrievalInstructionArnT = Aws::String>
65 SetRetrievalInstructionArn(std::forward<RetrievalInstructionArnT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetName() const { return m_name; }
75 template <typename NameT = Aws::String>
76 void SetName(NameT&& value) {
77 m_nameHasBeenSet = true;
78 m_name = std::forward<NameT>(value);
79 }
80 template <typename NameT = Aws::String>
82 SetName(std::forward<NameT>(value));
83 return *this;
84 }
86
88
93 inline RetrievalInstructionStatus GetStatus() const { return m_status; }
95 m_statusHasBeenSet = true;
96 m_status = value;
97 }
99 SetStatus(value);
100 return *this;
101 }
103
105
112 inline RetrievalInstructionLastTransitionStatus GetLastTransitionStatus() const { return m_lastTransitionStatus; }
114 m_lastTransitionStatusHasBeenSet = true;
115 m_lastTransitionStatus = value;
116 }
122
124
129 inline const RetrievalInstructionContent& GetInstruction() const { return m_instruction; }
130 template <typename InstructionT = RetrievalInstructionContent>
131 void SetInstruction(InstructionT&& value) {
132 m_instructionHasBeenSet = true;
133 m_instruction = std::forward<InstructionT>(value);
134 }
135 template <typename InstructionT = RetrievalInstructionContent>
137 SetInstruction(std::forward<InstructionT>(value));
138 return *this;
139 }
141
143
147 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
148 template <typename CreatedAtT = Aws::Utils::DateTime>
149 void SetCreatedAt(CreatedAtT&& value) {
150 m_createdAtHasBeenSet = true;
151 m_createdAt = std::forward<CreatedAtT>(value);
152 }
153 template <typename CreatedAtT = Aws::Utils::DateTime>
155 SetCreatedAt(std::forward<CreatedAtT>(value));
156 return *this;
157 }
159
161
165 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
166 template <typename UpdatedAtT = Aws::Utils::DateTime>
167 void SetUpdatedAt(UpdatedAtT&& value) {
168 m_updatedAtHasBeenSet = true;
169 m_updatedAt = std::forward<UpdatedAtT>(value);
170 }
171 template <typename UpdatedAtT = Aws::Utils::DateTime>
173 SetUpdatedAt(std::forward<UpdatedAtT>(value));
174 return *this;
175 }
177
179
183 inline const Aws::String& GetDescription() const { return m_description; }
184 template <typename DescriptionT = Aws::String>
185 void SetDescription(DescriptionT&& value) {
186 m_descriptionHasBeenSet = true;
187 m_description = std::forward<DescriptionT>(value);
188 }
189 template <typename DescriptionT = Aws::String>
191 SetDescription(std::forward<DescriptionT>(value));
192 return *this;
193 }
195
197
201 inline const Aws::String& GetCustomerEncryptionKeyArn() const { return m_customerEncryptionKeyArn; }
202 template <typename CustomerEncryptionKeyArnT = Aws::String>
203 void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) {
204 m_customerEncryptionKeyArnHasBeenSet = true;
205 m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value);
206 }
207 template <typename CustomerEncryptionKeyArnT = Aws::String>
209 SetCustomerEncryptionKeyArn(std::forward<CustomerEncryptionKeyArnT>(value));
210 return *this;
211 }
213
215
223 return m_lastTransitionStatusReasons;
224 }
225 template <typename LastTransitionStatusReasonsT = Aws::Vector<RetrievalInstructionFailureReason>>
226 void SetLastTransitionStatusReasons(LastTransitionStatusReasonsT&& value) {
227 m_lastTransitionStatusReasonsHasBeenSet = true;
228 m_lastTransitionStatusReasons = std::forward<LastTransitionStatusReasonsT>(value);
229 }
230 template <typename LastTransitionStatusReasonsT = Aws::Vector<RetrievalInstructionFailureReason>>
231 GetRetrievalInstructionResult& WithLastTransitionStatusReasons(LastTransitionStatusReasonsT&& value) {
232 SetLastTransitionStatusReasons(std::forward<LastTransitionStatusReasonsT>(value));
233 return *this;
234 }
235 template <typename LastTransitionStatusReasonsT = RetrievalInstructionFailureReason>
236 GetRetrievalInstructionResult& AddLastTransitionStatusReasons(LastTransitionStatusReasonsT&& value) {
237 m_lastTransitionStatusReasonsHasBeenSet = true;
238 m_lastTransitionStatusReasons.emplace_back(std::forward<LastTransitionStatusReasonsT>(value));
239 return *this;
240 }
242
244
247 inline const Aws::String& GetVersion() const { return m_version; }
248 template <typename VersionT = Aws::String>
249 void SetVersion(VersionT&& value) {
250 m_versionHasBeenSet = true;
251 m_version = std::forward<VersionT>(value);
252 }
253 template <typename VersionT = Aws::String>
255 SetVersion(std::forward<VersionT>(value));
256 return *this;
257 }
259
261
268 inline const Aws::String& GetLatestVersion() const { return m_latestVersion; }
269 template <typename LatestVersionT = Aws::String>
270 void SetLatestVersion(LatestVersionT&& value) {
271 m_latestVersionHasBeenSet = true;
272 m_latestVersion = std::forward<LatestVersionT>(value);
273 }
274 template <typename LatestVersionT = Aws::String>
276 SetLatestVersion(std::forward<LatestVersionT>(value));
277 return *this;
278 }
280
282
283 inline const Aws::String& GetRequestId() const { return m_requestId; }
284 template <typename RequestIdT = Aws::String>
285 void SetRequestId(RequestIdT&& value) {
286 m_requestIdHasBeenSet = true;
287 m_requestId = std::forward<RequestIdT>(value);
288 }
289 template <typename RequestIdT = Aws::String>
291 SetRequestId(std::forward<RequestIdT>(value));
292 return *this;
293 }
295 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
296
297 private:
298 Aws::String m_retrievalInstructionId;
299
300 Aws::String m_retrievalInstructionArn;
301
302 Aws::String m_name;
303
305
307
308 RetrievalInstructionContent m_instruction;
309
310 Aws::Utils::DateTime m_createdAt{};
311
312 Aws::Utils::DateTime m_updatedAt{};
313
314 Aws::String m_description;
315
316 Aws::String m_customerEncryptionKeyArn;
317
318 Aws::Vector<RetrievalInstructionFailureReason> m_lastTransitionStatusReasons;
319
320 Aws::String m_version;
321
322 Aws::String m_latestVersion;
323
324 Aws::String m_requestId;
325 Aws::Http::HttpResponseCode m_HttpResponseCode;
326 bool m_retrievalInstructionIdHasBeenSet = false;
327 bool m_retrievalInstructionArnHasBeenSet = false;
328 bool m_nameHasBeenSet = false;
329 bool m_statusHasBeenSet = false;
330 bool m_lastTransitionStatusHasBeenSet = false;
331 bool m_instructionHasBeenSet = false;
332 bool m_createdAtHasBeenSet = false;
333 bool m_updatedAtHasBeenSet = false;
334 bool m_descriptionHasBeenSet = false;
335 bool m_customerEncryptionKeyArnHasBeenSet = false;
336 bool m_lastTransitionStatusReasonsHasBeenSet = false;
337 bool m_versionHasBeenSet = false;
338 bool m_latestVersionHasBeenSet = false;
339 bool m_requestIdHasBeenSet = false;
340};
341
342} // namespace Model
343} // namespace BedrockAgent
344} // namespace Aws
const Aws::Vector< RetrievalInstructionFailureReason > & GetLastTransitionStatusReasons() const
GetRetrievalInstructionResult & WithRetrievalInstructionArn(RetrievalInstructionArnT &&value)
GetRetrievalInstructionResult & WithLastTransitionStatusReasons(LastTransitionStatusReasonsT &&value)
GetRetrievalInstructionResult & WithCreatedAt(CreatedAtT &&value)
GetRetrievalInstructionResult & AddLastTransitionStatusReasons(LastTransitionStatusReasonsT &&value)
GetRetrievalInstructionResult & WithStatus(RetrievalInstructionStatus value)
GetRetrievalInstructionResult & WithRequestId(RequestIdT &&value)
void SetLastTransitionStatus(RetrievalInstructionLastTransitionStatus value)
AWS_BEDROCKAGENT_API GetRetrievalInstructionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRetrievalInstructionResult & WithName(NameT &&value)
RetrievalInstructionLastTransitionStatus GetLastTransitionStatus() const
GetRetrievalInstructionResult & WithLatestVersion(LatestVersionT &&value)
void SetLastTransitionStatusReasons(LastTransitionStatusReasonsT &&value)
GetRetrievalInstructionResult & WithUpdatedAt(UpdatedAtT &&value)
GetRetrievalInstructionResult & WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
GetRetrievalInstructionResult & WithInstruction(InstructionT &&value)
GetRetrievalInstructionResult & WithLastTransitionStatus(RetrievalInstructionLastTransitionStatus value)
GetRetrievalInstructionResult & WithVersion(VersionT &&value)
GetRetrievalInstructionResult & WithDescription(DescriptionT &&value)
AWS_BEDROCKAGENT_API GetRetrievalInstructionResult()=default
GetRetrievalInstructionResult & WithRetrievalInstructionId(RetrievalInstructionIdT &&value)
AWS_BEDROCKAGENT_API GetRetrievalInstructionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue