aws-sdk-bedrockagentcore 1.45.0

AWS SDK for Amazon Bedrock AgentCore
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListPaymentSessions`](crate::operation::list_payment_sessions::builders::ListPaymentSessionsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_payment_sessions::builders::ListPaymentSessionsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`user_id(impl Into<String>)`](crate::operation::list_payment_sessions::builders::ListPaymentSessionsFluentBuilder::user_id) / [`set_user_id(Option<String>)`](crate::operation::list_payment_sessions::builders::ListPaymentSessionsFluentBuilder::set_user_id):<br>required: **false**<br><p>The user ID associated with the payment sessions.</p><br>
    ///   - [`agent_name(impl Into<String>)`](crate::operation::list_payment_sessions::builders::ListPaymentSessionsFluentBuilder::agent_name) / [`set_agent_name(Option<String>)`](crate::operation::list_payment_sessions::builders::ListPaymentSessionsFluentBuilder::set_agent_name):<br>required: **false**<br><p>The agent name associated with this request, used for observability.</p><br>
    ///   - [`payment_manager_arn(impl Into<String>)`](crate::operation::list_payment_sessions::builders::ListPaymentSessionsFluentBuilder::payment_manager_arn) / [`set_payment_manager_arn(Option<String>)`](crate::operation::list_payment_sessions::builders::ListPaymentSessionsFluentBuilder::set_payment_manager_arn):<br>required: **true**<br><p>The ARN of the payment manager that owns the sessions.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_payment_sessions::builders::ListPaymentSessionsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_payment_sessions::builders::ListPaymentSessionsFluentBuilder::set_next_token):<br>required: **false**<br><p>Token for pagination to retrieve the next set of results.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_payment_sessions::builders::ListPaymentSessionsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_payment_sessions::builders::ListPaymentSessionsFluentBuilder::set_max_results):<br>required: **false**<br><p>Maximum number of results to return in a single response.</p><br>
    /// - On success, responds with [`ListPaymentSessionsOutput`](crate::operation::list_payment_sessions::ListPaymentSessionsOutput) with field(s):
    ///   - [`payment_sessions(Vec::<PaymentSessionSummary>)`](crate::operation::list_payment_sessions::ListPaymentSessionsOutput::payment_sessions): <p>List of payment session summaries matching the request criteria.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_payment_sessions::ListPaymentSessionsOutput::next_token): <p>Token for pagination to retrieve the next set of results.</p>
    /// - On failure, responds with [`SdkError<ListPaymentSessionsError>`](crate::operation::list_payment_sessions::ListPaymentSessionsError)
    pub fn list_payment_sessions(&self) -> crate::operation::list_payment_sessions::builders::ListPaymentSessionsFluentBuilder {
        crate::operation::list_payment_sessions::builders::ListPaymentSessionsFluentBuilder::new(self.handle.clone())
    }
}