aws-sdk-ec2 1.223.0

AWS SDK for Amazon Elastic Compute Cloud
Documentation
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
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Describes a route in a route table.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Route {
    /// <p>The IPv4 CIDR block used for the destination match.</p>
    pub destination_cidr_block: ::std::option::Option<::std::string::String>,
    /// <p>The IPv6 CIDR block used for the destination match.</p>
    pub destination_ipv6_cidr_block: ::std::option::Option<::std::string::String>,
    /// <p>The prefix of the Amazon Web Services service.</p>
    pub destination_prefix_list_id: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the egress-only internet gateway.</p>
    pub egress_only_internet_gateway_id: ::std::option::Option<::std::string::String>,
    /// <p>The ID of a gateway attached to your VPC.</p>
    pub gateway_id: ::std::option::Option<::std::string::String>,
    /// <p>The ID of a NAT instance in your VPC.</p>
    pub instance_id: ::std::option::Option<::std::string::String>,
    /// <p>The ID of Amazon Web Services account that owns the instance.</p>
    pub instance_owner_id: ::std::option::Option<::std::string::String>,
    /// <p>The ID of a NAT gateway.</p>
    pub nat_gateway_id: ::std::option::Option<::std::string::String>,
    /// <p>The ID of a transit gateway.</p>
    pub transit_gateway_id: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the local gateway.</p>
    pub local_gateway_id: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the carrier gateway.</p>
    pub carrier_gateway_id: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the network interface.</p>
    pub network_interface_id: ::std::option::Option<::std::string::String>,
    /// <p>Describes how the route was created.</p>
    /// <ul>
    /// <li>
    /// <p><code>CreateRouteTable</code> - The route was automatically created when the route table was created.</p></li>
    /// <li>
    /// <p><code>CreateRoute</code> - The route was manually added to the route table.</p></li>
    /// <li>
    /// <p><code>EnableVgwRoutePropagation</code> - The route was propagated by route propagation.</p></li>
    /// <li>
    /// <p><code>Advertisement</code> - The route was created dynamically by Amazon VPC Route Server.</p></li>
    /// </ul>
    pub origin: ::std::option::Option<crate::types::RouteOrigin>,
    /// <p>The state of the route. The <code>blackhole</code> state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).</p>
    pub state: ::std::option::Option<crate::types::RouteState>,
    /// <p>The ID of a VPC peering connection.</p>
    pub vpc_peering_connection_id: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon Resource Name (ARN) of the core network.</p>
    pub core_network_arn: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon Resource Name (ARN) of the ODB network.</p>
    pub odb_network_arn: ::std::option::Option<::std::string::String>,
    /// <p>The next hop IP address for routes propagated by VPC Route Server into VPC route tables.</p>
    pub ip_address: ::std::option::Option<::std::string::String>,
}
impl Route {
    /// <p>The IPv4 CIDR block used for the destination match.</p>
    pub fn destination_cidr_block(&self) -> ::std::option::Option<&str> {
        self.destination_cidr_block.as_deref()
    }
    /// <p>The IPv6 CIDR block used for the destination match.</p>
    pub fn destination_ipv6_cidr_block(&self) -> ::std::option::Option<&str> {
        self.destination_ipv6_cidr_block.as_deref()
    }
    /// <p>The prefix of the Amazon Web Services service.</p>
    pub fn destination_prefix_list_id(&self) -> ::std::option::Option<&str> {
        self.destination_prefix_list_id.as_deref()
    }
    /// <p>The ID of the egress-only internet gateway.</p>
    pub fn egress_only_internet_gateway_id(&self) -> ::std::option::Option<&str> {
        self.egress_only_internet_gateway_id.as_deref()
    }
    /// <p>The ID of a gateway attached to your VPC.</p>
    pub fn gateway_id(&self) -> ::std::option::Option<&str> {
        self.gateway_id.as_deref()
    }
    /// <p>The ID of a NAT instance in your VPC.</p>
    pub fn instance_id(&self) -> ::std::option::Option<&str> {
        self.instance_id.as_deref()
    }
    /// <p>The ID of Amazon Web Services account that owns the instance.</p>
    pub fn instance_owner_id(&self) -> ::std::option::Option<&str> {
        self.instance_owner_id.as_deref()
    }
    /// <p>The ID of a NAT gateway.</p>
    pub fn nat_gateway_id(&self) -> ::std::option::Option<&str> {
        self.nat_gateway_id.as_deref()
    }
    /// <p>The ID of a transit gateway.</p>
    pub fn transit_gateway_id(&self) -> ::std::option::Option<&str> {
        self.transit_gateway_id.as_deref()
    }
    /// <p>The ID of the local gateway.</p>
    pub fn local_gateway_id(&self) -> ::std::option::Option<&str> {
        self.local_gateway_id.as_deref()
    }
    /// <p>The ID of the carrier gateway.</p>
    pub fn carrier_gateway_id(&self) -> ::std::option::Option<&str> {
        self.carrier_gateway_id.as_deref()
    }
    /// <p>The ID of the network interface.</p>
    pub fn network_interface_id(&self) -> ::std::option::Option<&str> {
        self.network_interface_id.as_deref()
    }
    /// <p>Describes how the route was created.</p>
    /// <ul>
    /// <li>
    /// <p><code>CreateRouteTable</code> - The route was automatically created when the route table was created.</p></li>
    /// <li>
    /// <p><code>CreateRoute</code> - The route was manually added to the route table.</p></li>
    /// <li>
    /// <p><code>EnableVgwRoutePropagation</code> - The route was propagated by route propagation.</p></li>
    /// <li>
    /// <p><code>Advertisement</code> - The route was created dynamically by Amazon VPC Route Server.</p></li>
    /// </ul>
    pub fn origin(&self) -> ::std::option::Option<&crate::types::RouteOrigin> {
        self.origin.as_ref()
    }
    /// <p>The state of the route. The <code>blackhole</code> state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).</p>
    pub fn state(&self) -> ::std::option::Option<&crate::types::RouteState> {
        self.state.as_ref()
    }
    /// <p>The ID of a VPC peering connection.</p>
    pub fn vpc_peering_connection_id(&self) -> ::std::option::Option<&str> {
        self.vpc_peering_connection_id.as_deref()
    }
    /// <p>The Amazon Resource Name (ARN) of the core network.</p>
    pub fn core_network_arn(&self) -> ::std::option::Option<&str> {
        self.core_network_arn.as_deref()
    }
    /// <p>The Amazon Resource Name (ARN) of the ODB network.</p>
    pub fn odb_network_arn(&self) -> ::std::option::Option<&str> {
        self.odb_network_arn.as_deref()
    }
    /// <p>The next hop IP address for routes propagated by VPC Route Server into VPC route tables.</p>
    pub fn ip_address(&self) -> ::std::option::Option<&str> {
        self.ip_address.as_deref()
    }
}
impl Route {
    /// Creates a new builder-style object to manufacture [`Route`](crate::types::Route).
    pub fn builder() -> crate::types::builders::RouteBuilder {
        crate::types::builders::RouteBuilder::default()
    }
}

/// A builder for [`Route`](crate::types::Route).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RouteBuilder {
    pub(crate) destination_cidr_block: ::std::option::Option<::std::string::String>,
    pub(crate) destination_ipv6_cidr_block: ::std::option::Option<::std::string::String>,
    pub(crate) destination_prefix_list_id: ::std::option::Option<::std::string::String>,
    pub(crate) egress_only_internet_gateway_id: ::std::option::Option<::std::string::String>,
    pub(crate) gateway_id: ::std::option::Option<::std::string::String>,
    pub(crate) instance_id: ::std::option::Option<::std::string::String>,
    pub(crate) instance_owner_id: ::std::option::Option<::std::string::String>,
    pub(crate) nat_gateway_id: ::std::option::Option<::std::string::String>,
    pub(crate) transit_gateway_id: ::std::option::Option<::std::string::String>,
    pub(crate) local_gateway_id: ::std::option::Option<::std::string::String>,
    pub(crate) carrier_gateway_id: ::std::option::Option<::std::string::String>,
    pub(crate) network_interface_id: ::std::option::Option<::std::string::String>,
    pub(crate) origin: ::std::option::Option<crate::types::RouteOrigin>,
    pub(crate) state: ::std::option::Option<crate::types::RouteState>,
    pub(crate) vpc_peering_connection_id: ::std::option::Option<::std::string::String>,
    pub(crate) core_network_arn: ::std::option::Option<::std::string::String>,
    pub(crate) odb_network_arn: ::std::option::Option<::std::string::String>,
    pub(crate) ip_address: ::std::option::Option<::std::string::String>,
}
impl RouteBuilder {
    /// <p>The IPv4 CIDR block used for the destination match.</p>
    pub fn destination_cidr_block(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.destination_cidr_block = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The IPv4 CIDR block used for the destination match.</p>
    pub fn set_destination_cidr_block(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.destination_cidr_block = input;
        self
    }
    /// <p>The IPv4 CIDR block used for the destination match.</p>
    pub fn get_destination_cidr_block(&self) -> &::std::option::Option<::std::string::String> {
        &self.destination_cidr_block
    }
    /// <p>The IPv6 CIDR block used for the destination match.</p>
    pub fn destination_ipv6_cidr_block(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.destination_ipv6_cidr_block = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The IPv6 CIDR block used for the destination match.</p>
    pub fn set_destination_ipv6_cidr_block(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.destination_ipv6_cidr_block = input;
        self
    }
    /// <p>The IPv6 CIDR block used for the destination match.</p>
    pub fn get_destination_ipv6_cidr_block(&self) -> &::std::option::Option<::std::string::String> {
        &self.destination_ipv6_cidr_block
    }
    /// <p>The prefix of the Amazon Web Services service.</p>
    pub fn destination_prefix_list_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.destination_prefix_list_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The prefix of the Amazon Web Services service.</p>
    pub fn set_destination_prefix_list_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.destination_prefix_list_id = input;
        self
    }
    /// <p>The prefix of the Amazon Web Services service.</p>
    pub fn get_destination_prefix_list_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.destination_prefix_list_id
    }
    /// <p>The ID of the egress-only internet gateway.</p>
    pub fn egress_only_internet_gateway_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.egress_only_internet_gateway_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the egress-only internet gateway.</p>
    pub fn set_egress_only_internet_gateway_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.egress_only_internet_gateway_id = input;
        self
    }
    /// <p>The ID of the egress-only internet gateway.</p>
    pub fn get_egress_only_internet_gateway_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.egress_only_internet_gateway_id
    }
    /// <p>The ID of a gateway attached to your VPC.</p>
    pub fn gateway_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.gateway_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of a gateway attached to your VPC.</p>
    pub fn set_gateway_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.gateway_id = input;
        self
    }
    /// <p>The ID of a gateway attached to your VPC.</p>
    pub fn get_gateway_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.gateway_id
    }
    /// <p>The ID of a NAT instance in your VPC.</p>
    pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.instance_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of a NAT instance in your VPC.</p>
    pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.instance_id = input;
        self
    }
    /// <p>The ID of a NAT instance in your VPC.</p>
    pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.instance_id
    }
    /// <p>The ID of Amazon Web Services account that owns the instance.</p>
    pub fn instance_owner_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.instance_owner_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of Amazon Web Services account that owns the instance.</p>
    pub fn set_instance_owner_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.instance_owner_id = input;
        self
    }
    /// <p>The ID of Amazon Web Services account that owns the instance.</p>
    pub fn get_instance_owner_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.instance_owner_id
    }
    /// <p>The ID of a NAT gateway.</p>
    pub fn nat_gateway_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.nat_gateway_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of a NAT gateway.</p>
    pub fn set_nat_gateway_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.nat_gateway_id = input;
        self
    }
    /// <p>The ID of a NAT gateway.</p>
    pub fn get_nat_gateway_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.nat_gateway_id
    }
    /// <p>The ID of a transit gateway.</p>
    pub fn transit_gateway_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.transit_gateway_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of a transit gateway.</p>
    pub fn set_transit_gateway_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.transit_gateway_id = input;
        self
    }
    /// <p>The ID of a transit gateway.</p>
    pub fn get_transit_gateway_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.transit_gateway_id
    }
    /// <p>The ID of the local gateway.</p>
    pub fn local_gateway_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.local_gateway_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the local gateway.</p>
    pub fn set_local_gateway_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.local_gateway_id = input;
        self
    }
    /// <p>The ID of the local gateway.</p>
    pub fn get_local_gateway_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.local_gateway_id
    }
    /// <p>The ID of the carrier gateway.</p>
    pub fn carrier_gateway_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.carrier_gateway_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the carrier gateway.</p>
    pub fn set_carrier_gateway_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.carrier_gateway_id = input;
        self
    }
    /// <p>The ID of the carrier gateway.</p>
    pub fn get_carrier_gateway_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.carrier_gateway_id
    }
    /// <p>The ID of the network interface.</p>
    pub fn network_interface_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.network_interface_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the network interface.</p>
    pub fn set_network_interface_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.network_interface_id = input;
        self
    }
    /// <p>The ID of the network interface.</p>
    pub fn get_network_interface_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.network_interface_id
    }
    /// <p>Describes how the route was created.</p>
    /// <ul>
    /// <li>
    /// <p><code>CreateRouteTable</code> - The route was automatically created when the route table was created.</p></li>
    /// <li>
    /// <p><code>CreateRoute</code> - The route was manually added to the route table.</p></li>
    /// <li>
    /// <p><code>EnableVgwRoutePropagation</code> - The route was propagated by route propagation.</p></li>
    /// <li>
    /// <p><code>Advertisement</code> - The route was created dynamically by Amazon VPC Route Server.</p></li>
    /// </ul>
    pub fn origin(mut self, input: crate::types::RouteOrigin) -> Self {
        self.origin = ::std::option::Option::Some(input);
        self
    }
    /// <p>Describes how the route was created.</p>
    /// <ul>
    /// <li>
    /// <p><code>CreateRouteTable</code> - The route was automatically created when the route table was created.</p></li>
    /// <li>
    /// <p><code>CreateRoute</code> - The route was manually added to the route table.</p></li>
    /// <li>
    /// <p><code>EnableVgwRoutePropagation</code> - The route was propagated by route propagation.</p></li>
    /// <li>
    /// <p><code>Advertisement</code> - The route was created dynamically by Amazon VPC Route Server.</p></li>
    /// </ul>
    pub fn set_origin(mut self, input: ::std::option::Option<crate::types::RouteOrigin>) -> Self {
        self.origin = input;
        self
    }
    /// <p>Describes how the route was created.</p>
    /// <ul>
    /// <li>
    /// <p><code>CreateRouteTable</code> - The route was automatically created when the route table was created.</p></li>
    /// <li>
    /// <p><code>CreateRoute</code> - The route was manually added to the route table.</p></li>
    /// <li>
    /// <p><code>EnableVgwRoutePropagation</code> - The route was propagated by route propagation.</p></li>
    /// <li>
    /// <p><code>Advertisement</code> - The route was created dynamically by Amazon VPC Route Server.</p></li>
    /// </ul>
    pub fn get_origin(&self) -> &::std::option::Option<crate::types::RouteOrigin> {
        &self.origin
    }
    /// <p>The state of the route. The <code>blackhole</code> state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).</p>
    pub fn state(mut self, input: crate::types::RouteState) -> Self {
        self.state = ::std::option::Option::Some(input);
        self
    }
    /// <p>The state of the route. The <code>blackhole</code> state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).</p>
    pub fn set_state(mut self, input: ::std::option::Option<crate::types::RouteState>) -> Self {
        self.state = input;
        self
    }
    /// <p>The state of the route. The <code>blackhole</code> state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).</p>
    pub fn get_state(&self) -> &::std::option::Option<crate::types::RouteState> {
        &self.state
    }
    /// <p>The ID of a VPC peering connection.</p>
    pub fn vpc_peering_connection_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.vpc_peering_connection_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of a VPC peering connection.</p>
    pub fn set_vpc_peering_connection_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.vpc_peering_connection_id = input;
        self
    }
    /// <p>The ID of a VPC peering connection.</p>
    pub fn get_vpc_peering_connection_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.vpc_peering_connection_id
    }
    /// <p>The Amazon Resource Name (ARN) of the core network.</p>
    pub fn core_network_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.core_network_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the core network.</p>
    pub fn set_core_network_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.core_network_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the core network.</p>
    pub fn get_core_network_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.core_network_arn
    }
    /// <p>The Amazon Resource Name (ARN) of the ODB network.</p>
    pub fn odb_network_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.odb_network_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the ODB network.</p>
    pub fn set_odb_network_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.odb_network_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the ODB network.</p>
    pub fn get_odb_network_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.odb_network_arn
    }
    /// <p>The next hop IP address for routes propagated by VPC Route Server into VPC route tables.</p>
    pub fn ip_address(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.ip_address = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The next hop IP address for routes propagated by VPC Route Server into VPC route tables.</p>
    pub fn set_ip_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.ip_address = input;
        self
    }
    /// <p>The next hop IP address for routes propagated by VPC Route Server into VPC route tables.</p>
    pub fn get_ip_address(&self) -> &::std::option::Option<::std::string::String> {
        &self.ip_address
    }
    /// Consumes the builder and constructs a [`Route`](crate::types::Route).
    pub fn build(self) -> crate::types::Route {
        crate::types::Route {
            destination_cidr_block: self.destination_cidr_block,
            destination_ipv6_cidr_block: self.destination_ipv6_cidr_block,
            destination_prefix_list_id: self.destination_prefix_list_id,
            egress_only_internet_gateway_id: self.egress_only_internet_gateway_id,
            gateway_id: self.gateway_id,
            instance_id: self.instance_id,
            instance_owner_id: self.instance_owner_id,
            nat_gateway_id: self.nat_gateway_id,
            transit_gateway_id: self.transit_gateway_id,
            local_gateway_id: self.local_gateway_id,
            carrier_gateway_id: self.carrier_gateway_id,
            network_interface_id: self.network_interface_id,
            origin: self.origin,
            state: self.state,
            vpc_peering_connection_id: self.vpc_peering_connection_id,
            core_network_arn: self.core_network_arn,
            odb_network_arn: self.odb_network_arn,
            ip_address: self.ip_address,
        }
    }
}