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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
// 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 UpdateTemplateAliasInput {
/// <p>The ID of the Amazon Web Services account that contains the template alias that you're updating.</p>
pub aws_account_id: ::std::option::Option<::std::string::String>,
/// <p>The ID for the template.</p>
pub template_id: ::std::option::Option<::std::string::String>,
/// <p>The alias of the template that you want to update. If you name a specific alias, you update the version that the alias points to. You can specify the latest version of the template by providing the keyword <code>$LATEST</code> in the <code>AliasName</code> parameter. The keyword <code>$PUBLISHED</code> doesn't apply to templates.</p>
pub alias_name: ::std::option::Option<::std::string::String>,
/// <p>The version number of the template.</p>
pub template_version_number: ::std::option::Option<i64>,
}
impl UpdateTemplateAliasInput {
/// <p>The ID of the Amazon Web Services account that contains the template alias that you're updating.</p>
pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
self.aws_account_id.as_deref()
}
/// <p>The ID for the template.</p>
pub fn template_id(&self) -> ::std::option::Option<&str> {
self.template_id.as_deref()
}
/// <p>The alias of the template that you want to update. If you name a specific alias, you update the version that the alias points to. You can specify the latest version of the template by providing the keyword <code>$LATEST</code> in the <code>AliasName</code> parameter. The keyword <code>$PUBLISHED</code> doesn't apply to templates.</p>
pub fn alias_name(&self) -> ::std::option::Option<&str> {
self.alias_name.as_deref()
}
/// <p>The version number of the template.</p>
pub fn template_version_number(&self) -> ::std::option::Option<i64> {
self.template_version_number
}
}
impl UpdateTemplateAliasInput {
/// Creates a new builder-style object to manufacture [`UpdateTemplateAliasInput`](crate::operation::update_template_alias::UpdateTemplateAliasInput).
pub fn builder() -> crate::operation::update_template_alias::builders::UpdateTemplateAliasInputBuilder {
crate::operation::update_template_alias::builders::UpdateTemplateAliasInputBuilder::default()
}
}
/// A builder for [`UpdateTemplateAliasInput`](crate::operation::update_template_alias::UpdateTemplateAliasInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateTemplateAliasInputBuilder {
pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
pub(crate) template_id: ::std::option::Option<::std::string::String>,
pub(crate) alias_name: ::std::option::Option<::std::string::String>,
pub(crate) template_version_number: ::std::option::Option<i64>,
}
impl UpdateTemplateAliasInputBuilder {
/// <p>The ID of the Amazon Web Services account that contains the template alias that you're updating.</p>
/// This field is required.
pub fn aws_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.aws_account_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the Amazon Web Services account that contains the template alias that you're updating.</p>
pub fn set_aws_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.aws_account_id = input;
self
}
/// <p>The ID of the Amazon Web Services account that contains the template alias that you're updating.</p>
pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
&self.aws_account_id
}
/// <p>The ID for the template.</p>
/// This field is required.
pub fn template_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.template_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID for the template.</p>
pub fn set_template_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.template_id = input;
self
}
/// <p>The ID for the template.</p>
pub fn get_template_id(&self) -> &::std::option::Option<::std::string::String> {
&self.template_id
}
/// <p>The alias of the template that you want to update. If you name a specific alias, you update the version that the alias points to. You can specify the latest version of the template by providing the keyword <code>$LATEST</code> in the <code>AliasName</code> parameter. The keyword <code>$PUBLISHED</code> doesn't apply to templates.</p>
/// This field is required.
pub fn alias_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.alias_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The alias of the template that you want to update. If you name a specific alias, you update the version that the alias points to. You can specify the latest version of the template by providing the keyword <code>$LATEST</code> in the <code>AliasName</code> parameter. The keyword <code>$PUBLISHED</code> doesn't apply to templates.</p>
pub fn set_alias_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.alias_name = input;
self
}
/// <p>The alias of the template that you want to update. If you name a specific alias, you update the version that the alias points to. You can specify the latest version of the template by providing the keyword <code>$LATEST</code> in the <code>AliasName</code> parameter. The keyword <code>$PUBLISHED</code> doesn't apply to templates.</p>
pub fn get_alias_name(&self) -> &::std::option::Option<::std::string::String> {
&self.alias_name
}
/// <p>The version number of the template.</p>
/// This field is required.
pub fn template_version_number(mut self, input: i64) -> Self {
self.template_version_number = ::std::option::Option::Some(input);
self
}
/// <p>The version number of the template.</p>
pub fn set_template_version_number(mut self, input: ::std::option::Option<i64>) -> Self {
self.template_version_number = input;
self
}
/// <p>The version number of the template.</p>
pub fn get_template_version_number(&self) -> &::std::option::Option<i64> {
&self.template_version_number
}
/// Consumes the builder and constructs a [`UpdateTemplateAliasInput`](crate::operation::update_template_alias::UpdateTemplateAliasInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_template_alias::UpdateTemplateAliasInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::update_template_alias::UpdateTemplateAliasInput {
aws_account_id: self.aws_account_id,
template_id: self.template_id,
alias_name: self.alias_name,
template_version_number: self.template_version_number,
})
}
}