Struct aws_sdk_ec2::model::client_vpn_route::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ClientVpnRoute
.
Implementations§
source§impl Builder
impl Builder
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 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 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 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 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 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 build(self) -> ClientVpnRoute
pub fn build(self) -> ClientVpnRoute
Consumes the builder and constructs a ClientVpnRoute
.