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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// 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 GetGeneratedTemplateInput {
    /// <p>The language to use to retrieve for the generated template. Supported values are:</p>
    /// <ul>
    /// <li>
    /// <p><code>JSON</code></p></li>
    /// <li>
    /// <p><code>YAML</code></p></li>
    /// </ul>
    pub format: ::std::option::Option<crate::types::TemplateFormat>,
    /// <p>The name or Amazon Resource Name (ARN) of the generated template. The format is <code>arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}</code>. For example, <code>arn:aws:cloudformation:<i>us-east-1</i>:<i>123456789012</i>:generatedtemplate/<i>2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc</i> </code>.</p>
    pub generated_template_name: ::std::option::Option<::std::string::String>,
}
impl GetGeneratedTemplateInput {
    /// <p>The language to use to retrieve for the generated template. Supported values are:</p>
    /// <ul>
    /// <li>
    /// <p><code>JSON</code></p></li>
    /// <li>
    /// <p><code>YAML</code></p></li>
    /// </ul>
    pub fn format(&self) -> ::std::option::Option<&crate::types::TemplateFormat> {
        self.format.as_ref()
    }
    /// <p>The name or Amazon Resource Name (ARN) of the generated template. The format is <code>arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}</code>. For example, <code>arn:aws:cloudformation:<i>us-east-1</i>:<i>123456789012</i>:generatedtemplate/<i>2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc</i> </code>.</p>
    pub fn generated_template_name(&self) -> ::std::option::Option<&str> {
        self.generated_template_name.as_deref()
    }
}
impl GetGeneratedTemplateInput {
    /// Creates a new builder-style object to manufacture [`GetGeneratedTemplateInput`](crate::operation::get_generated_template::GetGeneratedTemplateInput).
    pub fn builder() -> crate::operation::get_generated_template::builders::GetGeneratedTemplateInputBuilder {
        crate::operation::get_generated_template::builders::GetGeneratedTemplateInputBuilder::default()
    }
}

/// A builder for [`GetGeneratedTemplateInput`](crate::operation::get_generated_template::GetGeneratedTemplateInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetGeneratedTemplateInputBuilder {
    pub(crate) format: ::std::option::Option<crate::types::TemplateFormat>,
    pub(crate) generated_template_name: ::std::option::Option<::std::string::String>,
}
impl GetGeneratedTemplateInputBuilder {
    /// <p>The language to use to retrieve for the generated template. Supported values are:</p>
    /// <ul>
    /// <li>
    /// <p><code>JSON</code></p></li>
    /// <li>
    /// <p><code>YAML</code></p></li>
    /// </ul>
    pub fn format(mut self, input: crate::types::TemplateFormat) -> Self {
        self.format = ::std::option::Option::Some(input);
        self
    }
    /// <p>The language to use to retrieve for the generated template. Supported values are:</p>
    /// <ul>
    /// <li>
    /// <p><code>JSON</code></p></li>
    /// <li>
    /// <p><code>YAML</code></p></li>
    /// </ul>
    pub fn set_format(mut self, input: ::std::option::Option<crate::types::TemplateFormat>) -> Self {
        self.format = input;
        self
    }
    /// <p>The language to use to retrieve for the generated template. Supported values are:</p>
    /// <ul>
    /// <li>
    /// <p><code>JSON</code></p></li>
    /// <li>
    /// <p><code>YAML</code></p></li>
    /// </ul>
    pub fn get_format(&self) -> &::std::option::Option<crate::types::TemplateFormat> {
        &self.format
    }
    /// <p>The name or Amazon Resource Name (ARN) of the generated template. The format is <code>arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}</code>. For example, <code>arn:aws:cloudformation:<i>us-east-1</i>:<i>123456789012</i>:generatedtemplate/<i>2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc</i> </code>.</p>
    /// This field is required.
    pub fn generated_template_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.generated_template_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name or Amazon Resource Name (ARN) of the generated template. The format is <code>arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}</code>. For example, <code>arn:aws:cloudformation:<i>us-east-1</i>:<i>123456789012</i>:generatedtemplate/<i>2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc</i> </code>.</p>
    pub fn set_generated_template_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.generated_template_name = input;
        self
    }
    /// <p>The name or Amazon Resource Name (ARN) of the generated template. The format is <code>arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}</code>. For example, <code>arn:aws:cloudformation:<i>us-east-1</i>:<i>123456789012</i>:generatedtemplate/<i>2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc</i> </code>.</p>
    pub fn get_generated_template_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.generated_template_name
    }
    /// Consumes the builder and constructs a [`GetGeneratedTemplateInput`](crate::operation::get_generated_template::GetGeneratedTemplateInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_generated_template::GetGeneratedTemplateInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::get_generated_template::GetGeneratedTemplateInput {
            format: self.format,
            generated_template_name: self.generated_template_name,
        })
    }
}