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
// 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 CreateRouterOutputInput {
/// <p>The name of the router output.</p>
pub name: ::std::option::Option<::std::string::String>,
/// <p>The configuration settings for the router output.</p>
pub configuration: ::std::option::Option<crate::types::RouterOutputConfiguration>,
/// <p>The maximum bitrate for the router output.</p>
pub maximum_bitrate: ::std::option::Option<i64>,
/// <p>Specifies whether the router output can take inputs that are in different Regions. REGIONAL (default) - can only take inputs from same Region. GLOBAL - can take inputs from any Region.</p>
pub routing_scope: ::std::option::Option<crate::types::RoutingScope>,
/// <p>The tier level for the router output.</p>
pub tier: ::std::option::Option<crate::types::RouterOutputTier>,
/// <p>The Amazon Web Services Region for the router output. Defaults to the current region if not specified.</p>
pub region_name: ::std::option::Option<::std::string::String>,
/// <p>The Availability Zone where you want to create the router output. This must be a valid Availability Zone for the region specified by <code>regionName</code>, or the current region if no <code>regionName</code> is provided.</p>
pub availability_zone: ::std::option::Option<::std::string::String>,
/// <p>The maintenance configuration settings for the router output, including preferred maintenance windows and schedules.</p>
pub maintenance_configuration: ::std::option::Option<crate::types::MaintenanceConfiguration>,
/// <p>Key-value pairs that can be used to tag this router output.</p>
pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
/// <p>A unique identifier for the request to ensure idempotency.</p>
pub client_token: ::std::option::Option<::std::string::String>,
}
impl CreateRouterOutputInput {
/// <p>The name of the router output.</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The configuration settings for the router output.</p>
pub fn configuration(&self) -> ::std::option::Option<&crate::types::RouterOutputConfiguration> {
self.configuration.as_ref()
}
/// <p>The maximum bitrate for the router output.</p>
pub fn maximum_bitrate(&self) -> ::std::option::Option<i64> {
self.maximum_bitrate
}
/// <p>Specifies whether the router output can take inputs that are in different Regions. REGIONAL (default) - can only take inputs from same Region. GLOBAL - can take inputs from any Region.</p>
pub fn routing_scope(&self) -> ::std::option::Option<&crate::types::RoutingScope> {
self.routing_scope.as_ref()
}
/// <p>The tier level for the router output.</p>
pub fn tier(&self) -> ::std::option::Option<&crate::types::RouterOutputTier> {
self.tier.as_ref()
}
/// <p>The Amazon Web Services Region for the router output. Defaults to the current region if not specified.</p>
pub fn region_name(&self) -> ::std::option::Option<&str> {
self.region_name.as_deref()
}
/// <p>The Availability Zone where you want to create the router output. This must be a valid Availability Zone for the region specified by <code>regionName</code>, or the current region if no <code>regionName</code> is provided.</p>
pub fn availability_zone(&self) -> ::std::option::Option<&str> {
self.availability_zone.as_deref()
}
/// <p>The maintenance configuration settings for the router output, including preferred maintenance windows and schedules.</p>
pub fn maintenance_configuration(&self) -> ::std::option::Option<&crate::types::MaintenanceConfiguration> {
self.maintenance_configuration.as_ref()
}
/// <p>Key-value pairs that can be used to tag this router output.</p>
pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.tags.as_ref()
}
/// <p>A unique identifier for the request to ensure idempotency.</p>
pub fn client_token(&self) -> ::std::option::Option<&str> {
self.client_token.as_deref()
}
}
impl CreateRouterOutputInput {
/// Creates a new builder-style object to manufacture [`CreateRouterOutputInput`](crate::operation::create_router_output::CreateRouterOutputInput).
pub fn builder() -> crate::operation::create_router_output::builders::CreateRouterOutputInputBuilder {
crate::operation::create_router_output::builders::CreateRouterOutputInputBuilder::default()
}
}
/// A builder for [`CreateRouterOutputInput`](crate::operation::create_router_output::CreateRouterOutputInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateRouterOutputInputBuilder {
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) configuration: ::std::option::Option<crate::types::RouterOutputConfiguration>,
pub(crate) maximum_bitrate: ::std::option::Option<i64>,
pub(crate) routing_scope: ::std::option::Option<crate::types::RoutingScope>,
pub(crate) tier: ::std::option::Option<crate::types::RouterOutputTier>,
pub(crate) region_name: ::std::option::Option<::std::string::String>,
pub(crate) availability_zone: ::std::option::Option<::std::string::String>,
pub(crate) maintenance_configuration: ::std::option::Option<crate::types::MaintenanceConfiguration>,
pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub(crate) client_token: ::std::option::Option<::std::string::String>,
}
impl CreateRouterOutputInputBuilder {
/// <p>The name of the router output.</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 router output.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The name of the router output.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// <p>The configuration settings for the router output.</p>
/// This field is required.
pub fn configuration(mut self, input: crate::types::RouterOutputConfiguration) -> Self {
self.configuration = ::std::option::Option::Some(input);
self
}
/// <p>The configuration settings for the router output.</p>
pub fn set_configuration(mut self, input: ::std::option::Option<crate::types::RouterOutputConfiguration>) -> Self {
self.configuration = input;
self
}
/// <p>The configuration settings for the router output.</p>
pub fn get_configuration(&self) -> &::std::option::Option<crate::types::RouterOutputConfiguration> {
&self.configuration
}
/// <p>The maximum bitrate for the router output.</p>
/// This field is required.
pub fn maximum_bitrate(mut self, input: i64) -> Self {
self.maximum_bitrate = ::std::option::Option::Some(input);
self
}
/// <p>The maximum bitrate for the router output.</p>
pub fn set_maximum_bitrate(mut self, input: ::std::option::Option<i64>) -> Self {
self.maximum_bitrate = input;
self
}
/// <p>The maximum bitrate for the router output.</p>
pub fn get_maximum_bitrate(&self) -> &::std::option::Option<i64> {
&self.maximum_bitrate
}
/// <p>Specifies whether the router output can take inputs that are in different Regions. REGIONAL (default) - can only take inputs from same Region. GLOBAL - can take inputs from any Region.</p>
/// This field is required.
pub fn routing_scope(mut self, input: crate::types::RoutingScope) -> Self {
self.routing_scope = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether the router output can take inputs that are in different Regions. REGIONAL (default) - can only take inputs from same Region. GLOBAL - can take inputs from any Region.</p>
pub fn set_routing_scope(mut self, input: ::std::option::Option<crate::types::RoutingScope>) -> Self {
self.routing_scope = input;
self
}
/// <p>Specifies whether the router output can take inputs that are in different Regions. REGIONAL (default) - can only take inputs from same Region. GLOBAL - can take inputs from any Region.</p>
pub fn get_routing_scope(&self) -> &::std::option::Option<crate::types::RoutingScope> {
&self.routing_scope
}
/// <p>The tier level for the router output.</p>
/// This field is required.
pub fn tier(mut self, input: crate::types::RouterOutputTier) -> Self {
self.tier = ::std::option::Option::Some(input);
self
}
/// <p>The tier level for the router output.</p>
pub fn set_tier(mut self, input: ::std::option::Option<crate::types::RouterOutputTier>) -> Self {
self.tier = input;
self
}
/// <p>The tier level for the router output.</p>
pub fn get_tier(&self) -> &::std::option::Option<crate::types::RouterOutputTier> {
&self.tier
}
/// <p>The Amazon Web Services Region for the router output. Defaults to the current region if not specified.</p>
pub fn region_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.region_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Web Services Region for the router output. Defaults to the current region if not specified.</p>
pub fn set_region_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.region_name = input;
self
}
/// <p>The Amazon Web Services Region for the router output. Defaults to the current region if not specified.</p>
pub fn get_region_name(&self) -> &::std::option::Option<::std::string::String> {
&self.region_name
}
/// <p>The Availability Zone where you want to create the router output. This must be a valid Availability Zone for the region specified by <code>regionName</code>, or the current region if no <code>regionName</code> is provided.</p>
pub fn availability_zone(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.availability_zone = ::std::option::Option::Some(input.into());
self
}
/// <p>The Availability Zone where you want to create the router output. This must be a valid Availability Zone for the region specified by <code>regionName</code>, or the current region if no <code>regionName</code> is provided.</p>
pub fn set_availability_zone(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.availability_zone = input;
self
}
/// <p>The Availability Zone where you want to create the router output. This must be a valid Availability Zone for the region specified by <code>regionName</code>, or the current region if no <code>regionName</code> is provided.</p>
pub fn get_availability_zone(&self) -> &::std::option::Option<::std::string::String> {
&self.availability_zone
}
/// <p>The maintenance configuration settings for the router output, including preferred maintenance windows and schedules.</p>
pub fn maintenance_configuration(mut self, input: crate::types::MaintenanceConfiguration) -> Self {
self.maintenance_configuration = ::std::option::Option::Some(input);
self
}
/// <p>The maintenance configuration settings for the router output, including preferred maintenance windows and schedules.</p>
pub fn set_maintenance_configuration(mut self, input: ::std::option::Option<crate::types::MaintenanceConfiguration>) -> Self {
self.maintenance_configuration = input;
self
}
/// <p>The maintenance configuration settings for the router output, including preferred maintenance windows and schedules.</p>
pub fn get_maintenance_configuration(&self) -> &::std::option::Option<crate::types::MaintenanceConfiguration> {
&self.maintenance_configuration
}
/// Adds a key-value pair to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>Key-value pairs that can be used to tag this router output.</p>
pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = ::std::option::Option::Some(hash_map);
self
}
/// <p>Key-value pairs that can be used to tag this router output.</p>
pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.tags = input;
self
}
/// <p>Key-value pairs that can be used to tag this router output.</p>
pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.tags
}
/// <p>A unique identifier for the request to ensure idempotency.</p>
pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.client_token = ::std::option::Option::Some(input.into());
self
}
/// <p>A unique identifier for the request to ensure idempotency.</p>
pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.client_token = input;
self
}
/// <p>A unique identifier for the request to ensure idempotency.</p>
pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
&self.client_token
}
/// Consumes the builder and constructs a [`CreateRouterOutputInput`](crate::operation::create_router_output::CreateRouterOutputInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::create_router_output::CreateRouterOutputInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::create_router_output::CreateRouterOutputInput {
name: self.name,
configuration: self.configuration,
maximum_bitrate: self.maximum_bitrate,
routing_scope: self.routing_scope,
tier: self.tier,
region_name: self.region_name,
availability_zone: self.availability_zone,
maintenance_configuration: self.maintenance_configuration,
tags: self.tags,
client_token: self.client_token,
})
}
}