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 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Information about a virtual interface.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateVirtualInterfaceAttributesOutput {
/// <p>The ID of the Amazon Web Services account that owns the virtual interface.</p>
#[doc(hidden)]
pub owner_account: std::option::Option<std::string::String>,
/// <p>The ID of the virtual interface.</p>
#[doc(hidden)]
pub virtual_interface_id: std::option::Option<std::string::String>,
/// <p>The location of the connection.</p>
#[doc(hidden)]
pub location: std::option::Option<std::string::String>,
/// <p>The ID of the connection.</p>
#[doc(hidden)]
pub connection_id: std::option::Option<std::string::String>,
/// <p>The type of virtual interface. The possible values are <code>private</code> and <code>public</code>.</p>
#[doc(hidden)]
pub virtual_interface_type: std::option::Option<std::string::String>,
/// <p>The name of the virtual interface assigned by the customer network. The name has a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a hyphen (-).</p>
#[doc(hidden)]
pub virtual_interface_name: std::option::Option<std::string::String>,
/// <p>The ID of the VLAN.</p>
#[doc(hidden)]
pub vlan: i32,
/// <p>The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.</p>
/// <p>The valid values are 1-2147483647.</p>
#[doc(hidden)]
pub asn: i32,
/// <p>The autonomous system number (ASN) for the Amazon side of the connection.</p>
#[doc(hidden)]
pub amazon_side_asn: std::option::Option<i64>,
/// <p>The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.</p>
#[doc(hidden)]
pub auth_key: std::option::Option<std::string::String>,
/// <p>The IP address assigned to the Amazon interface.</p>
#[doc(hidden)]
pub amazon_address: std::option::Option<std::string::String>,
/// <p>The IP address assigned to the customer interface.</p>
#[doc(hidden)]
pub customer_address: std::option::Option<std::string::String>,
/// <p>The address family for the BGP peer.</p>
#[doc(hidden)]
pub address_family: std::option::Option<crate::types::AddressFamily>,
/// <p>The state of the virtual interface. The following are the possible values:</p>
/// <ul>
/// <li> <p> <code>confirming</code>: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.</p> </li>
/// <li> <p> <code>verifying</code>: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.</p> </li>
/// <li> <p> <code>pending</code>: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.</p> </li>
/// <li> <p> <code>available</code>: A virtual interface that is able to forward traffic.</p> </li>
/// <li> <p> <code>down</code>: A virtual interface that is BGP down.</p> </li>
/// <li> <p> <code>deleting</code>: A virtual interface is in this state immediately after calling <code>DeleteVirtualInterface</code> until it can no longer forward traffic.</p> </li>
/// <li> <p> <code>deleted</code>: A virtual interface that cannot forward traffic.</p> </li>
/// <li> <p> <code>rejected</code>: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the <code>Confirming</code> state is deleted by the virtual interface owner, the virtual interface enters the <code>Rejected</code> state.</p> </li>
/// <li> <p> <code>unknown</code>: The state of the virtual interface is not available.</p> </li>
/// </ul>
#[doc(hidden)]
pub virtual_interface_state: std::option::Option<crate::types::VirtualInterfaceState>,
/// <p>The customer router configuration.</p>
#[doc(hidden)]
pub customer_router_config: std::option::Option<std::string::String>,
/// <p>The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 9001. The default value is 1500.</p>
#[doc(hidden)]
pub mtu: std::option::Option<i32>,
/// <p>Indicates whether jumbo frames (9001 MTU) are supported.</p>
#[doc(hidden)]
pub jumbo_frame_capable: std::option::Option<bool>,
/// <p>The ID of the virtual private gateway. Applies only to private virtual interfaces.</p>
#[doc(hidden)]
pub virtual_gateway_id: std::option::Option<std::string::String>,
/// <p>The ID of the Direct Connect gateway.</p>
#[doc(hidden)]
pub direct_connect_gateway_id: std::option::Option<std::string::String>,
/// <p>The routes to be advertised to the Amazon Web Services network in this Region. Applies to public virtual interfaces.</p>
#[doc(hidden)]
pub route_filter_prefixes: std::option::Option<std::vec::Vec<crate::types::RouteFilterPrefix>>,
/// <p>The BGP peers configured on this virtual interface.</p>
#[doc(hidden)]
pub bgp_peers: std::option::Option<std::vec::Vec<crate::types::BgpPeer>>,
/// <p>The Amazon Web Services Region where the virtual interface is located.</p>
#[doc(hidden)]
pub region: std::option::Option<std::string::String>,
/// <p>The Direct Connect endpoint that terminates the physical connection.</p>
#[doc(hidden)]
pub aws_device_v2: std::option::Option<std::string::String>,
/// <p>The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.</p>
#[doc(hidden)]
pub aws_logical_device_id: std::option::Option<std::string::String>,
/// <p>The tags associated with the virtual interface.</p>
#[doc(hidden)]
pub tags: std::option::Option<std::vec::Vec<crate::types::Tag>>,
/// <p>Indicates whether SiteLink is enabled.</p>
#[doc(hidden)]
pub site_link_enabled: std::option::Option<bool>,
_request_id: Option<String>,
}
impl UpdateVirtualInterfaceAttributesOutput {
/// <p>The ID of the Amazon Web Services account that owns the virtual interface.</p>
pub fn owner_account(&self) -> std::option::Option<&str> {
self.owner_account.as_deref()
}
/// <p>The ID of the virtual interface.</p>
pub fn virtual_interface_id(&self) -> std::option::Option<&str> {
self.virtual_interface_id.as_deref()
}
/// <p>The location of the connection.</p>
pub fn location(&self) -> std::option::Option<&str> {
self.location.as_deref()
}
/// <p>The ID of the connection.</p>
pub fn connection_id(&self) -> std::option::Option<&str> {
self.connection_id.as_deref()
}
/// <p>The type of virtual interface. The possible values are <code>private</code> and <code>public</code>.</p>
pub fn virtual_interface_type(&self) -> std::option::Option<&str> {
self.virtual_interface_type.as_deref()
}
/// <p>The name of the virtual interface assigned by the customer network. The name has a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a hyphen (-).</p>
pub fn virtual_interface_name(&self) -> std::option::Option<&str> {
self.virtual_interface_name.as_deref()
}
/// <p>The ID of the VLAN.</p>
pub fn vlan(&self) -> i32 {
self.vlan
}
/// <p>The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.</p>
/// <p>The valid values are 1-2147483647.</p>
pub fn asn(&self) -> i32 {
self.asn
}
/// <p>The autonomous system number (ASN) for the Amazon side of the connection.</p>
pub fn amazon_side_asn(&self) -> std::option::Option<i64> {
self.amazon_side_asn
}
/// <p>The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.</p>
pub fn auth_key(&self) -> std::option::Option<&str> {
self.auth_key.as_deref()
}
/// <p>The IP address assigned to the Amazon interface.</p>
pub fn amazon_address(&self) -> std::option::Option<&str> {
self.amazon_address.as_deref()
}
/// <p>The IP address assigned to the customer interface.</p>
pub fn customer_address(&self) -> std::option::Option<&str> {
self.customer_address.as_deref()
}
/// <p>The address family for the BGP peer.</p>
pub fn address_family(&self) -> std::option::Option<&crate::types::AddressFamily> {
self.address_family.as_ref()
}
/// <p>The state of the virtual interface. The following are the possible values:</p>
/// <ul>
/// <li> <p> <code>confirming</code>: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.</p> </li>
/// <li> <p> <code>verifying</code>: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.</p> </li>
/// <li> <p> <code>pending</code>: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.</p> </li>
/// <li> <p> <code>available</code>: A virtual interface that is able to forward traffic.</p> </li>
/// <li> <p> <code>down</code>: A virtual interface that is BGP down.</p> </li>
/// <li> <p> <code>deleting</code>: A virtual interface is in this state immediately after calling <code>DeleteVirtualInterface</code> until it can no longer forward traffic.</p> </li>
/// <li> <p> <code>deleted</code>: A virtual interface that cannot forward traffic.</p> </li>
/// <li> <p> <code>rejected</code>: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the <code>Confirming</code> state is deleted by the virtual interface owner, the virtual interface enters the <code>Rejected</code> state.</p> </li>
/// <li> <p> <code>unknown</code>: The state of the virtual interface is not available.</p> </li>
/// </ul>
pub fn virtual_interface_state(
&self,
) -> std::option::Option<&crate::types::VirtualInterfaceState> {
self.virtual_interface_state.as_ref()
}
/// <p>The customer router configuration.</p>
pub fn customer_router_config(&self) -> std::option::Option<&str> {
self.customer_router_config.as_deref()
}
/// <p>The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 9001. The default value is 1500.</p>
pub fn mtu(&self) -> std::option::Option<i32> {
self.mtu
}
/// <p>Indicates whether jumbo frames (9001 MTU) are supported.</p>
pub fn jumbo_frame_capable(&self) -> std::option::Option<bool> {
self.jumbo_frame_capable
}
/// <p>The ID of the virtual private gateway. Applies only to private virtual interfaces.</p>
pub fn virtual_gateway_id(&self) -> std::option::Option<&str> {
self.virtual_gateway_id.as_deref()
}
/// <p>The ID of the Direct Connect gateway.</p>
pub fn direct_connect_gateway_id(&self) -> std::option::Option<&str> {
self.direct_connect_gateway_id.as_deref()
}
/// <p>The routes to be advertised to the Amazon Web Services network in this Region. Applies to public virtual interfaces.</p>
pub fn route_filter_prefixes(&self) -> std::option::Option<&[crate::types::RouteFilterPrefix]> {
self.route_filter_prefixes.as_deref()
}
/// <p>The BGP peers configured on this virtual interface.</p>
pub fn bgp_peers(&self) -> std::option::Option<&[crate::types::BgpPeer]> {
self.bgp_peers.as_deref()
}
/// <p>The Amazon Web Services Region where the virtual interface is located.</p>
pub fn region(&self) -> std::option::Option<&str> {
self.region.as_deref()
}
/// <p>The Direct Connect endpoint that terminates the physical connection.</p>
pub fn aws_device_v2(&self) -> std::option::Option<&str> {
self.aws_device_v2.as_deref()
}
/// <p>The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.</p>
pub fn aws_logical_device_id(&self) -> std::option::Option<&str> {
self.aws_logical_device_id.as_deref()
}
/// <p>The tags associated with the virtual interface.</p>
pub fn tags(&self) -> std::option::Option<&[crate::types::Tag]> {
self.tags.as_deref()
}
/// <p>Indicates whether SiteLink is enabled.</p>
pub fn site_link_enabled(&self) -> std::option::Option<bool> {
self.site_link_enabled
}
}
impl aws_http::request_id::RequestId for UpdateVirtualInterfaceAttributesOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl UpdateVirtualInterfaceAttributesOutput {
/// Creates a new builder-style object to manufacture [`UpdateVirtualInterfaceAttributesOutput`](crate::operation::update_virtual_interface_attributes::UpdateVirtualInterfaceAttributesOutput).
pub fn builder() -> crate::operation::update_virtual_interface_attributes::builders::UpdateVirtualInterfaceAttributesOutputBuilder{
crate::operation::update_virtual_interface_attributes::builders::UpdateVirtualInterfaceAttributesOutputBuilder::default()
}
}
/// A builder for [`UpdateVirtualInterfaceAttributesOutput`](crate::operation::update_virtual_interface_attributes::UpdateVirtualInterfaceAttributesOutput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct UpdateVirtualInterfaceAttributesOutputBuilder {
pub(crate) owner_account: std::option::Option<std::string::String>,
pub(crate) virtual_interface_id: std::option::Option<std::string::String>,
pub(crate) location: std::option::Option<std::string::String>,
pub(crate) connection_id: std::option::Option<std::string::String>,
pub(crate) virtual_interface_type: std::option::Option<std::string::String>,
pub(crate) virtual_interface_name: std::option::Option<std::string::String>,
pub(crate) vlan: std::option::Option<i32>,
pub(crate) asn: std::option::Option<i32>,
pub(crate) amazon_side_asn: std::option::Option<i64>,
pub(crate) auth_key: std::option::Option<std::string::String>,
pub(crate) amazon_address: std::option::Option<std::string::String>,
pub(crate) customer_address: std::option::Option<std::string::String>,
pub(crate) address_family: std::option::Option<crate::types::AddressFamily>,
pub(crate) virtual_interface_state: std::option::Option<crate::types::VirtualInterfaceState>,
pub(crate) customer_router_config: std::option::Option<std::string::String>,
pub(crate) mtu: std::option::Option<i32>,
pub(crate) jumbo_frame_capable: std::option::Option<bool>,
pub(crate) virtual_gateway_id: std::option::Option<std::string::String>,
pub(crate) direct_connect_gateway_id: std::option::Option<std::string::String>,
pub(crate) route_filter_prefixes:
std::option::Option<std::vec::Vec<crate::types::RouteFilterPrefix>>,
pub(crate) bgp_peers: std::option::Option<std::vec::Vec<crate::types::BgpPeer>>,
pub(crate) region: std::option::Option<std::string::String>,
pub(crate) aws_device_v2: std::option::Option<std::string::String>,
pub(crate) aws_logical_device_id: std::option::Option<std::string::String>,
pub(crate) tags: std::option::Option<std::vec::Vec<crate::types::Tag>>,
pub(crate) site_link_enabled: std::option::Option<bool>,
_request_id: Option<String>,
}
impl UpdateVirtualInterfaceAttributesOutputBuilder {
/// <p>The ID of the Amazon Web Services account that owns the virtual interface.</p>
pub fn owner_account(mut self, input: impl Into<std::string::String>) -> Self {
self.owner_account = Some(input.into());
self
}
/// <p>The ID of the Amazon Web Services account that owns the virtual interface.</p>
pub fn set_owner_account(mut self, input: std::option::Option<std::string::String>) -> Self {
self.owner_account = input;
self
}
/// <p>The ID of the virtual interface.</p>
pub fn virtual_interface_id(mut self, input: impl Into<std::string::String>) -> Self {
self.virtual_interface_id = Some(input.into());
self
}
/// <p>The ID of the virtual interface.</p>
pub fn set_virtual_interface_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.virtual_interface_id = input;
self
}
/// <p>The location of the connection.</p>
pub fn location(mut self, input: impl Into<std::string::String>) -> Self {
self.location = Some(input.into());
self
}
/// <p>The location of the connection.</p>
pub fn set_location(mut self, input: std::option::Option<std::string::String>) -> Self {
self.location = input;
self
}
/// <p>The ID of the connection.</p>
pub fn connection_id(mut self, input: impl Into<std::string::String>) -> Self {
self.connection_id = Some(input.into());
self
}
/// <p>The ID of the connection.</p>
pub fn set_connection_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.connection_id = input;
self
}
/// <p>The type of virtual interface. The possible values are <code>private</code> and <code>public</code>.</p>
pub fn virtual_interface_type(mut self, input: impl Into<std::string::String>) -> Self {
self.virtual_interface_type = Some(input.into());
self
}
/// <p>The type of virtual interface. The possible values are <code>private</code> and <code>public</code>.</p>
pub fn set_virtual_interface_type(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.virtual_interface_type = input;
self
}
/// <p>The name of the virtual interface assigned by the customer network. The name has a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a hyphen (-).</p>
pub fn virtual_interface_name(mut self, input: impl Into<std::string::String>) -> Self {
self.virtual_interface_name = Some(input.into());
self
}
/// <p>The name of the virtual interface assigned by the customer network. The name has a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a hyphen (-).</p>
pub fn set_virtual_interface_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.virtual_interface_name = input;
self
}
/// <p>The ID of the VLAN.</p>
pub fn vlan(mut self, input: i32) -> Self {
self.vlan = Some(input);
self
}
/// <p>The ID of the VLAN.</p>
pub fn set_vlan(mut self, input: std::option::Option<i32>) -> Self {
self.vlan = input;
self
}
/// <p>The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.</p>
/// <p>The valid values are 1-2147483647.</p>
pub fn asn(mut self, input: i32) -> Self {
self.asn = Some(input);
self
}
/// <p>The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.</p>
/// <p>The valid values are 1-2147483647.</p>
pub fn set_asn(mut self, input: std::option::Option<i32>) -> Self {
self.asn = input;
self
}
/// <p>The autonomous system number (ASN) for the Amazon side of the connection.</p>
pub fn amazon_side_asn(mut self, input: i64) -> Self {
self.amazon_side_asn = Some(input);
self
}
/// <p>The autonomous system number (ASN) for the Amazon side of the connection.</p>
pub fn set_amazon_side_asn(mut self, input: std::option::Option<i64>) -> Self {
self.amazon_side_asn = input;
self
}
/// <p>The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.</p>
pub fn auth_key(mut self, input: impl Into<std::string::String>) -> Self {
self.auth_key = Some(input.into());
self
}
/// <p>The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.</p>
pub fn set_auth_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.auth_key = input;
self
}
/// <p>The IP address assigned to the Amazon interface.</p>
pub fn amazon_address(mut self, input: impl Into<std::string::String>) -> Self {
self.amazon_address = Some(input.into());
self
}
/// <p>The IP address assigned to the Amazon interface.</p>
pub fn set_amazon_address(mut self, input: std::option::Option<std::string::String>) -> Self {
self.amazon_address = input;
self
}
/// <p>The IP address assigned to the customer interface.</p>
pub fn customer_address(mut self, input: impl Into<std::string::String>) -> Self {
self.customer_address = Some(input.into());
self
}
/// <p>The IP address assigned to the customer interface.</p>
pub fn set_customer_address(mut self, input: std::option::Option<std::string::String>) -> Self {
self.customer_address = input;
self
}
/// <p>The address family for the BGP peer.</p>
pub fn address_family(mut self, input: crate::types::AddressFamily) -> Self {
self.address_family = Some(input);
self
}
/// <p>The address family for the BGP peer.</p>
pub fn set_address_family(
mut self,
input: std::option::Option<crate::types::AddressFamily>,
) -> Self {
self.address_family = input;
self
}
/// <p>The state of the virtual interface. The following are the possible values:</p>
/// <ul>
/// <li> <p> <code>confirming</code>: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.</p> </li>
/// <li> <p> <code>verifying</code>: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.</p> </li>
/// <li> <p> <code>pending</code>: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.</p> </li>
/// <li> <p> <code>available</code>: A virtual interface that is able to forward traffic.</p> </li>
/// <li> <p> <code>down</code>: A virtual interface that is BGP down.</p> </li>
/// <li> <p> <code>deleting</code>: A virtual interface is in this state immediately after calling <code>DeleteVirtualInterface</code> until it can no longer forward traffic.</p> </li>
/// <li> <p> <code>deleted</code>: A virtual interface that cannot forward traffic.</p> </li>
/// <li> <p> <code>rejected</code>: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the <code>Confirming</code> state is deleted by the virtual interface owner, the virtual interface enters the <code>Rejected</code> state.</p> </li>
/// <li> <p> <code>unknown</code>: The state of the virtual interface is not available.</p> </li>
/// </ul>
pub fn virtual_interface_state(mut self, input: crate::types::VirtualInterfaceState) -> Self {
self.virtual_interface_state = Some(input);
self
}
/// <p>The state of the virtual interface. The following are the possible values:</p>
/// <ul>
/// <li> <p> <code>confirming</code>: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.</p> </li>
/// <li> <p> <code>verifying</code>: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.</p> </li>
/// <li> <p> <code>pending</code>: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.</p> </li>
/// <li> <p> <code>available</code>: A virtual interface that is able to forward traffic.</p> </li>
/// <li> <p> <code>down</code>: A virtual interface that is BGP down.</p> </li>
/// <li> <p> <code>deleting</code>: A virtual interface is in this state immediately after calling <code>DeleteVirtualInterface</code> until it can no longer forward traffic.</p> </li>
/// <li> <p> <code>deleted</code>: A virtual interface that cannot forward traffic.</p> </li>
/// <li> <p> <code>rejected</code>: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the <code>Confirming</code> state is deleted by the virtual interface owner, the virtual interface enters the <code>Rejected</code> state.</p> </li>
/// <li> <p> <code>unknown</code>: The state of the virtual interface is not available.</p> </li>
/// </ul>
pub fn set_virtual_interface_state(
mut self,
input: std::option::Option<crate::types::VirtualInterfaceState>,
) -> Self {
self.virtual_interface_state = input;
self
}
/// <p>The customer router configuration.</p>
pub fn customer_router_config(mut self, input: impl Into<std::string::String>) -> Self {
self.customer_router_config = Some(input.into());
self
}
/// <p>The customer router configuration.</p>
pub fn set_customer_router_config(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.customer_router_config = input;
self
}
/// <p>The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 9001. The default value is 1500.</p>
pub fn mtu(mut self, input: i32) -> Self {
self.mtu = Some(input);
self
}
/// <p>The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 9001. The default value is 1500.</p>
pub fn set_mtu(mut self, input: std::option::Option<i32>) -> Self {
self.mtu = input;
self
}
/// <p>Indicates whether jumbo frames (9001 MTU) are supported.</p>
pub fn jumbo_frame_capable(mut self, input: bool) -> Self {
self.jumbo_frame_capable = Some(input);
self
}
/// <p>Indicates whether jumbo frames (9001 MTU) are supported.</p>
pub fn set_jumbo_frame_capable(mut self, input: std::option::Option<bool>) -> Self {
self.jumbo_frame_capable = input;
self
}
/// <p>The ID of the virtual private gateway. Applies only to private virtual interfaces.</p>
pub fn virtual_gateway_id(mut self, input: impl Into<std::string::String>) -> Self {
self.virtual_gateway_id = Some(input.into());
self
}
/// <p>The ID of the virtual private gateway. Applies only to private virtual interfaces.</p>
pub fn set_virtual_gateway_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.virtual_gateway_id = input;
self
}
/// <p>The ID of the Direct Connect gateway.</p>
pub fn direct_connect_gateway_id(mut self, input: impl Into<std::string::String>) -> Self {
self.direct_connect_gateway_id = Some(input.into());
self
}
/// <p>The ID of the Direct Connect gateway.</p>
pub fn set_direct_connect_gateway_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.direct_connect_gateway_id = input;
self
}
/// Appends an item to `route_filter_prefixes`.
///
/// To override the contents of this collection use [`set_route_filter_prefixes`](Self::set_route_filter_prefixes).
///
/// <p>The routes to be advertised to the Amazon Web Services network in this Region. Applies to public virtual interfaces.</p>
pub fn route_filter_prefixes(mut self, input: crate::types::RouteFilterPrefix) -> Self {
let mut v = self.route_filter_prefixes.unwrap_or_default();
v.push(input);
self.route_filter_prefixes = Some(v);
self
}
/// <p>The routes to be advertised to the Amazon Web Services network in this Region. Applies to public virtual interfaces.</p>
pub fn set_route_filter_prefixes(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::RouteFilterPrefix>>,
) -> Self {
self.route_filter_prefixes = input;
self
}
/// Appends an item to `bgp_peers`.
///
/// To override the contents of this collection use [`set_bgp_peers`](Self::set_bgp_peers).
///
/// <p>The BGP peers configured on this virtual interface.</p>
pub fn bgp_peers(mut self, input: crate::types::BgpPeer) -> Self {
let mut v = self.bgp_peers.unwrap_or_default();
v.push(input);
self.bgp_peers = Some(v);
self
}
/// <p>The BGP peers configured on this virtual interface.</p>
pub fn set_bgp_peers(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::BgpPeer>>,
) -> Self {
self.bgp_peers = input;
self
}
/// <p>The Amazon Web Services Region where the virtual interface is located.</p>
pub fn region(mut self, input: impl Into<std::string::String>) -> Self {
self.region = Some(input.into());
self
}
/// <p>The Amazon Web Services Region where the virtual interface is located.</p>
pub fn set_region(mut self, input: std::option::Option<std::string::String>) -> Self {
self.region = input;
self
}
/// <p>The Direct Connect endpoint that terminates the physical connection.</p>
pub fn aws_device_v2(mut self, input: impl Into<std::string::String>) -> Self {
self.aws_device_v2 = Some(input.into());
self
}
/// <p>The Direct Connect endpoint that terminates the physical connection.</p>
pub fn set_aws_device_v2(mut self, input: std::option::Option<std::string::String>) -> Self {
self.aws_device_v2 = input;
self
}
/// <p>The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.</p>
pub fn aws_logical_device_id(mut self, input: impl Into<std::string::String>) -> Self {
self.aws_logical_device_id = Some(input.into());
self
}
/// <p>The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.</p>
pub fn set_aws_logical_device_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.aws_logical_device_id = input;
self
}
/// Appends an item to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>The tags associated with the virtual interface.</p>
pub fn tags(mut self, input: crate::types::Tag) -> Self {
let mut v = self.tags.unwrap_or_default();
v.push(input);
self.tags = Some(v);
self
}
/// <p>The tags associated with the virtual interface.</p>
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::Tag>>,
) -> Self {
self.tags = input;
self
}
/// <p>Indicates whether SiteLink is enabled.</p>
pub fn site_link_enabled(mut self, input: bool) -> Self {
self.site_link_enabled = Some(input);
self
}
/// <p>Indicates whether SiteLink is enabled.</p>
pub fn set_site_link_enabled(mut self, input: std::option::Option<bool>) -> Self {
self.site_link_enabled = input;
self
}
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 [`UpdateVirtualInterfaceAttributesOutput`](crate::operation::update_virtual_interface_attributes::UpdateVirtualInterfaceAttributesOutput).
pub fn build(
self,
) -> crate::operation::update_virtual_interface_attributes::UpdateVirtualInterfaceAttributesOutput
{
crate::operation::update_virtual_interface_attributes::UpdateVirtualInterfaceAttributesOutput {
owner_account: self.owner_account
,
virtual_interface_id: self.virtual_interface_id
,
location: self.location
,
connection_id: self.connection_id
,
virtual_interface_type: self.virtual_interface_type
,
virtual_interface_name: self.virtual_interface_name
,
vlan: self.vlan
.unwrap_or_default()
,
asn: self.asn
.unwrap_or_default()
,
amazon_side_asn: self.amazon_side_asn
,
auth_key: self.auth_key
,
amazon_address: self.amazon_address
,
customer_address: self.customer_address
,
address_family: self.address_family
,
virtual_interface_state: self.virtual_interface_state
,
customer_router_config: self.customer_router_config
,
mtu: self.mtu
,
jumbo_frame_capable: self.jumbo_frame_capable
,
virtual_gateway_id: self.virtual_gateway_id
,
direct_connect_gateway_id: self.direct_connect_gateway_id
,
route_filter_prefixes: self.route_filter_prefixes
,
bgp_peers: self.bgp_peers
,
region: self.region
,
aws_device_v2: self.aws_device_v2
,
aws_logical_device_id: self.aws_logical_device_id
,
tags: self.tags
,
site_link_enabled: self.site_link_enabled
,
_request_id: self._request_id,
}
}
}