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
// 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 DeleteTemplateAliasInput {
/// <p>The ID of the Amazon Web Services account that contains the item to delete.</p>
pub aws_account_id: ::std::option::Option<::std::string::String>,
/// <p>The ID for the template that the specified alias is for.</p>
pub template_id: ::std::option::Option<::std::string::String>,
/// <p>The name for the template alias. To delete a specific alias, you delete the version that the alias points to. You can specify the alias name, or specify the latest version of the template by providing the keyword <code>$LATEST</code> in the <code>AliasName</code> parameter.</p>
pub alias_name: ::std::option::Option<::std::string::String>,
}
impl DeleteTemplateAliasInput {
/// <p>The ID of the Amazon Web Services account that contains the item to delete.</p>
pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
self.aws_account_id.as_deref()
}
/// <p>The ID for the template that the specified alias is for.</p>
pub fn template_id(&self) -> ::std::option::Option<&str> {
self.template_id.as_deref()
}
/// <p>The name for the template alias. To delete a specific alias, you delete the version that the alias points to. You can specify the alias name, or specify the latest version of the template by providing the keyword <code>$LATEST</code> in the <code>AliasName</code> parameter.</p>
pub fn alias_name(&self) -> ::std::option::Option<&str> {
self.alias_name.as_deref()
}
}
impl DeleteTemplateAliasInput {
/// Creates a new builder-style object to manufacture [`DeleteTemplateAliasInput`](crate::operation::delete_template_alias::DeleteTemplateAliasInput).
pub fn builder() -> crate::operation::delete_template_alias::builders::DeleteTemplateAliasInputBuilder {
crate::operation::delete_template_alias::builders::DeleteTemplateAliasInputBuilder::default()
}
}
/// A builder for [`DeleteTemplateAliasInput`](crate::operation::delete_template_alias::DeleteTemplateAliasInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteTemplateAliasInputBuilder {
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>,
}
impl DeleteTemplateAliasInputBuilder {
/// <p>The ID of the Amazon Web Services account that contains the item to delete.</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 item to delete.</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 item to delete.</p>
pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
&self.aws_account_id
}
/// <p>The ID for the template that the specified alias is for.</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 that the specified alias is for.</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 that the specified alias is for.</p>
pub fn get_template_id(&self) -> &::std::option::Option<::std::string::String> {
&self.template_id
}
/// <p>The name for the template alias. To delete a specific alias, you delete the version that the alias points to. You can specify the alias name, or specify the latest version of the template by providing the keyword <code>$LATEST</code> in the <code>AliasName</code> parameter.</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 name for the template alias. To delete a specific alias, you delete the version that the alias points to. You can specify the alias name, or specify the latest version of the template by providing the keyword <code>$LATEST</code> in the <code>AliasName</code> parameter.</p>
pub fn set_alias_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.alias_name = input;
self
}
/// <p>The name for the template alias. To delete a specific alias, you delete the version that the alias points to. You can specify the alias name, or specify the latest version of the template by providing the keyword <code>$LATEST</code> in the <code>AliasName</code> parameter.</p>
pub fn get_alias_name(&self) -> &::std::option::Option<::std::string::String> {
&self.alias_name
}
/// Consumes the builder and constructs a [`DeleteTemplateAliasInput`](crate::operation::delete_template_alias::DeleteTemplateAliasInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_template_alias::DeleteTemplateAliasInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::delete_template_alias::DeleteTemplateAliasInput {
aws_account_id: self.aws_account_id,
template_id: self.template_id,
alias_name: self.alias_name,
})
}
}