Struct aws_sdk_ec2::types::builders::ClientVpnRouteBuilder
source · #[non_exhaustive]pub struct ClientVpnRouteBuilder { /* private fields */ }
Expand description
A builder for ClientVpnRoute
.
Implementations§
source§impl ClientVpnRouteBuilder
impl ClientVpnRouteBuilder
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 with which the route is associated.
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 with which the route is associated.
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 with which the route is associated.
sourcepub fn destination_cidr(self, input: impl Into<String>) -> Self
pub fn destination_cidr(self, input: impl Into<String>) -> Self
The IPv4 address range, in CIDR notation, of the route destination.
sourcepub fn set_destination_cidr(self, input: Option<String>) -> Self
pub fn set_destination_cidr(self, input: Option<String>) -> Self
The IPv4 address range, in CIDR notation, of the route destination.
sourcepub fn get_destination_cidr(&self) -> &Option<String>
pub fn get_destination_cidr(&self) -> &Option<String>
The IPv4 address range, in CIDR notation, of the route destination.
sourcepub fn target_subnet(self, input: impl Into<String>) -> Self
pub fn target_subnet(self, input: impl Into<String>) -> Self
The ID of the subnet through which traffic is routed.
sourcepub fn set_target_subnet(self, input: Option<String>) -> Self
pub fn set_target_subnet(self, input: Option<String>) -> Self
The ID of the subnet through which traffic is routed.
sourcepub fn get_target_subnet(&self) -> &Option<String>
pub fn get_target_subnet(&self) -> &Option<String>
The ID of the subnet through which traffic is routed.
sourcepub fn origin(self, input: impl Into<String>) -> Self
pub fn origin(self, input: impl Into<String>) -> Self
Indicates how the route was associated with the Client VPN endpoint. associate
indicates that the route was automatically added when the target network was associated with the Client VPN endpoint. add-route
indicates that the route was manually added using the CreateClientVpnRoute action.
sourcepub fn set_origin(self, input: Option<String>) -> Self
pub fn set_origin(self, input: Option<String>) -> Self
Indicates how the route was associated with the Client VPN endpoint. associate
indicates that the route was automatically added when the target network was associated with the Client VPN endpoint. add-route
indicates that the route was manually added using the CreateClientVpnRoute action.
sourcepub fn get_origin(&self) -> &Option<String>
pub fn get_origin(&self) -> &Option<String>
Indicates how the route was associated with the Client VPN endpoint. associate
indicates that the route was automatically added when the target network was associated with the Client VPN endpoint. add-route
indicates that the route was manually added using the CreateClientVpnRoute action.
sourcepub fn status(self, input: ClientVpnRouteStatus) -> Self
pub fn status(self, input: ClientVpnRouteStatus) -> Self
The current state of the route.
sourcepub fn set_status(self, input: Option<ClientVpnRouteStatus>) -> Self
pub fn set_status(self, input: Option<ClientVpnRouteStatus>) -> Self
The current state of the route.
sourcepub fn get_status(&self) -> &Option<ClientVpnRouteStatus>
pub fn get_status(&self) -> &Option<ClientVpnRouteStatus>
The current state of the route.
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 build(self) -> ClientVpnRoute
pub fn build(self) -> ClientVpnRoute
Consumes the builder and constructs a ClientVpnRoute
.
Trait Implementations§
source§impl Clone for ClientVpnRouteBuilder
impl Clone for ClientVpnRouteBuilder
source§fn clone(&self) -> ClientVpnRouteBuilder
fn clone(&self) -> ClientVpnRouteBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClientVpnRouteBuilder
impl Debug for ClientVpnRouteBuilder
source§impl Default for ClientVpnRouteBuilder
impl Default for ClientVpnRouteBuilder
source§fn default() -> ClientVpnRouteBuilder
fn default() -> ClientVpnRouteBuilder
source§impl PartialEq<ClientVpnRouteBuilder> for ClientVpnRouteBuilder
impl PartialEq<ClientVpnRouteBuilder> for ClientVpnRouteBuilder
source§fn eq(&self, other: &ClientVpnRouteBuilder) -> bool
fn eq(&self, other: &ClientVpnRouteBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.