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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
// 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 UpdateGroupInput {
/// <p>Don't use this parameter. Use <code>Group</code> instead.</p>
#[deprecated(note = "This field is deprecated, use Group instead.")]
pub group_name: ::std::option::Option<::std::string::String>,
/// <p>The name or the ARN of the resource group to update.</p>
pub group: ::std::option::Option<::std::string::String>,
/// <p>The new description that you want to update the resource group with. Descriptions can contain letters, numbers, hyphens, underscores, periods, and spaces.</p>
pub description: ::std::option::Option<::std::string::String>,
/// <p>The critical rank of the application group on a scale of 1 to 10, with a rank of 1 being the most critical, and a rank of 10 being least critical.</p>
pub criticality: ::std::option::Option<i32>,
/// <p>A name, email address or other identifier for the person or group who is considered as the owner of this application group within your organization.</p>
pub owner: ::std::option::Option<::std::string::String>,
/// <p>The name of the application group, which you can change at any time.</p>
pub display_name: ::std::option::Option<::std::string::String>,
}
impl UpdateGroupInput {
/// <p>Don't use this parameter. Use <code>Group</code> instead.</p>
#[deprecated(note = "This field is deprecated, use Group instead.")]
pub fn group_name(&self) -> ::std::option::Option<&str> {
self.group_name.as_deref()
}
/// <p>The name or the ARN of the resource group to update.</p>
pub fn group(&self) -> ::std::option::Option<&str> {
self.group.as_deref()
}
/// <p>The new description that you want to update the resource group with. Descriptions can contain letters, numbers, hyphens, underscores, periods, and spaces.</p>
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
/// <p>The critical rank of the application group on a scale of 1 to 10, with a rank of 1 being the most critical, and a rank of 10 being least critical.</p>
pub fn criticality(&self) -> ::std::option::Option<i32> {
self.criticality
}
/// <p>A name, email address or other identifier for the person or group who is considered as the owner of this application group within your organization.</p>
pub fn owner(&self) -> ::std::option::Option<&str> {
self.owner.as_deref()
}
/// <p>The name of the application group, which you can change at any time.</p>
pub fn display_name(&self) -> ::std::option::Option<&str> {
self.display_name.as_deref()
}
}
impl UpdateGroupInput {
/// Creates a new builder-style object to manufacture [`UpdateGroupInput`](crate::operation::update_group::UpdateGroupInput).
pub fn builder() -> crate::operation::update_group::builders::UpdateGroupInputBuilder {
crate::operation::update_group::builders::UpdateGroupInputBuilder::default()
}
}
/// A builder for [`UpdateGroupInput`](crate::operation::update_group::UpdateGroupInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateGroupInputBuilder {
pub(crate) group_name: ::std::option::Option<::std::string::String>,
pub(crate) group: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) criticality: ::std::option::Option<i32>,
pub(crate) owner: ::std::option::Option<::std::string::String>,
pub(crate) display_name: ::std::option::Option<::std::string::String>,
}
impl UpdateGroupInputBuilder {
/// <p>Don't use this parameter. Use <code>Group</code> instead.</p>
#[deprecated(note = "This field is deprecated, use Group instead.")]
pub fn group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.group_name = ::std::option::Option::Some(input.into());
self
}
/// <p>Don't use this parameter. Use <code>Group</code> instead.</p>
#[deprecated(note = "This field is deprecated, use Group instead.")]
pub fn set_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.group_name = input;
self
}
/// <p>Don't use this parameter. Use <code>Group</code> instead.</p>
#[deprecated(note = "This field is deprecated, use Group instead.")]
pub fn get_group_name(&self) -> &::std::option::Option<::std::string::String> {
&self.group_name
}
/// <p>The name or the ARN of the resource group to update.</p>
pub fn group(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.group = ::std::option::Option::Some(input.into());
self
}
/// <p>The name or the ARN of the resource group to update.</p>
pub fn set_group(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.group = input;
self
}
/// <p>The name or the ARN of the resource group to update.</p>
pub fn get_group(&self) -> &::std::option::Option<::std::string::String> {
&self.group
}
/// <p>The new description that you want to update the resource group with. Descriptions can contain letters, numbers, hyphens, underscores, periods, and spaces.</p>
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
/// <p>The new description that you want to update the resource group with. Descriptions can contain letters, numbers, hyphens, underscores, periods, and spaces.</p>
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
/// <p>The new description that you want to update the resource group with. Descriptions can contain letters, numbers, hyphens, underscores, periods, and spaces.</p>
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
/// <p>The critical rank of the application group on a scale of 1 to 10, with a rank of 1 being the most critical, and a rank of 10 being least critical.</p>
pub fn criticality(mut self, input: i32) -> Self {
self.criticality = ::std::option::Option::Some(input);
self
}
/// <p>The critical rank of the application group on a scale of 1 to 10, with a rank of 1 being the most critical, and a rank of 10 being least critical.</p>
pub fn set_criticality(mut self, input: ::std::option::Option<i32>) -> Self {
self.criticality = input;
self
}
/// <p>The critical rank of the application group on a scale of 1 to 10, with a rank of 1 being the most critical, and a rank of 10 being least critical.</p>
pub fn get_criticality(&self) -> &::std::option::Option<i32> {
&self.criticality
}
/// <p>A name, email address or other identifier for the person or group who is considered as the owner of this application group within your organization.</p>
pub fn owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.owner = ::std::option::Option::Some(input.into());
self
}
/// <p>A name, email address or other identifier for the person or group who is considered as the owner of this application group within your organization.</p>
pub fn set_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.owner = input;
self
}
/// <p>A name, email address or other identifier for the person or group who is considered as the owner of this application group within your organization.</p>
pub fn get_owner(&self) -> &::std::option::Option<::std::string::String> {
&self.owner
}
/// <p>The name of the application group, which you can change at any time.</p>
pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.display_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the application group, which you can change at any time.</p>
pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.display_name = input;
self
}
/// <p>The name of the application group, which you can change at any time.</p>
pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
&self.display_name
}
/// Consumes the builder and constructs a [`UpdateGroupInput`](crate::operation::update_group::UpdateGroupInput).
pub fn build(self) -> ::std::result::Result<crate::operation::update_group::UpdateGroupInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_group::UpdateGroupInput {
group_name: self.group_name,
group: self.group,
description: self.description,
criticality: self.criticality,
owner: self.owner,
display_name: self.display_name,
})
}
}