#[non_exhaustive]pub struct NewTransitVirtualInterfaceAllocationBuilder { /* private fields */ }Expand description
A builder for NewTransitVirtualInterfaceAllocation.
Implementations§
source§impl NewTransitVirtualInterfaceAllocationBuilder
impl NewTransitVirtualInterfaceAllocationBuilder
sourcepub fn virtual_interface_name(self, input: impl Into<String>) -> Self
pub fn virtual_interface_name(self, input: impl Into<String>) -> Self
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 (-).
sourcepub fn set_virtual_interface_name(self, input: Option<String>) -> Self
pub fn set_virtual_interface_name(self, input: Option<String>) -> Self
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 (-).
sourcepub fn get_virtual_interface_name(&self) -> &Option<String>
pub fn get_virtual_interface_name(&self) -> &Option<String>
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 (-).
sourcepub fn asn(self, input: i32) -> Self
pub fn asn(self, input: i32) -> Self
The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
The valid values are 1-2147483647.
sourcepub fn set_asn(self, input: Option<i32>) -> Self
pub fn set_asn(self, input: Option<i32>) -> Self
The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
The valid values are 1-2147483647.
sourcepub fn get_asn(&self) -> &Option<i32>
pub fn get_asn(&self) -> &Option<i32>
The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
The valid values are 1-2147483647.
sourcepub fn mtu(self, input: i32) -> Self
pub fn mtu(self, input: i32) -> Self
The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 8500. The default value is 1500
sourcepub fn set_mtu(self, input: Option<i32>) -> Self
pub fn set_mtu(self, input: Option<i32>) -> Self
The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 8500. The default value is 1500
sourcepub fn get_mtu(&self) -> &Option<i32>
pub fn get_mtu(&self) -> &Option<i32>
The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 8500. The default value is 1500
sourcepub fn auth_key(self, input: impl Into<String>) -> Self
pub fn auth_key(self, input: impl Into<String>) -> Self
The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.
sourcepub fn set_auth_key(self, input: Option<String>) -> Self
pub fn set_auth_key(self, input: Option<String>) -> Self
The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.
sourcepub fn get_auth_key(&self) -> &Option<String>
pub fn get_auth_key(&self) -> &Option<String>
The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.
sourcepub fn amazon_address(self, input: impl Into<String>) -> Self
pub fn amazon_address(self, input: impl Into<String>) -> Self
The IP address assigned to the Amazon interface.
sourcepub fn set_amazon_address(self, input: Option<String>) -> Self
pub fn set_amazon_address(self, input: Option<String>) -> Self
The IP address assigned to the Amazon interface.
sourcepub fn get_amazon_address(&self) -> &Option<String>
pub fn get_amazon_address(&self) -> &Option<String>
The IP address assigned to the Amazon interface.
sourcepub fn customer_address(self, input: impl Into<String>) -> Self
pub fn customer_address(self, input: impl Into<String>) -> Self
The IP address assigned to the customer interface.
sourcepub fn set_customer_address(self, input: Option<String>) -> Self
pub fn set_customer_address(self, input: Option<String>) -> Self
The IP address assigned to the customer interface.
sourcepub fn get_customer_address(&self) -> &Option<String>
pub fn get_customer_address(&self) -> &Option<String>
The IP address assigned to the customer interface.
sourcepub fn address_family(self, input: AddressFamily) -> Self
pub fn address_family(self, input: AddressFamily) -> Self
The address family for the BGP peer.
sourcepub fn set_address_family(self, input: Option<AddressFamily>) -> Self
pub fn set_address_family(self, input: Option<AddressFamily>) -> Self
The address family for the BGP peer.
sourcepub fn get_address_family(&self) -> &Option<AddressFamily>
pub fn get_address_family(&self) -> &Option<AddressFamily>
The address family for the BGP peer.
Appends an item to tags.
To override the contents of this collection use set_tags.
The tags associated with the transitive virtual interface.
The tags associated with the transitive virtual interface.
The tags associated with the transitive virtual interface.
sourcepub fn build(self) -> NewTransitVirtualInterfaceAllocation
pub fn build(self) -> NewTransitVirtualInterfaceAllocation
Consumes the builder and constructs a NewTransitVirtualInterfaceAllocation.
Trait Implementations§
source§impl Clone for NewTransitVirtualInterfaceAllocationBuilder
impl Clone for NewTransitVirtualInterfaceAllocationBuilder
source§fn clone(&self) -> NewTransitVirtualInterfaceAllocationBuilder
fn clone(&self) -> NewTransitVirtualInterfaceAllocationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for NewTransitVirtualInterfaceAllocationBuilder
impl Default for NewTransitVirtualInterfaceAllocationBuilder
source§fn default() -> NewTransitVirtualInterfaceAllocationBuilder
fn default() -> NewTransitVirtualInterfaceAllocationBuilder
source§impl PartialEq for NewTransitVirtualInterfaceAllocationBuilder
impl PartialEq for NewTransitVirtualInterfaceAllocationBuilder
source§fn eq(&self, other: &NewTransitVirtualInterfaceAllocationBuilder) -> bool
fn eq(&self, other: &NewTransitVirtualInterfaceAllocationBuilder) -> bool
self and other values to be equal, and is used
by ==.