aws_sdk_sesv2/client/
get_email_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 [`GetEmailTemplate`](crate::operation::get_email_template::builders::GetEmailTemplateFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`template_name(impl Into<String>)`](crate::operation::get_email_template::builders::GetEmailTemplateFluentBuilder::template_name) / [`set_template_name(Option<String>)`](crate::operation::get_email_template::builders::GetEmailTemplateFluentBuilder::set_template_name):<br>required: **true**<br><p>The name of the template.</p><br>
7    /// - On success, responds with [`GetEmailTemplateOutput`](crate::operation::get_email_template::GetEmailTemplateOutput) with field(s):
8    ///   - [`template_name(String)`](crate::operation::get_email_template::GetEmailTemplateOutput::template_name): <p>The name of the template.</p>
9    ///   - [`template_content(Option<EmailTemplateContent>)`](crate::operation::get_email_template::GetEmailTemplateOutput::template_content): <p>The content of the email template, composed of a subject line, an HTML part, and a text-only part.</p>
10    /// - On failure, responds with [`SdkError<GetEmailTemplateError>`](crate::operation::get_email_template::GetEmailTemplateError)
11    pub fn get_email_template(&self) -> crate::operation::get_email_template::builders::GetEmailTemplateFluentBuilder {
12        crate::operation::get_email_template::builders::GetEmailTemplateFluentBuilder::new(self.handle.clone())
13    }
14}