aws_sdk_pinpoint/client/list_template_versions.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 [`ListTemplateVersions`](crate::operation::list_template_versions::builders::ListTemplateVersionsFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`next_token(impl Into<String>)`](crate::operation::list_template_versions::builders::ListTemplateVersionsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_template_versions::builders::ListTemplateVersionsFluentBuilder::set_next_token):<br>required: **false**<br><p>The string that specifies which page of results to return in a paginated response. This parameter is not supported for application, campaign, and journey metrics.</p><br>
7 /// - [`page_size(impl Into<String>)`](crate::operation::list_template_versions::builders::ListTemplateVersionsFluentBuilder::page_size) / [`set_page_size(Option<String>)`](crate::operation::list_template_versions::builders::ListTemplateVersionsFluentBuilder::set_page_size):<br>required: **false**<br><p>The maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.</p><br>
8 /// - [`template_name(impl Into<String>)`](crate::operation::list_template_versions::builders::ListTemplateVersionsFluentBuilder::template_name) / [`set_template_name(Option<String>)`](crate::operation::list_template_versions::builders::ListTemplateVersionsFluentBuilder::set_template_name):<br>required: **true**<br><p>The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.</p><br>
9 /// - [`template_type(impl Into<String>)`](crate::operation::list_template_versions::builders::ListTemplateVersionsFluentBuilder::template_type) / [`set_template_type(Option<String>)`](crate::operation::list_template_versions::builders::ListTemplateVersionsFluentBuilder::set_template_type):<br>required: **true**<br><p>The type of channel that the message template is designed for. Valid values are: EMAIL, PUSH, SMS, and VOICE.</p><br>
10 /// - On success, responds with [`ListTemplateVersionsOutput`](crate::operation::list_template_versions::ListTemplateVersionsOutput) with field(s):
11 /// - [`template_versions_response(Option<TemplateVersionsResponse>)`](crate::operation::list_template_versions::ListTemplateVersionsOutput::template_versions_response): <p>Provides information about all the versions of a specific message template.</p>
12 /// - On failure, responds with [`SdkError<ListTemplateVersionsError>`](crate::operation::list_template_versions::ListTemplateVersionsError)
13 pub fn list_template_versions(&self) -> crate::operation::list_template_versions::builders::ListTemplateVersionsFluentBuilder {
14 crate::operation::list_template_versions::builders::ListTemplateVersionsFluentBuilder::new(self.handle.clone())
15 }
16}