aws_sdk_elastictranscoder/client/
list_presets.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 [`ListPresets`](crate::operation::list_presets::builders::ListPresetsFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_presets::builders::ListPresetsFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`ascending(impl Into<String>)`](crate::operation::list_presets::builders::ListPresetsFluentBuilder::ascending) / [`set_ascending(Option<String>)`](crate::operation::list_presets::builders::ListPresetsFluentBuilder::set_ascending):<br>required: **false**<br><p>To list presets in chronological order by the date and time that they were created, enter <code>true</code>. To list presets in reverse chronological order, enter <code>false</code>.</p><br>
8    ///   - [`page_token(impl Into<String>)`](crate::operation::list_presets::builders::ListPresetsFluentBuilder::page_token) / [`set_page_token(Option<String>)`](crate::operation::list_presets::builders::ListPresetsFluentBuilder::set_page_token):<br>required: **false**<br><p>When Elastic Transcoder returns more than one page of results, use <code>pageToken</code> in subsequent <code>GET</code> requests to get each successive page of results.</p><br>
9    /// - On success, responds with [`ListPresetsOutput`](crate::operation::list_presets::ListPresetsOutput) with field(s):
10    ///   - [`presets(Option<Vec::<Preset>>)`](crate::operation::list_presets::ListPresetsOutput::presets): <p>An array of <code>Preset</code> objects.</p>
11    ///   - [`next_page_token(Option<String>)`](crate::operation::list_presets::ListPresetsOutput::next_page_token): <p>A value that you use to access the second and subsequent pages of results, if any. When the presets fit on one page or when you've reached the last page of results, the value of <code>NextPageToken</code> is <code>null</code>.</p>
12    /// - On failure, responds with [`SdkError<ListPresetsError>`](crate::operation::list_presets::ListPresetsError)
13    pub fn list_presets(&self) -> crate::operation::list_presets::builders::ListPresetsFluentBuilder {
14        crate::operation::list_presets::builders::ListPresetsFluentBuilder::new(self.handle.clone())
15    }
16}