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>
20template <
typename RESULT_TYPE>
21class AmazonWebServiceResult;
28namespace BedrockAgent {
41 template <
typename RetrievalInstructionIdT = Aws::String>
43 m_retrievalInstructionIdHasBeenSet =
true;
44 m_retrievalInstructionId = std::forward<RetrievalInstructionIdT>(value);
46 template <
typename RetrievalInstructionIdT = Aws::String>
58 template <
typename RetrievalInstructionArnT = Aws::String>
60 m_retrievalInstructionArnHasBeenSet =
true;
61 m_retrievalInstructionArn = std::forward<RetrievalInstructionArnT>(value);
63 template <
typename RetrievalInstructionArnT = Aws::String>
75 template <
typename NameT = Aws::String>
77 m_nameHasBeenSet =
true;
78 m_name = std::forward<NameT>(value);
80 template <
typename NameT = Aws::String>
82 SetName(std::forward<NameT>(value));
95 m_statusHasBeenSet =
true;
114 m_lastTransitionStatusHasBeenSet =
true;
115 m_lastTransitionStatus = value;
130 template <
typename InstructionT = RetrievalInstructionContent>
132 m_instructionHasBeenSet =
true;
133 m_instruction = std::forward<InstructionT>(value);
135 template <
typename InstructionT = RetrievalInstructionContent>
148 template <
typename CreatedAtT = Aws::Utils::DateTime>
150 m_createdAtHasBeenSet =
true;
151 m_createdAt = std::forward<CreatedAtT>(value);
153 template <
typename CreatedAtT = Aws::Utils::DateTime>
166 template <
typename UpdatedAtT = Aws::Utils::DateTime>
168 m_updatedAtHasBeenSet =
true;
169 m_updatedAt = std::forward<UpdatedAtT>(value);
171 template <
typename UpdatedAtT = Aws::Utils::DateTime>
184 template <
typename DescriptionT = Aws::String>
186 m_descriptionHasBeenSet =
true;
187 m_description = std::forward<DescriptionT>(value);
189 template <
typename DescriptionT = Aws::String>
202 template <
typename CustomerEncryptionKeyArnT = Aws::String>
204 m_customerEncryptionKeyArnHasBeenSet =
true;
205 m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value);
207 template <
typename CustomerEncryptionKeyArnT = Aws::String>
223 return m_lastTransitionStatusReasons;
225 template <
typename LastTransitionStatusReasonsT = Aws::Vector<RetrievalInstructionFailureReason>>
227 m_lastTransitionStatusReasonsHasBeenSet =
true;
228 m_lastTransitionStatusReasons = std::forward<LastTransitionStatusReasonsT>(value);
230 template <
typename LastTransitionStatusReasonsT = Aws::Vector<RetrievalInstructionFailureReason>>
235 template <
typename LastTransitionStatusReasonsT = RetrievalInstructionFailureReason>
237 m_lastTransitionStatusReasonsHasBeenSet =
true;
238 m_lastTransitionStatusReasons.emplace_back(std::forward<LastTransitionStatusReasonsT>(value));
248 template <
typename VersionT = Aws::String>
250 m_versionHasBeenSet =
true;
251 m_version = std::forward<VersionT>(value);
253 template <
typename VersionT = Aws::String>
269 template <
typename LatestVersionT = Aws::String>
271 m_latestVersionHasBeenSet =
true;
272 m_latestVersion = std::forward<LatestVersionT>(value);
274 template <
typename LatestVersionT = Aws::String>
284 template <
typename RequestIdT = Aws::String>
286 m_requestIdHasBeenSet =
true;
287 m_requestId = std::forward<RequestIdT>(value);
289 template <
typename RequestIdT = Aws::String>
308 RetrievalInstructionContent m_instruction;
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;
const Aws::Vector< RetrievalInstructionFailureReason > & GetLastTransitionStatusReasons() const
const Aws::String & GetRequestId() const
GetRetrievalInstructionResult & WithRetrievalInstructionArn(RetrievalInstructionArnT &&value)
GetRetrievalInstructionResult & WithLastTransitionStatusReasons(LastTransitionStatusReasonsT &&value)
void SetDescription(DescriptionT &&value)
void SetLatestVersion(LatestVersionT &&value)
const Aws::String & GetVersion() const
GetRetrievalInstructionResult & WithCreatedAt(CreatedAtT &&value)
GetRetrievalInstructionResult & AddLastTransitionStatusReasons(LastTransitionStatusReasonsT &&value)
void SetRequestId(RequestIdT &&value)
void SetRetrievalInstructionArn(RetrievalInstructionArnT &&value)
GetRetrievalInstructionResult & WithStatus(RetrievalInstructionStatus value)
const Aws::String & GetName() const
GetRetrievalInstructionResult & WithRequestId(RequestIdT &&value)
void SetLastTransitionStatus(RetrievalInstructionLastTransitionStatus value)
const Aws::String & GetRetrievalInstructionArn() const
void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
AWS_BEDROCKAGENT_API GetRetrievalInstructionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRetrievalInstructionResult & WithName(NameT &&value)
RetrievalInstructionLastTransitionStatus GetLastTransitionStatus() const
const Aws::String & GetRetrievalInstructionId() const
const Aws::String & GetDescription() const
GetRetrievalInstructionResult & WithLatestVersion(LatestVersionT &&value)
void SetStatus(RetrievalInstructionStatus value)
void SetLastTransitionStatusReasons(LastTransitionStatusReasonsT &&value)
RetrievalInstructionStatus GetStatus() const
GetRetrievalInstructionResult & WithUpdatedAt(UpdatedAtT &&value)
GetRetrievalInstructionResult & WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
void SetInstruction(InstructionT &&value)
GetRetrievalInstructionResult & WithInstruction(InstructionT &&value)
const Aws::String & GetLatestVersion() const
GetRetrievalInstructionResult & WithLastTransitionStatus(RetrievalInstructionLastTransitionStatus value)
void SetRetrievalInstructionId(RetrievalInstructionIdT &&value)
void SetVersion(VersionT &&value)
GetRetrievalInstructionResult & WithVersion(VersionT &&value)
const RetrievalInstructionContent & GetInstruction() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetCustomerEncryptionKeyArn() const
GetRetrievalInstructionResult & WithDescription(DescriptionT &&value)
AWS_BEDROCKAGENT_API GetRetrievalInstructionResult()=default
void SetName(NameT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
GetRetrievalInstructionResult & WithRetrievalInstructionId(RetrievalInstructionIdT &&value)
AWS_BEDROCKAGENT_API GetRetrievalInstructionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
RetrievalInstructionLastTransitionStatus
RetrievalInstructionStatus
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue