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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// Placeholder documentation for DeleteNetworkResponse
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteNetworkOutput {
/// The ARN of this Network. It is automatically assigned when the Network is created.
pub arn: ::std::option::Option<::std::string::String>,
/// Placeholder documentation for __listOf__string
pub associated_cluster_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// The ID of the Network. Unique in the AWS account. The ID is the resource-id portion of the ARN.
pub id: ::std::option::Option<::std::string::String>,
/// An array of IpPools in your organization's network that identify a collection of IP addresses in this network that are reserved for use in MediaLive Anywhere. MediaLive Anywhere uses these IP addresses for Push inputs (in both Bridge and NAT networks) and for output destinations (only in Bridge networks). Each IpPool specifies one CIDR block.
pub ip_pools: ::std::option::Option<::std::vec::Vec<crate::types::IpPool>>,
/// The name that you specified for the Network.
pub name: ::std::option::Option<::std::string::String>,
/// An array of routes that MediaLive Anywhere needs to know about in order to route encoding traffic.
pub routes: ::std::option::Option<::std::vec::Vec<crate::types::Route>>,
/// The current state of the Network. Only MediaLive Anywhere can change the state.
pub state: ::std::option::Option<crate::types::NetworkState>,
_request_id: Option<String>,
}
impl DeleteNetworkOutput {
/// The ARN of this Network. It is automatically assigned when the Network is created.
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
/// Placeholder documentation for __listOf__string
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.associated_cluster_ids.is_none()`.
pub fn associated_cluster_ids(&self) -> &[::std::string::String] {
self.associated_cluster_ids.as_deref().unwrap_or_default()
}
/// The ID of the Network. Unique in the AWS account. The ID is the resource-id portion of the ARN.
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
/// An array of IpPools in your organization's network that identify a collection of IP addresses in this network that are reserved for use in MediaLive Anywhere. MediaLive Anywhere uses these IP addresses for Push inputs (in both Bridge and NAT networks) and for output destinations (only in Bridge networks). Each IpPool specifies one CIDR block.
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.ip_pools.is_none()`.
pub fn ip_pools(&self) -> &[crate::types::IpPool] {
self.ip_pools.as_deref().unwrap_or_default()
}
/// The name that you specified for the Network.
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// An array of routes that MediaLive Anywhere needs to know about in order to route encoding traffic.
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.routes.is_none()`.
pub fn routes(&self) -> &[crate::types::Route] {
self.routes.as_deref().unwrap_or_default()
}
/// The current state of the Network. Only MediaLive Anywhere can change the state.
pub fn state(&self) -> ::std::option::Option<&crate::types::NetworkState> {
self.state.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DeleteNetworkOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DeleteNetworkOutput {
/// Creates a new builder-style object to manufacture [`DeleteNetworkOutput`](crate::operation::delete_network::DeleteNetworkOutput).
pub fn builder() -> crate::operation::delete_network::builders::DeleteNetworkOutputBuilder {
crate::operation::delete_network::builders::DeleteNetworkOutputBuilder::default()
}
}
/// A builder for [`DeleteNetworkOutput`](crate::operation::delete_network::DeleteNetworkOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteNetworkOutputBuilder {
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) associated_cluster_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) ip_pools: ::std::option::Option<::std::vec::Vec<crate::types::IpPool>>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) routes: ::std::option::Option<::std::vec::Vec<crate::types::Route>>,
pub(crate) state: ::std::option::Option<crate::types::NetworkState>,
_request_id: Option<String>,
}
impl DeleteNetworkOutputBuilder {
/// The ARN of this Network. It is automatically assigned when the Network 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 this Network. It is automatically assigned when the Network is created.
pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.arn = input;
self
}
/// The ARN of this Network. It is automatically assigned when the Network is created.
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.arn
}
/// Appends an item to `associated_cluster_ids`.
///
/// To override the contents of this collection use [`set_associated_cluster_ids`](Self::set_associated_cluster_ids).
///
/// Placeholder documentation for __listOf__string
pub fn associated_cluster_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.associated_cluster_ids.unwrap_or_default();
v.push(input.into());
self.associated_cluster_ids = ::std::option::Option::Some(v);
self
}
/// Placeholder documentation for __listOf__string
pub fn set_associated_cluster_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.associated_cluster_ids = input;
self
}
/// Placeholder documentation for __listOf__string
pub fn get_associated_cluster_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.associated_cluster_ids
}
/// The ID of the Network. Unique in the AWS account. 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 ID of the Network. Unique in the AWS account. 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 ID of the Network. Unique in the AWS account. The ID is the resource-id portion of the ARN.
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
/// Appends an item to `ip_pools`.
///
/// To override the contents of this collection use [`set_ip_pools`](Self::set_ip_pools).
///
/// An array of IpPools in your organization's network that identify a collection of IP addresses in this network that are reserved for use in MediaLive Anywhere. MediaLive Anywhere uses these IP addresses for Push inputs (in both Bridge and NAT networks) and for output destinations (only in Bridge networks). Each IpPool specifies one CIDR block.
pub fn ip_pools(mut self, input: crate::types::IpPool) -> Self {
let mut v = self.ip_pools.unwrap_or_default();
v.push(input);
self.ip_pools = ::std::option::Option::Some(v);
self
}
/// An array of IpPools in your organization's network that identify a collection of IP addresses in this network that are reserved for use in MediaLive Anywhere. MediaLive Anywhere uses these IP addresses for Push inputs (in both Bridge and NAT networks) and for output destinations (only in Bridge networks). Each IpPool specifies one CIDR block.
pub fn set_ip_pools(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::IpPool>>) -> Self {
self.ip_pools = input;
self
}
/// An array of IpPools in your organization's network that identify a collection of IP addresses in this network that are reserved for use in MediaLive Anywhere. MediaLive Anywhere uses these IP addresses for Push inputs (in both Bridge and NAT networks) and for output destinations (only in Bridge networks). Each IpPool specifies one CIDR block.
pub fn get_ip_pools(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::IpPool>> {
&self.ip_pools
}
/// The name that you specified for the Network.
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 Network.
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 Network.
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// Appends an item to `routes`.
///
/// To override the contents of this collection use [`set_routes`](Self::set_routes).
///
/// An array of routes that MediaLive Anywhere needs to know about in order to route encoding traffic.
pub fn routes(mut self, input: crate::types::Route) -> Self {
let mut v = self.routes.unwrap_or_default();
v.push(input);
self.routes = ::std::option::Option::Some(v);
self
}
/// An array of routes that MediaLive Anywhere needs to know about in order to route encoding traffic.
pub fn set_routes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Route>>) -> Self {
self.routes = input;
self
}
/// An array of routes that MediaLive Anywhere needs to know about in order to route encoding traffic.
pub fn get_routes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Route>> {
&self.routes
}
/// The current state of the Network. Only MediaLive Anywhere can change the state.
pub fn state(mut self, input: crate::types::NetworkState) -> Self {
self.state = ::std::option::Option::Some(input);
self
}
/// The current state of the Network. Only MediaLive Anywhere can change the state.
pub fn set_state(mut self, input: ::std::option::Option<crate::types::NetworkState>) -> Self {
self.state = input;
self
}
/// The current state of the Network. Only MediaLive Anywhere can change the state.
pub fn get_state(&self) -> &::std::option::Option<crate::types::NetworkState> {
&self.state
}
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 [`DeleteNetworkOutput`](crate::operation::delete_network::DeleteNetworkOutput).
pub fn build(self) -> crate::operation::delete_network::DeleteNetworkOutput {
crate::operation::delete_network::DeleteNetworkOutput {
arn: self.arn,
associated_cluster_ids: self.associated_cluster_ids,
id: self.id,
ip_pools: self.ip_pools,
name: self.name,
routes: self.routes,
state: self.state,
_request_id: self._request_id,
}
}
}