Struct aws_sdk_ec2::operation::create_client_vpn_route::builders::CreateClientVpnRouteInputBuilder
source · #[non_exhaustive]pub struct CreateClientVpnRouteInputBuilder { /* private fields */ }
Expand description
A builder for CreateClientVpnRouteInput
.
Implementations§
source§impl CreateClientVpnRouteInputBuilder
impl CreateClientVpnRouteInputBuilder
sourcepub fn client_vpn_endpoint_id(self, input: impl Into<String>) -> Self
pub fn client_vpn_endpoint_id(self, input: impl Into<String>) -> Self
The ID of the Client VPN endpoint to which to add the route.
sourcepub fn set_client_vpn_endpoint_id(self, input: Option<String>) -> Self
pub fn set_client_vpn_endpoint_id(self, input: Option<String>) -> Self
The ID of the Client VPN endpoint to which to add the route.
sourcepub fn get_client_vpn_endpoint_id(&self) -> &Option<String>
pub fn get_client_vpn_endpoint_id(&self) -> &Option<String>
The ID of the Client VPN endpoint to which to add the route.
sourcepub fn destination_cidr_block(self, input: impl Into<String>) -> Self
pub fn destination_cidr_block(self, input: impl Into<String>) -> Self
The IPv4 address range, in CIDR notation, of the route destination. For example:
-
To add a route for Internet access, enter
0.0.0.0/0
-
To add a route for a peered VPC, enter the peered VPC's IPv4 CIDR range
-
To add a route for an on-premises network, enter the Amazon Web Services Site-to-Site VPN connection's IPv4 CIDR range
-
To add a route for the local network, enter the client CIDR range
sourcepub fn set_destination_cidr_block(self, input: Option<String>) -> Self
pub fn set_destination_cidr_block(self, input: Option<String>) -> Self
The IPv4 address range, in CIDR notation, of the route destination. For example:
-
To add a route for Internet access, enter
0.0.0.0/0
-
To add a route for a peered VPC, enter the peered VPC's IPv4 CIDR range
-
To add a route for an on-premises network, enter the Amazon Web Services Site-to-Site VPN connection's IPv4 CIDR range
-
To add a route for the local network, enter the client CIDR range
sourcepub fn get_destination_cidr_block(&self) -> &Option<String>
pub fn get_destination_cidr_block(&self) -> &Option<String>
The IPv4 address range, in CIDR notation, of the route destination. For example:
-
To add a route for Internet access, enter
0.0.0.0/0
-
To add a route for a peered VPC, enter the peered VPC's IPv4 CIDR range
-
To add a route for an on-premises network, enter the Amazon Web Services Site-to-Site VPN connection's IPv4 CIDR range
-
To add a route for the local network, enter the client CIDR range
sourcepub fn target_vpc_subnet_id(self, input: impl Into<String>) -> Self
pub fn target_vpc_subnet_id(self, input: impl Into<String>) -> Self
The ID of the subnet through which you want to route traffic. The specified subnet must be an existing target network of the Client VPN endpoint.
Alternatively, if you're adding a route for the local network, specify local
.
sourcepub fn set_target_vpc_subnet_id(self, input: Option<String>) -> Self
pub fn set_target_vpc_subnet_id(self, input: Option<String>) -> Self
The ID of the subnet through which you want to route traffic. The specified subnet must be an existing target network of the Client VPN endpoint.
Alternatively, if you're adding a route for the local network, specify local
.
sourcepub fn get_target_vpc_subnet_id(&self) -> &Option<String>
pub fn get_target_vpc_subnet_id(&self) -> &Option<String>
The ID of the subnet through which you want to route traffic. The specified subnet must be an existing target network of the Client VPN endpoint.
Alternatively, if you're adding a route for the local network, specify local
.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A brief description of the route.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A brief description of the route.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A brief description of the route.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
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 build(self) -> Result<CreateClientVpnRouteInput, BuildError>
pub fn build(self) -> Result<CreateClientVpnRouteInput, BuildError>
Consumes the builder and constructs a CreateClientVpnRouteInput
.
source§impl CreateClientVpnRouteInputBuilder
impl CreateClientVpnRouteInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateClientVpnRouteOutput, SdkError<CreateClientVpnRouteError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateClientVpnRouteOutput, SdkError<CreateClientVpnRouteError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateClientVpnRouteInputBuilder
impl Clone for CreateClientVpnRouteInputBuilder
source§fn clone(&self) -> CreateClientVpnRouteInputBuilder
fn clone(&self) -> CreateClientVpnRouteInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateClientVpnRouteInputBuilder
impl Default for CreateClientVpnRouteInputBuilder
source§fn default() -> CreateClientVpnRouteInputBuilder
fn default() -> CreateClientVpnRouteInputBuilder
source§impl PartialEq<CreateClientVpnRouteInputBuilder> for CreateClientVpnRouteInputBuilder
impl PartialEq<CreateClientVpnRouteInputBuilder> for CreateClientVpnRouteInputBuilder
source§fn eq(&self, other: &CreateClientVpnRouteInputBuilder) -> bool
fn eq(&self, other: &CreateClientVpnRouteInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.