pub struct Builder { /* private fields */ }
Expand description
A builder for AwsEc2VpnConnectionDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn vpn_connection_id(self, input: impl Into<String>) -> Self
pub fn vpn_connection_id(self, input: impl Into<String>) -> Self
The identifier 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 identifier of the VPN connection.
sourcepub fn state(self, input: impl Into<String>) -> Self
pub fn state(self, input: impl Into<String>) -> Self
The current state of the VPN connection. Valid values are as follows:
-
available
-
deleted
-
deleting
-
pending
sourcepub fn set_state(self, input: Option<String>) -> Self
pub fn set_state(self, input: Option<String>) -> Self
The current state of the VPN connection. Valid values are as follows:
-
available
-
deleted
-
deleting
-
pending
sourcepub fn customer_gateway_id(self, input: impl Into<String>) -> Self
pub fn customer_gateway_id(self, input: impl Into<String>) -> Self
The identifier of the customer gateway that is 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 identifier of the customer gateway that is at your end of the VPN connection.
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.
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.
sourcepub fn vpn_gateway_id(self, input: impl Into<String>) -> Self
pub fn vpn_gateway_id(self, input: impl Into<String>) -> Self
The identifier of the virtual private gateway that is 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 identifier of the virtual private gateway that is at the Amazon Web Services side 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. VPN
indicates an Amazon Web Services VPN connection. 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. VPN
indicates an Amazon Web Services VPN connection. VPN-Classic
indicates an Amazon Web Services Classic VPN connection.
sourcepub fn vgw_telemetry(self, input: AwsEc2VpnConnectionVgwTelemetryDetails) -> Self
pub fn vgw_telemetry(self, input: AwsEc2VpnConnectionVgwTelemetryDetails) -> 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<AwsEc2VpnConnectionVgwTelemetryDetails>>
) -> Self
pub fn set_vgw_telemetry(
self,
input: Option<Vec<AwsEc2VpnConnectionVgwTelemetryDetails>>
) -> Self
Information about the VPN tunnel.
sourcepub fn options(self, input: AwsEc2VpnConnectionOptionsDetails) -> Self
pub fn options(self, input: AwsEc2VpnConnectionOptionsDetails) -> Self
The VPN connection options.
sourcepub fn set_options(
self,
input: Option<AwsEc2VpnConnectionOptionsDetails>
) -> Self
pub fn set_options(
self,
input: Option<AwsEc2VpnConnectionOptionsDetails>
) -> Self
The VPN connection options.
sourcepub fn routes(self, input: AwsEc2VpnConnectionRoutesDetails) -> Self
pub fn routes(self, input: AwsEc2VpnConnectionRoutesDetails) -> Self
Appends an item to routes
.
To override the contents of this collection use set_routes
.
The static routes that are associated with the VPN connection.
sourcepub fn set_routes(
self,
input: Option<Vec<AwsEc2VpnConnectionRoutesDetails>>
) -> Self
pub fn set_routes(
self,
input: Option<Vec<AwsEc2VpnConnectionRoutesDetails>>
) -> Self
The static routes that are associated with 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 identifier of the transit gateway that is 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 identifier of the transit gateway that is associated with the VPN connection.
sourcepub fn build(self) -> AwsEc2VpnConnectionDetails
pub fn build(self) -> AwsEc2VpnConnectionDetails
Consumes the builder and constructs a AwsEc2VpnConnectionDetails
.