#[non_exhaustive]pub struct NewPublicVirtualInterfaceBuilder { /* private fields */ }
Expand description
A builder for NewPublicVirtualInterface
.
Implementations§
source§impl NewPublicVirtualInterfaceBuilder
impl NewPublicVirtualInterfaceBuilder
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 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 route_filter_prefixes(self, input: RouteFilterPrefix) -> Self
pub fn route_filter_prefixes(self, input: RouteFilterPrefix) -> Self
Appends an item to route_filter_prefixes
.
To override the contents of this collection use set_route_filter_prefixes
.
The routes to be advertised to the Amazon Web Services network in this Region. Applies to public virtual interfaces.
sourcepub fn set_route_filter_prefixes(
self,
input: Option<Vec<RouteFilterPrefix>>
) -> Self
pub fn set_route_filter_prefixes( self, input: Option<Vec<RouteFilterPrefix>> ) -> Self
The routes to be advertised to the Amazon Web Services network in this Region. Applies to public virtual interfaces.
sourcepub fn get_route_filter_prefixes(&self) -> &Option<Vec<RouteFilterPrefix>>
pub fn get_route_filter_prefixes(&self) -> &Option<Vec<RouteFilterPrefix>>
The routes to be advertised to the Amazon Web Services network in this Region. Applies to public virtual interfaces.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags associated with the public virtual interface.
The tags associated with the public virtual interface.
The tags associated with the public virtual interface.
sourcepub fn build(self) -> Result<NewPublicVirtualInterface, BuildError>
pub fn build(self) -> Result<NewPublicVirtualInterface, BuildError>
Consumes the builder and constructs a NewPublicVirtualInterface
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for NewPublicVirtualInterfaceBuilder
impl Clone for NewPublicVirtualInterfaceBuilder
source§fn clone(&self) -> NewPublicVirtualInterfaceBuilder
fn clone(&self) -> NewPublicVirtualInterfaceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for NewPublicVirtualInterfaceBuilder
impl Default for NewPublicVirtualInterfaceBuilder
source§fn default() -> NewPublicVirtualInterfaceBuilder
fn default() -> NewPublicVirtualInterfaceBuilder
source§impl PartialEq for NewPublicVirtualInterfaceBuilder
impl PartialEq for NewPublicVirtualInterfaceBuilder
source§fn eq(&self, other: &NewPublicVirtualInterfaceBuilder) -> bool
fn eq(&self, other: &NewPublicVirtualInterfaceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.