aws_sdk_ses/client/
get_template.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 [`GetTemplate`](crate::operation::get_template::builders::GetTemplateFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`template_name(impl Into<String>)`](crate::operation::get_template::builders::GetTemplateFluentBuilder::template_name) / [`set_template_name(Option<String>)`](crate::operation::get_template::builders::GetTemplateFluentBuilder::set_template_name):<br>required: **true**<br><p>The name of the template to retrieve.</p><br>
7    /// - On success, responds with [`GetTemplateOutput`](crate::operation::get_template::GetTemplateOutput) with field(s):
8    ///   - [`template(Option<Template>)`](crate::operation::get_template::GetTemplateOutput::template): <p>The content of the email, composed of a subject line and either an HTML part or a text-only part.</p>
9    /// - On failure, responds with [`SdkError<GetTemplateError>`](crate::operation::get_template::GetTemplateError)
10    pub fn get_template(&self) -> crate::operation::get_template::builders::GetTemplateFluentBuilder {
11        crate::operation::get_template::builders::GetTemplateFluentBuilder::new(self.handle.clone())
12    }
13}