aws_sdk_connect/client/list_prompts.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 [`ListPrompts`](crate::operation::list_prompts::builders::ListPromptsFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_prompts::builders::ListPromptsFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`instance_id(impl Into<String>)`](crate::operation::list_prompts::builders::ListPromptsFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::list_prompts::builders::ListPromptsFluentBuilder::set_instance_id):<br>required: **true**<br><p>The identifier of the Amazon Connect instance.</p><br>
8 /// - [`next_token(impl Into<String>)`](crate::operation::list_prompts::builders::ListPromptsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_prompts::builders::ListPromptsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p><br>
9 /// - [`max_results(i32)`](crate::operation::list_prompts::builders::ListPromptsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_prompts::builders::ListPromptsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return per page. The default MaxResult size is 100.</p><br>
10 /// - On success, responds with [`ListPromptsOutput`](crate::operation::list_prompts::ListPromptsOutput) with field(s):
11 /// - [`prompt_summary_list(Option<Vec::<PromptSummary>>)`](crate::operation::list_prompts::ListPromptsOutput::prompt_summary_list): <p>Information about the prompts.</p>
12 /// - [`next_token(Option<String>)`](crate::operation::list_prompts::ListPromptsOutput::next_token): <p>If there are additional results, this is the token for the next set of results.</p>
13 /// - On failure, responds with [`SdkError<ListPromptsError>`](crate::operation::list_prompts::ListPromptsError)
14 pub fn list_prompts(&self) -> crate::operation::list_prompts::builders::ListPromptsFluentBuilder {
15 crate::operation::list_prompts::builders::ListPromptsFluentBuilder::new(self.handle.clone())
16 }
17}