Struct aws_sdk_ec2::model::vpn_connection::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for VpnConnection
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn customer_gateway_configuration(self, input: impl Into<String>) -> Self
pub fn customer_gateway_configuration(self, input: impl Into<String>) -> Self
The configuration information for the VPN connection's customer gateway (in the native XML format). This element is always present in the CreateVpnConnection
response; however, it's present in the DescribeVpnConnections
response only if the VPN connection is in the pending
or available
state.
sourcepub fn set_customer_gateway_configuration(self, input: Option<String>) -> Self
pub fn set_customer_gateway_configuration(self, input: Option<String>) -> Self
The configuration information for the VPN connection's customer gateway (in the native XML format). This element is always present in the CreateVpnConnection
response; however, it's present in the DescribeVpnConnections
response only if the VPN connection is in the pending
or available
state.
sourcepub fn customer_gateway_id(self, input: impl Into<String>) -> Self
pub fn customer_gateway_id(self, input: impl Into<String>) -> Self
The ID of the customer gateway at your end of the VPN connection.
sourcepub fn set_customer_gateway_id(self, input: Option<String>) -> Self
pub fn set_customer_gateway_id(self, input: Option<String>) -> Self
The ID of the customer gateway at your end of the VPN connection.
sourcepub fn category(self, input: impl Into<String>) -> Self
pub fn category(self, input: impl Into<String>) -> Self
The category of the VPN connection. A value of VPN
indicates an Amazon Web Services VPN connection. A value of VPN-Classic
indicates an Amazon Web Services Classic VPN connection.
sourcepub fn set_category(self, input: Option<String>) -> Self
pub fn set_category(self, input: Option<String>) -> Self
The category of the VPN connection. A value of VPN
indicates an Amazon Web Services VPN connection. A value of VPN-Classic
indicates an Amazon Web Services Classic VPN connection.
sourcepub fn set_state(self, input: Option<VpnState>) -> Self
pub fn set_state(self, input: Option<VpnState>) -> Self
The current state of the VPN connection.
sourcepub fn type(self, input: GatewayType) -> Self
pub fn type(self, input: GatewayType) -> Self
The type of VPN connection.
sourcepub fn set_type(self, input: Option<GatewayType>) -> Self
pub fn set_type(self, input: Option<GatewayType>) -> Self
The type of VPN connection.
sourcepub fn vpn_connection_id(self, input: impl Into<String>) -> Self
pub fn vpn_connection_id(self, input: impl Into<String>) -> Self
The ID of the VPN connection.
sourcepub fn set_vpn_connection_id(self, input: Option<String>) -> Self
pub fn set_vpn_connection_id(self, input: Option<String>) -> Self
The ID of the VPN connection.
sourcepub fn vpn_gateway_id(self, input: impl Into<String>) -> Self
pub fn vpn_gateway_id(self, input: impl Into<String>) -> Self
The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection.
sourcepub fn set_vpn_gateway_id(self, input: Option<String>) -> Self
pub fn set_vpn_gateway_id(self, input: Option<String>) -> Self
The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection.
sourcepub fn transit_gateway_id(self, input: impl Into<String>) -> Self
pub fn transit_gateway_id(self, input: impl Into<String>) -> Self
The ID of the transit gateway associated with the VPN connection.
sourcepub fn set_transit_gateway_id(self, input: Option<String>) -> Self
pub fn set_transit_gateway_id(self, input: Option<String>) -> Self
The ID of the transit gateway associated with the VPN connection.
sourcepub fn core_network_arn(self, input: impl Into<String>) -> Self
pub fn core_network_arn(self, input: impl Into<String>) -> Self
The ARN of the core network.
sourcepub fn set_core_network_arn(self, input: Option<String>) -> Self
pub fn set_core_network_arn(self, input: Option<String>) -> Self
The ARN of the core network.
sourcepub fn core_network_attachment_arn(self, input: impl Into<String>) -> Self
pub fn core_network_attachment_arn(self, input: impl Into<String>) -> Self
The ARN of the core network attachment.
sourcepub fn set_core_network_attachment_arn(self, input: Option<String>) -> Self
pub fn set_core_network_attachment_arn(self, input: Option<String>) -> Self
The ARN of the core network attachment.
sourcepub fn gateway_association_state(self, input: GatewayAssociationState) -> Self
pub fn gateway_association_state(self, input: GatewayAssociationState) -> Self
The current state of the gateway association.
sourcepub fn set_gateway_association_state(
self,
input: Option<GatewayAssociationState>
) -> Self
pub fn set_gateway_association_state(
self,
input: Option<GatewayAssociationState>
) -> Self
The current state of the gateway association.
sourcepub fn options(self, input: VpnConnectionOptions) -> Self
pub fn options(self, input: VpnConnectionOptions) -> Self
The VPN connection options.
sourcepub fn set_options(self, input: Option<VpnConnectionOptions>) -> Self
pub fn set_options(self, input: Option<VpnConnectionOptions>) -> Self
The VPN connection options.
sourcepub fn routes(self, input: VpnStaticRoute) -> Self
pub fn routes(self, input: VpnStaticRoute) -> Self
Appends an item to routes
.
To override the contents of this collection use set_routes
.
The static routes associated with the VPN connection.
sourcepub fn set_routes(self, input: Option<Vec<VpnStaticRoute>>) -> Self
pub fn set_routes(self, input: Option<Vec<VpnStaticRoute>>) -> Self
The static routes associated with the VPN connection.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Any tags assigned to the VPN connection.
Any tags assigned to the VPN connection.
sourcepub fn vgw_telemetry(self, input: VgwTelemetry) -> Self
pub fn vgw_telemetry(self, input: VgwTelemetry) -> Self
Appends an item to vgw_telemetry
.
To override the contents of this collection use set_vgw_telemetry
.
Information about the VPN tunnel.
sourcepub fn set_vgw_telemetry(self, input: Option<Vec<VgwTelemetry>>) -> Self
pub fn set_vgw_telemetry(self, input: Option<Vec<VgwTelemetry>>) -> Self
Information about the VPN tunnel.
sourcepub fn build(self) -> VpnConnection
pub fn build(self) -> VpnConnection
Consumes the builder and constructs a VpnConnection
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more