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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// Placeholder documentation for DescribeNodeResponse
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeNodeOutput {
/// The ARN of the Node. It is automatically assigned when the Node is created.
pub arn: ::std::option::Option<::std::string::String>,
/// An array of IDs. Each ID is one ChannelPlacementGroup that is associated with this Node. Empty if the Node is not yet associated with any groups.
pub channel_placement_groups: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// The ID of the Cluster that the Node belongs to.
pub cluster_id: ::std::option::Option<::std::string::String>,
/// The current connection state of the Node.
pub connection_state: ::std::option::Option<crate::types::NodeConnectionState>,
/// The unique ID of the Node. Unique in the Cluster. The ID is the resource-id portion of the ARN.
pub id: ::std::option::Option<::std::string::String>,
/// The ARN of the EC2 instance hosting the Node.
pub instance_arn: ::std::option::Option<::std::string::String>,
/// The name that you specified for the Node.
pub name: ::std::option::Option<::std::string::String>,
/// Documentation update needed
pub node_interface_mappings: ::std::option::Option<::std::vec::Vec<crate::types::NodeInterfaceMapping>>,
/// The initial role current role of the Node in the Cluster. ACTIVE means the Node is available for encoding. BACKUP means the Node is a redundant Node and might get used if an ACTIVE Node fails.
pub role: ::std::option::Option<crate::types::NodeRole>,
/// The current state of the Node.
pub state: ::std::option::Option<crate::types::NodeState>,
/// An array of SDI source mappings. Each mapping connects one logical SdiSource to the physical SDI card and port that the physical SDI source uses.
pub sdi_source_mappings: ::std::option::Option<::std::vec::Vec<crate::types::SdiSourceMapping>>,
_request_id: Option<String>,
}
impl DescribeNodeOutput {
/// The ARN of the Node. It is automatically assigned when the Node is created.
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
/// An array of IDs. Each ID is one ChannelPlacementGroup that is associated with this Node. Empty if the Node is not yet associated with any groups.
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.channel_placement_groups.is_none()`.
pub fn channel_placement_groups(&self) -> &[::std::string::String] {
self.channel_placement_groups.as_deref().unwrap_or_default()
}
/// The ID of the Cluster that the Node belongs to.
pub fn cluster_id(&self) -> ::std::option::Option<&str> {
self.cluster_id.as_deref()
}
/// The current connection state of the Node.
pub fn connection_state(&self) -> ::std::option::Option<&crate::types::NodeConnectionState> {
self.connection_state.as_ref()
}
/// The unique ID of the Node. Unique in the Cluster. The ID is the resource-id portion of the ARN.
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
/// The ARN of the EC2 instance hosting the Node.
pub fn instance_arn(&self) -> ::std::option::Option<&str> {
self.instance_arn.as_deref()
}
/// The name that you specified for the Node.
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// Documentation update needed
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.node_interface_mappings.is_none()`.
pub fn node_interface_mappings(&self) -> &[crate::types::NodeInterfaceMapping] {
self.node_interface_mappings.as_deref().unwrap_or_default()
}
/// The initial role current role of the Node in the Cluster. ACTIVE means the Node is available for encoding. BACKUP means the Node is a redundant Node and might get used if an ACTIVE Node fails.
pub fn role(&self) -> ::std::option::Option<&crate::types::NodeRole> {
self.role.as_ref()
}
/// The current state of the Node.
pub fn state(&self) -> ::std::option::Option<&crate::types::NodeState> {
self.state.as_ref()
}
/// An array of SDI source mappings. Each mapping connects one logical SdiSource to the physical SDI card and port that the physical SDI source uses.
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.sdi_source_mappings.is_none()`.
pub fn sdi_source_mappings(&self) -> &[crate::types::SdiSourceMapping] {
self.sdi_source_mappings.as_deref().unwrap_or_default()
}
}
impl ::aws_types::request_id::RequestId for DescribeNodeOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeNodeOutput {
/// Creates a new builder-style object to manufacture [`DescribeNodeOutput`](crate::operation::describe_node::DescribeNodeOutput).
pub fn builder() -> crate::operation::describe_node::builders::DescribeNodeOutputBuilder {
crate::operation::describe_node::builders::DescribeNodeOutputBuilder::default()
}
}
/// A builder for [`DescribeNodeOutput`](crate::operation::describe_node::DescribeNodeOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeNodeOutputBuilder {
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) channel_placement_groups: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) cluster_id: ::std::option::Option<::std::string::String>,
pub(crate) connection_state: ::std::option::Option<crate::types::NodeConnectionState>,
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) instance_arn: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) node_interface_mappings: ::std::option::Option<::std::vec::Vec<crate::types::NodeInterfaceMapping>>,
pub(crate) role: ::std::option::Option<crate::types::NodeRole>,
pub(crate) state: ::std::option::Option<crate::types::NodeState>,
pub(crate) sdi_source_mappings: ::std::option::Option<::std::vec::Vec<crate::types::SdiSourceMapping>>,
_request_id: Option<String>,
}
impl DescribeNodeOutputBuilder {
/// The ARN of the Node. It is automatically assigned when the Node is created.
pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.arn = ::std::option::Option::Some(input.into());
self
}
/// The ARN of the Node. It is automatically assigned when the Node is created.
pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.arn = input;
self
}
/// The ARN of the Node. It is automatically assigned when the Node is created.
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.arn
}
/// Appends an item to `channel_placement_groups`.
///
/// To override the contents of this collection use [`set_channel_placement_groups`](Self::set_channel_placement_groups).
///
/// An array of IDs. Each ID is one ChannelPlacementGroup that is associated with this Node. Empty if the Node is not yet associated with any groups.
pub fn channel_placement_groups(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.channel_placement_groups.unwrap_or_default();
v.push(input.into());
self.channel_placement_groups = ::std::option::Option::Some(v);
self
}
/// An array of IDs. Each ID is one ChannelPlacementGroup that is associated with this Node. Empty if the Node is not yet associated with any groups.
pub fn set_channel_placement_groups(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.channel_placement_groups = input;
self
}
/// An array of IDs. Each ID is one ChannelPlacementGroup that is associated with this Node. Empty if the Node is not yet associated with any groups.
pub fn get_channel_placement_groups(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.channel_placement_groups
}
/// The ID of the Cluster that the Node belongs to.
pub fn cluster_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cluster_id = ::std::option::Option::Some(input.into());
self
}
/// The ID of the Cluster that the Node belongs to.
pub fn set_cluster_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cluster_id = input;
self
}
/// The ID of the Cluster that the Node belongs to.
pub fn get_cluster_id(&self) -> &::std::option::Option<::std::string::String> {
&self.cluster_id
}
/// The current connection state of the Node.
pub fn connection_state(mut self, input: crate::types::NodeConnectionState) -> Self {
self.connection_state = ::std::option::Option::Some(input);
self
}
/// The current connection state of the Node.
pub fn set_connection_state(mut self, input: ::std::option::Option<crate::types::NodeConnectionState>) -> Self {
self.connection_state = input;
self
}
/// The current connection state of the Node.
pub fn get_connection_state(&self) -> &::std::option::Option<crate::types::NodeConnectionState> {
&self.connection_state
}
/// The unique ID of the Node. Unique in the Cluster. The ID is the resource-id portion of the ARN.
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
/// The unique ID of the Node. Unique in the Cluster. The ID is the resource-id portion of the ARN.
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
/// The unique ID of the Node. Unique in the Cluster. The ID is the resource-id portion of the ARN.
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
/// The ARN of the EC2 instance hosting the Node.
pub fn instance_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.instance_arn = ::std::option::Option::Some(input.into());
self
}
/// The ARN of the EC2 instance hosting the Node.
pub fn set_instance_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.instance_arn = input;
self
}
/// The ARN of the EC2 instance hosting the Node.
pub fn get_instance_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.instance_arn
}
/// The name that you specified for the Node.
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
/// The name that you specified for the Node.
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// The name that you specified for the Node.
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// Appends an item to `node_interface_mappings`.
///
/// To override the contents of this collection use [`set_node_interface_mappings`](Self::set_node_interface_mappings).
///
/// Documentation update needed
pub fn node_interface_mappings(mut self, input: crate::types::NodeInterfaceMapping) -> Self {
let mut v = self.node_interface_mappings.unwrap_or_default();
v.push(input);
self.node_interface_mappings = ::std::option::Option::Some(v);
self
}
/// Documentation update needed
pub fn set_node_interface_mappings(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::NodeInterfaceMapping>>) -> Self {
self.node_interface_mappings = input;
self
}
/// Documentation update needed
pub fn get_node_interface_mappings(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::NodeInterfaceMapping>> {
&self.node_interface_mappings
}
/// The initial role current role of the Node in the Cluster. ACTIVE means the Node is available for encoding. BACKUP means the Node is a redundant Node and might get used if an ACTIVE Node fails.
pub fn role(mut self, input: crate::types::NodeRole) -> Self {
self.role = ::std::option::Option::Some(input);
self
}
/// The initial role current role of the Node in the Cluster. ACTIVE means the Node is available for encoding. BACKUP means the Node is a redundant Node and might get used if an ACTIVE Node fails.
pub fn set_role(mut self, input: ::std::option::Option<crate::types::NodeRole>) -> Self {
self.role = input;
self
}
/// The initial role current role of the Node in the Cluster. ACTIVE means the Node is available for encoding. BACKUP means the Node is a redundant Node and might get used if an ACTIVE Node fails.
pub fn get_role(&self) -> &::std::option::Option<crate::types::NodeRole> {
&self.role
}
/// The current state of the Node.
pub fn state(mut self, input: crate::types::NodeState) -> Self {
self.state = ::std::option::Option::Some(input);
self
}
/// The current state of the Node.
pub fn set_state(mut self, input: ::std::option::Option<crate::types::NodeState>) -> Self {
self.state = input;
self
}
/// The current state of the Node.
pub fn get_state(&self) -> &::std::option::Option<crate::types::NodeState> {
&self.state
}
/// Appends an item to `sdi_source_mappings`.
///
/// To override the contents of this collection use [`set_sdi_source_mappings`](Self::set_sdi_source_mappings).
///
/// An array of SDI source mappings. Each mapping connects one logical SdiSource to the physical SDI card and port that the physical SDI source uses.
pub fn sdi_source_mappings(mut self, input: crate::types::SdiSourceMapping) -> Self {
let mut v = self.sdi_source_mappings.unwrap_or_default();
v.push(input);
self.sdi_source_mappings = ::std::option::Option::Some(v);
self
}
/// An array of SDI source mappings. Each mapping connects one logical SdiSource to the physical SDI card and port that the physical SDI source uses.
pub fn set_sdi_source_mappings(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::SdiSourceMapping>>) -> Self {
self.sdi_source_mappings = input;
self
}
/// An array of SDI source mappings. Each mapping connects one logical SdiSource to the physical SDI card and port that the physical SDI source uses.
pub fn get_sdi_source_mappings(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::SdiSourceMapping>> {
&self.sdi_source_mappings
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
/// Consumes the builder and constructs a [`DescribeNodeOutput`](crate::operation::describe_node::DescribeNodeOutput).
pub fn build(self) -> crate::operation::describe_node::DescribeNodeOutput {
crate::operation::describe_node::DescribeNodeOutput {
arn: self.arn,
channel_placement_groups: self.channel_placement_groups,
cluster_id: self.cluster_id,
connection_state: self.connection_state,
id: self.id,
instance_arn: self.instance_arn,
name: self.name,
node_interface_mappings: self.node_interface_mappings,
role: self.role,
state: self.state,
sdi_source_mappings: self.sdi_source_mappings,
_request_id: self._request_id,
}
}
}