Struct aws_sdk_ec2::input::create_vpn_connection_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CreateVpnConnectionInput
.
Implementations§
source§impl Builder
impl Builder
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.
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.
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. If you specify a virtual private gateway, you cannot specify a transit gateway.
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. If you specify a virtual private gateway, you cannot specify a transit gateway.
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. If you specify a transit gateway, you cannot specify a virtual private gateway.
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. If you specify a transit gateway, you cannot specify a virtual private gateway.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn options(self, input: VpnConnectionOptionsSpecification) -> Self
pub fn options(self, input: VpnConnectionOptionsSpecification) -> Self
The options for the VPN connection.
sourcepub fn set_options(
self,
input: Option<VpnConnectionOptionsSpecification>
) -> Self
pub fn set_options(
self,
input: Option<VpnConnectionOptionsSpecification>
) -> Self
The options for the VPN connection.
sourcepub fn tag_specifications(self, input: TagSpecification) -> Self
pub fn tag_specifications(self, input: TagSpecification) -> Self
Appends an item to tag_specifications
.
To override the contents of this collection use set_tag_specifications
.
The tags to apply to the VPN connection.
sourcepub fn set_tag_specifications(self, input: Option<Vec<TagSpecification>>) -> Self
pub fn set_tag_specifications(self, input: Option<Vec<TagSpecification>>) -> Self
The tags to apply to the VPN connection.
sourcepub fn build(self) -> Result<CreateVpnConnectionInput, BuildError>
pub fn build(self) -> Result<CreateVpnConnectionInput, BuildError>
Consumes the builder and constructs a CreateVpnConnectionInput
.