#[non_exhaustive]pub struct NewPrivateVirtualInterfaceBuilder { /* private fields */ }
Expand description
A builder for NewPrivateVirtualInterface
.
Implementations§
source§impl NewPrivateVirtualInterfaceBuilder
impl NewPrivateVirtualInterfaceBuilder
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 (-).
This field is required.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.
This field is required.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 9001. 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 9001. 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 9001. 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.
sourcepub fn virtual_gateway_id(self, input: impl Into<String>) -> Self
pub fn virtual_gateway_id(self, input: impl Into<String>) -> Self
The ID of the virtual private gateway.
sourcepub fn set_virtual_gateway_id(self, input: Option<String>) -> Self
pub fn set_virtual_gateway_id(self, input: Option<String>) -> Self
The ID of the virtual private gateway.
sourcepub fn get_virtual_gateway_id(&self) -> &Option<String>
pub fn get_virtual_gateway_id(&self) -> &Option<String>
The ID of the virtual private gateway.
sourcepub fn direct_connect_gateway_id(self, input: impl Into<String>) -> Self
pub fn direct_connect_gateway_id(self, input: impl Into<String>) -> Self
The ID of the Direct Connect gateway.
sourcepub fn set_direct_connect_gateway_id(self, input: Option<String>) -> Self
pub fn set_direct_connect_gateway_id(self, input: Option<String>) -> Self
The ID of the Direct Connect gateway.
sourcepub fn get_direct_connect_gateway_id(&self) -> &Option<String>
pub fn get_direct_connect_gateway_id(&self) -> &Option<String>
The ID of the Direct Connect gateway.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags associated with the private virtual interface.
The tags associated with the private virtual interface.
The tags associated with the private virtual interface.
sourcepub fn enable_site_link(self, input: bool) -> Self
pub fn enable_site_link(self, input: bool) -> Self
Indicates whether to enable or disable SiteLink.
sourcepub fn set_enable_site_link(self, input: Option<bool>) -> Self
pub fn set_enable_site_link(self, input: Option<bool>) -> Self
Indicates whether to enable or disable SiteLink.
sourcepub fn get_enable_site_link(&self) -> &Option<bool>
pub fn get_enable_site_link(&self) -> &Option<bool>
Indicates whether to enable or disable SiteLink.
sourcepub fn build(self) -> Result<NewPrivateVirtualInterface, BuildError>
pub fn build(self) -> Result<NewPrivateVirtualInterface, BuildError>
Consumes the builder and constructs a NewPrivateVirtualInterface
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for NewPrivateVirtualInterfaceBuilder
impl Clone for NewPrivateVirtualInterfaceBuilder
source§fn clone(&self) -> NewPrivateVirtualInterfaceBuilder
fn clone(&self) -> NewPrivateVirtualInterfaceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for NewPrivateVirtualInterfaceBuilder
impl Default for NewPrivateVirtualInterfaceBuilder
source§fn default() -> NewPrivateVirtualInterfaceBuilder
fn default() -> NewPrivateVirtualInterfaceBuilder
source§impl PartialEq for NewPrivateVirtualInterfaceBuilder
impl PartialEq for NewPrivateVirtualInterfaceBuilder
source§fn eq(&self, other: &NewPrivateVirtualInterfaceBuilder) -> bool
fn eq(&self, other: &NewPrivateVirtualInterfaceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.