aws_sdk_bedrockagentruntime/client/get_agent_memory.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetAgentMemory`](crate::operation::get_agent_memory::builders::GetAgentMemoryFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::get_agent_memory::builders::GetAgentMemoryFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`next_token(impl Into<String>)`](crate::operation::get_agent_memory::builders::GetAgentMemoryFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::get_agent_memory::builders::GetAgentMemoryFluentBuilder::set_next_token):<br>required: **false**<br><p>If the total number of results is greater than the maxItems value provided in the request, enter the token returned in the <code>nextToken</code> field in the response in this field to return the next batch of results.</p><br>
8 /// - [`max_items(i32)`](crate::operation::get_agent_memory::builders::GetAgentMemoryFluentBuilder::max_items) / [`set_max_items(Option<i32>)`](crate::operation::get_agent_memory::builders::GetAgentMemoryFluentBuilder::set_max_items):<br>required: **false**<br><p>The maximum number of items to return in the response. If the total number of results is greater than this value, use the token returned in the response in the <code>nextToken</code> field when making another request to return the next batch of results.</p><br>
9 /// - [`agent_id(impl Into<String>)`](crate::operation::get_agent_memory::builders::GetAgentMemoryFluentBuilder::agent_id) / [`set_agent_id(Option<String>)`](crate::operation::get_agent_memory::builders::GetAgentMemoryFluentBuilder::set_agent_id):<br>required: **true**<br><p>The unique identifier of the agent to which the alias belongs.</p><br>
10 /// - [`agent_alias_id(impl Into<String>)`](crate::operation::get_agent_memory::builders::GetAgentMemoryFluentBuilder::agent_alias_id) / [`set_agent_alias_id(Option<String>)`](crate::operation::get_agent_memory::builders::GetAgentMemoryFluentBuilder::set_agent_alias_id):<br>required: **true**<br><p>The unique identifier of an alias of an agent.</p><br>
11 /// - [`memory_type(MemoryType)`](crate::operation::get_agent_memory::builders::GetAgentMemoryFluentBuilder::memory_type) / [`set_memory_type(Option<MemoryType>)`](crate::operation::get_agent_memory::builders::GetAgentMemoryFluentBuilder::set_memory_type):<br>required: **true**<br><p>The type of memory.</p><br>
12 /// - [`memory_id(impl Into<String>)`](crate::operation::get_agent_memory::builders::GetAgentMemoryFluentBuilder::memory_id) / [`set_memory_id(Option<String>)`](crate::operation::get_agent_memory::builders::GetAgentMemoryFluentBuilder::set_memory_id):<br>required: **true**<br><p>The unique identifier of the memory.</p><br>
13 /// - On success, responds with [`GetAgentMemoryOutput`](crate::operation::get_agent_memory::GetAgentMemoryOutput) with field(s):
14 /// - [`next_token(Option<String>)`](crate::operation::get_agent_memory::GetAgentMemoryOutput::next_token): <p>If the total number of results is greater than the maxItems value provided in the request, use this token when making another request in the <code>nextToken</code> field to return the next batch of results.</p>
15 /// - [`memory_contents(Option<Vec::<Memory>>)`](crate::operation::get_agent_memory::GetAgentMemoryOutput::memory_contents): <p>Contains details of the sessions stored in the memory</p>
16 /// - On failure, responds with [`SdkError<GetAgentMemoryError>`](crate::operation::get_agent_memory::GetAgentMemoryError)
17 pub fn get_agent_memory(&self) -> crate::operation::get_agent_memory::builders::GetAgentMemoryFluentBuilder {
18 crate::operation::get_agent_memory::builders::GetAgentMemoryFluentBuilder::new(self.handle.clone())
19 }
20}