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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Describes an update request.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeUpdateInput {
/// <p>The name of the Amazon EKS cluster associated with the update.</p>
pub name: ::std::option::Option<::std::string::String>,
/// <p>The ID of the update to describe.</p>
pub update_id: ::std::option::Option<::std::string::String>,
/// <p>The name of the Amazon EKS node group associated with the update. This parameter is required if the update is a node group update.</p>
pub nodegroup_name: ::std::option::Option<::std::string::String>,
/// <p>The name of the add-on. The name must match one of the names returned by <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_ListAddons.html"> <code>ListAddons</code> </a>. This parameter is required if the update is an add-on update.</p>
pub addon_name: ::std::option::Option<::std::string::String>,
/// <p>The name of the capability for which you want to describe updates.</p>
pub capability_name: ::std::option::Option<::std::string::String>,
}
impl DescribeUpdateInput {
/// <p>The name of the Amazon EKS cluster associated with the update.</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The ID of the update to describe.</p>
pub fn update_id(&self) -> ::std::option::Option<&str> {
self.update_id.as_deref()
}
/// <p>The name of the Amazon EKS node group associated with the update. This parameter is required if the update is a node group update.</p>
pub fn nodegroup_name(&self) -> ::std::option::Option<&str> {
self.nodegroup_name.as_deref()
}
/// <p>The name of the add-on. The name must match one of the names returned by <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_ListAddons.html"> <code>ListAddons</code> </a>. This parameter is required if the update is an add-on update.</p>
pub fn addon_name(&self) -> ::std::option::Option<&str> {
self.addon_name.as_deref()
}
/// <p>The name of the capability for which you want to describe updates.</p>
pub fn capability_name(&self) -> ::std::option::Option<&str> {
self.capability_name.as_deref()
}
}
impl DescribeUpdateInput {
/// Creates a new builder-style object to manufacture [`DescribeUpdateInput`](crate::operation::describe_update::DescribeUpdateInput).
pub fn builder() -> crate::operation::describe_update::builders::DescribeUpdateInputBuilder {
crate::operation::describe_update::builders::DescribeUpdateInputBuilder::default()
}
}
/// A builder for [`DescribeUpdateInput`](crate::operation::describe_update::DescribeUpdateInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeUpdateInputBuilder {
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) update_id: ::std::option::Option<::std::string::String>,
pub(crate) nodegroup_name: ::std::option::Option<::std::string::String>,
pub(crate) addon_name: ::std::option::Option<::std::string::String>,
pub(crate) capability_name: ::std::option::Option<::std::string::String>,
}
impl DescribeUpdateInputBuilder {
/// <p>The name of the Amazon EKS cluster associated with the update.</p>
/// This field is required.
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the Amazon EKS cluster associated with the update.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The name of the Amazon EKS cluster associated with the update.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// <p>The ID of the update to describe.</p>
/// This field is required.
pub fn update_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.update_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the update to describe.</p>
pub fn set_update_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.update_id = input;
self
}
/// <p>The ID of the update to describe.</p>
pub fn get_update_id(&self) -> &::std::option::Option<::std::string::String> {
&self.update_id
}
/// <p>The name of the Amazon EKS node group associated with the update. This parameter is required if the update is a node group update.</p>
pub fn nodegroup_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.nodegroup_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the Amazon EKS node group associated with the update. This parameter is required if the update is a node group update.</p>
pub fn set_nodegroup_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.nodegroup_name = input;
self
}
/// <p>The name of the Amazon EKS node group associated with the update. This parameter is required if the update is a node group update.</p>
pub fn get_nodegroup_name(&self) -> &::std::option::Option<::std::string::String> {
&self.nodegroup_name
}
/// <p>The name of the add-on. The name must match one of the names returned by <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_ListAddons.html"> <code>ListAddons</code> </a>. This parameter is required if the update is an add-on update.</p>
pub fn addon_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.addon_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the add-on. The name must match one of the names returned by <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_ListAddons.html"> <code>ListAddons</code> </a>. This parameter is required if the update is an add-on update.</p>
pub fn set_addon_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.addon_name = input;
self
}
/// <p>The name of the add-on. The name must match one of the names returned by <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_ListAddons.html"> <code>ListAddons</code> </a>. This parameter is required if the update is an add-on update.</p>
pub fn get_addon_name(&self) -> &::std::option::Option<::std::string::String> {
&self.addon_name
}
/// <p>The name of the capability for which you want to describe updates.</p>
pub fn capability_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.capability_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the capability for which you want to describe updates.</p>
pub fn set_capability_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.capability_name = input;
self
}
/// <p>The name of the capability for which you want to describe updates.</p>
pub fn get_capability_name(&self) -> &::std::option::Option<::std::string::String> {
&self.capability_name
}
/// Consumes the builder and constructs a [`DescribeUpdateInput`](crate::operation::describe_update::DescribeUpdateInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_update::DescribeUpdateInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::describe_update::DescribeUpdateInput {
name: self.name,
update_id: self.update_id,
nodegroup_name: self.nodegroup_name,
addon_name: self.addon_name,
capability_name: self.capability_name,
})
}
}