Struct aws_sdk_ec2::operation::create_vpn_connection::builders::CreateVpnConnectionInputBuilder
source · #[non_exhaustive]pub struct CreateVpnConnectionInputBuilder { /* private fields */ }
Expand description
A builder for CreateVpnConnectionInput
.
Implementations§
source§impl CreateVpnConnectionInputBuilder
impl CreateVpnConnectionInputBuilder
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 get_customer_gateway_id(&self) -> &Option<String>
pub fn get_customer_gateway_id(&self) -> &Option<String>
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 get_vpn_gateway_id(&self) -> &Option<String>
pub fn get_vpn_gateway_id(&self) -> &Option<String>
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 get_transit_gateway_id(&self) -> &Option<String>
pub fn get_transit_gateway_id(&self) -> &Option<String>
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 get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
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 get_options(&self) -> &Option<VpnConnectionOptionsSpecification>
pub fn get_options(&self) -> &Option<VpnConnectionOptionsSpecification>
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 get_tag_specifications(&self) -> &Option<Vec<TagSpecification>>
pub fn get_tag_specifications(&self) -> &Option<Vec<TagSpecification>>
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
.
source§impl CreateVpnConnectionInputBuilder
impl CreateVpnConnectionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateVpnConnectionOutput, SdkError<CreateVpnConnectionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateVpnConnectionOutput, SdkError<CreateVpnConnectionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateVpnConnectionInputBuilder
impl Clone for CreateVpnConnectionInputBuilder
source§fn clone(&self) -> CreateVpnConnectionInputBuilder
fn clone(&self) -> CreateVpnConnectionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateVpnConnectionInputBuilder
impl Default for CreateVpnConnectionInputBuilder
source§fn default() -> CreateVpnConnectionInputBuilder
fn default() -> CreateVpnConnectionInputBuilder
source§impl PartialEq<CreateVpnConnectionInputBuilder> for CreateVpnConnectionInputBuilder
impl PartialEq<CreateVpnConnectionInputBuilder> for CreateVpnConnectionInputBuilder
source§fn eq(&self, other: &CreateVpnConnectionInputBuilder) -> bool
fn eq(&self, other: &CreateVpnConnectionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.