#[non_exhaustive]
pub struct CreatePrivateVirtualInterfaceOutputBuilder { /* private fields */ }
Expand description

Implementations§

source§

impl CreatePrivateVirtualInterfaceOutputBuilder

source

pub fn owner_account(self, input: impl Into<String>) -> Self

The ID of the Amazon Web Services account that owns the virtual interface.

source

pub fn set_owner_account(self, input: Option<String>) -> Self

The ID of the Amazon Web Services account that owns the virtual interface.

source

pub fn virtual_interface_id(self, input: impl Into<String>) -> Self

The ID of the virtual interface.

source

pub fn set_virtual_interface_id(self, input: Option<String>) -> Self

The ID of the virtual interface.

source

pub fn location(self, input: impl Into<String>) -> Self

The location of the connection.

source

pub fn set_location(self, input: Option<String>) -> Self

The location of the connection.

source

pub fn connection_id(self, input: impl Into<String>) -> Self

The ID of the connection.

source

pub fn set_connection_id(self, input: Option<String>) -> Self

The ID of the connection.

source

pub fn virtual_interface_type(self, input: impl Into<String>) -> Self

The type of virtual interface. The possible values are private and public.

source

pub fn set_virtual_interface_type(self, input: Option<String>) -> Self

The type of virtual interface. The possible values are private and public.

source

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 (-).

source

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 (-).

source

pub fn vlan(self, input: i32) -> Self

The ID of the VLAN.

source

pub fn set_vlan(self, input: Option<i32>) -> Self

The ID of the VLAN.

source

pub fn asn(self, input: i32) -> Self

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

The valid values are 1-2147483647.

source

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.

source

pub fn amazon_side_asn(self, input: i64) -> Self

The autonomous system number (ASN) for the Amazon side of the connection.

source

pub fn set_amazon_side_asn(self, input: Option<i64>) -> Self

The autonomous system number (ASN) for the Amazon side of the connection.

source

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.

source

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.

source

pub fn amazon_address(self, input: impl Into<String>) -> Self

The IP address assigned to the Amazon interface.

source

pub fn set_amazon_address(self, input: Option<String>) -> Self

The IP address assigned to the Amazon interface.

source

pub fn customer_address(self, input: impl Into<String>) -> Self

The IP address assigned to the customer interface.

source

pub fn set_customer_address(self, input: Option<String>) -> Self

The IP address assigned to the customer interface.

source

pub fn address_family(self, input: AddressFamily) -> Self

The address family for the BGP peer.

source

pub fn set_address_family(self, input: Option<AddressFamily>) -> Self

The address family for the BGP peer.

source

pub fn virtual_interface_state(self, input: VirtualInterfaceState) -> Self

The state of the virtual interface. The following are the possible values:

  • confirming: 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.

  • verifying: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.

  • pending: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.

  • available: A virtual interface that is able to forward traffic.

  • down: A virtual interface that is BGP down.

  • deleting: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.

  • deleted: A virtual interface that cannot forward traffic.

  • rejected: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the Confirming state is deleted by the virtual interface owner, the virtual interface enters the Rejected state.

  • unknown: The state of the virtual interface is not available.

source

pub fn set_virtual_interface_state( self, input: Option<VirtualInterfaceState> ) -> Self

The state of the virtual interface. The following are the possible values:

  • confirming: 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.

  • verifying: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.

  • pending: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.

  • available: A virtual interface that is able to forward traffic.

  • down: A virtual interface that is BGP down.

  • deleting: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.

  • deleted: A virtual interface that cannot forward traffic.

  • rejected: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the Confirming state is deleted by the virtual interface owner, the virtual interface enters the Rejected state.

  • unknown: The state of the virtual interface is not available.

source

pub fn customer_router_config(self, input: impl Into<String>) -> Self

The customer router configuration.

source

pub fn set_customer_router_config(self, input: Option<String>) -> Self

The customer router configuration.

source

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

source

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

source

pub fn jumbo_frame_capable(self, input: bool) -> Self

Indicates whether jumbo frames (9001 MTU) are supported.

source

pub fn set_jumbo_frame_capable(self, input: Option<bool>) -> Self

Indicates whether jumbo frames (9001 MTU) are supported.

source

pub fn virtual_gateway_id(self, input: impl Into<String>) -> Self

The ID of the virtual private gateway. Applies only to private virtual interfaces.

source

pub fn set_virtual_gateway_id(self, input: Option<String>) -> Self

The ID of the virtual private gateway. Applies only to private virtual interfaces.

source

pub fn direct_connect_gateway_id(self, input: impl Into<String>) -> Self

The ID of the Direct Connect gateway.

source

pub fn set_direct_connect_gateway_id(self, input: Option<String>) -> Self

The ID of the Direct Connect gateway.

source

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.

source

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.

source

pub fn bgp_peers(self, input: BgpPeer) -> Self

Appends an item to bgp_peers.

To override the contents of this collection use set_bgp_peers.

The BGP peers configured on this virtual interface.

source

pub fn set_bgp_peers(self, input: Option<Vec<BgpPeer>>) -> Self

The BGP peers configured on this virtual interface.

source

pub fn region(self, input: impl Into<String>) -> Self

The Amazon Web Services Region where the virtual interface is located.

source

pub fn set_region(self, input: Option<String>) -> Self

The Amazon Web Services Region where the virtual interface is located.

source

pub fn aws_device_v2(self, input: impl Into<String>) -> Self

The Direct Connect endpoint that terminates the physical connection.

source

pub fn set_aws_device_v2(self, input: Option<String>) -> Self

The Direct Connect endpoint that terminates the physical connection.

source

pub fn aws_logical_device_id(self, input: impl Into<String>) -> Self

The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.

source

pub fn set_aws_logical_device_id(self, input: Option<String>) -> Self

The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.

source

pub fn tags(self, input: Tag) -> Self

Appends an item to tags.

To override the contents of this collection use set_tags.

The tags associated with the virtual interface.

source

pub fn set_tags(self, input: Option<Vec<Tag>>) -> Self

The tags associated with the virtual interface.

Indicates whether SiteLink is enabled.

Indicates whether SiteLink is enabled.

source

pub fn build(self) -> CreatePrivateVirtualInterfaceOutput

Consumes the builder and constructs a CreatePrivateVirtualInterfaceOutput.

Trait Implementations§

source§

impl Clone for CreatePrivateVirtualInterfaceOutputBuilder

source§

fn clone(&self) -> CreatePrivateVirtualInterfaceOutputBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CreatePrivateVirtualInterfaceOutputBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for CreatePrivateVirtualInterfaceOutputBuilder

source§

fn default() -> CreatePrivateVirtualInterfaceOutputBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq<CreatePrivateVirtualInterfaceOutputBuilder> for CreatePrivateVirtualInterfaceOutputBuilder

source§

fn eq(&self, other: &CreatePrivateVirtualInterfaceOutputBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for CreatePrivateVirtualInterfaceOutputBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more