1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateTemplateInput {
    /// <p>The content of the email, composed of a subject line and either an HTML part or a text-only part.</p>
    pub template: ::std::option::Option<crate::types::Template>,
}
impl UpdateTemplateInput {
    /// <p>The content of the email, composed of a subject line and either an HTML part or a text-only part.</p>
    pub fn template(&self) -> ::std::option::Option<&crate::types::Template> {
        self.template.as_ref()
    }
}
impl UpdateTemplateInput {
    /// Creates a new builder-style object to manufacture [`UpdateTemplateInput`](crate::operation::update_template::UpdateTemplateInput).
    pub fn builder() -> crate::operation::update_template::builders::UpdateTemplateInputBuilder {
        crate::operation::update_template::builders::UpdateTemplateInputBuilder::default()
    }
}

/// A builder for [`UpdateTemplateInput`](crate::operation::update_template::UpdateTemplateInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct UpdateTemplateInputBuilder {
    pub(crate) template: ::std::option::Option<crate::types::Template>,
}
impl UpdateTemplateInputBuilder {
    /// <p>The content of the email, composed of a subject line and either an HTML part or a text-only part.</p>
    /// This field is required.
    pub fn template(mut self, input: crate::types::Template) -> Self {
        self.template = ::std::option::Option::Some(input);
        self
    }
    /// <p>The content of the email, composed of a subject line and either an HTML part or a text-only part.</p>
    pub fn set_template(mut self, input: ::std::option::Option<crate::types::Template>) -> Self {
        self.template = input;
        self
    }
    /// <p>The content of the email, composed of a subject line and either an HTML part or a text-only part.</p>
    pub fn get_template(&self) -> &::std::option::Option<crate::types::Template> {
        &self.template
    }
    /// Consumes the builder and constructs a [`UpdateTemplateInput`](crate::operation::update_template::UpdateTemplateInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_template::UpdateTemplateInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::update_template::UpdateTemplateInput { template: self.template })
    }
}