// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ListPentests`](crate::operation::list_pentests::builders::ListPentestsFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::list_pentests::builders::ListPentestsFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`max_results(i32)`](crate::operation::list_pentests::builders::ListPentestsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_pentests::builders::ListPentestsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return in a single call.</p><br>
/// - [`next_token(impl Into<String>)`](crate::operation::list_pentests::builders::ListPentestsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_pentests::builders::ListPentestsFluentBuilder::set_next_token):<br>required: **false**<br><p>A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request. For subsequent calls, use the nextToken value returned from the previous request.</p><br>
/// - [`agent_space_id(impl Into<String>)`](crate::operation::list_pentests::builders::ListPentestsFluentBuilder::agent_space_id) / [`set_agent_space_id(Option<String>)`](crate::operation::list_pentests::builders::ListPentestsFluentBuilder::set_agent_space_id):<br>required: **true**<br><p>The unique identifier of the agent space to list pentests for.</p><br>
/// - On success, responds with [`ListPentestsOutput`](crate::operation::list_pentests::ListPentestsOutput) with field(s):
/// - [`pentest_summaries(Option<Vec::<PentestSummary>>)`](crate::operation::list_pentests::ListPentestsOutput::pentest_summaries): <p>The list of pentest summaries.</p>
/// - [`next_token(Option<String>)`](crate::operation::list_pentests::ListPentestsOutput::next_token): <p>A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request. For subsequent calls, use the nextToken value returned from the previous request.</p>
/// - On failure, responds with [`SdkError<ListPentestsError>`](crate::operation::list_pentests::ListPentestsError)
pub fn list_pentests(&self) -> crate::operation::list_pentests::builders::ListPentestsFluentBuilder {
crate::operation::list_pentests::builders::ListPentestsFluentBuilder::new(self.handle.clone())
}
}