Struct aws_sdk_ec2::model::client_vpn_endpoint::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for ClientVpnEndpoint
.
Implementations
sourceimpl 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.
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.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A brief description of the endpoint.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A brief description of the endpoint.
sourcepub fn status(self, input: ClientVpnEndpointStatus) -> Self
pub fn status(self, input: ClientVpnEndpointStatus) -> Self
The current state of the Client VPN endpoint.
sourcepub fn set_status(self, input: Option<ClientVpnEndpointStatus>) -> Self
pub fn set_status(self, input: Option<ClientVpnEndpointStatus>) -> Self
The current state of the Client VPN endpoint.
sourcepub fn creation_time(self, input: impl Into<String>) -> Self
pub fn creation_time(self, input: impl Into<String>) -> Self
The date and time the Client VPN endpoint was created.
sourcepub fn set_creation_time(self, input: Option<String>) -> Self
pub fn set_creation_time(self, input: Option<String>) -> Self
The date and time the Client VPN endpoint was created.
sourcepub fn deletion_time(self, input: impl Into<String>) -> Self
pub fn deletion_time(self, input: impl Into<String>) -> Self
The date and time the Client VPN endpoint was deleted, if applicable.
sourcepub fn set_deletion_time(self, input: Option<String>) -> Self
pub fn set_deletion_time(self, input: Option<String>) -> Self
The date and time the Client VPN endpoint was deleted, if applicable.
sourcepub fn dns_name(self, input: impl Into<String>) -> Self
pub fn dns_name(self, input: impl Into<String>) -> Self
The DNS name to be used by clients when connecting to the Client VPN endpoint.
sourcepub fn set_dns_name(self, input: Option<String>) -> Self
pub fn set_dns_name(self, input: Option<String>) -> Self
The DNS name to be used by clients when connecting to the Client VPN endpoint.
sourcepub fn client_cidr_block(self, input: impl Into<String>) -> Self
pub fn client_cidr_block(self, input: impl Into<String>) -> Self
The IPv4 address range, in CIDR notation, from which client IP addresses are assigned.
sourcepub fn set_client_cidr_block(self, input: Option<String>) -> Self
pub fn set_client_cidr_block(self, input: Option<String>) -> Self
The IPv4 address range, in CIDR notation, from which client IP addresses are assigned.
sourcepub fn dns_servers(self, input: impl Into<String>) -> Self
pub fn dns_servers(self, input: impl Into<String>) -> Self
Appends an item to dns_servers
.
To override the contents of this collection use set_dns_servers
.
Information about the DNS servers to be used for DNS resolution.
sourcepub fn set_dns_servers(self, input: Option<Vec<String>>) -> Self
pub fn set_dns_servers(self, input: Option<Vec<String>>) -> Self
Information about the DNS servers to be used for DNS resolution.
sourcepub fn split_tunnel(self, input: bool) -> Self
pub fn split_tunnel(self, input: bool) -> Self
Indicates whether split-tunnel is enabled in the Client VPN endpoint.
For information about split-tunnel VPN endpoints, see Split-Tunnel Client VPN endpoint in the Client VPN Administrator Guide.
sourcepub fn set_split_tunnel(self, input: Option<bool>) -> Self
pub fn set_split_tunnel(self, input: Option<bool>) -> Self
Indicates whether split-tunnel is enabled in the Client VPN endpoint.
For information about split-tunnel VPN endpoints, see Split-Tunnel Client VPN endpoint in the Client VPN Administrator Guide.
sourcepub fn vpn_protocol(self, input: VpnProtocol) -> Self
pub fn vpn_protocol(self, input: VpnProtocol) -> Self
The protocol used by the VPN session.
sourcepub fn set_vpn_protocol(self, input: Option<VpnProtocol>) -> Self
pub fn set_vpn_protocol(self, input: Option<VpnProtocol>) -> Self
The protocol used by the VPN session.
sourcepub fn transport_protocol(self, input: TransportProtocol) -> Self
pub fn transport_protocol(self, input: TransportProtocol) -> Self
The transport protocol used by the Client VPN endpoint.
sourcepub fn set_transport_protocol(self, input: Option<TransportProtocol>) -> Self
pub fn set_transport_protocol(self, input: Option<TransportProtocol>) -> Self
The transport protocol used by the Client VPN endpoint.
sourcepub fn set_vpn_port(self, input: Option<i32>) -> Self
pub fn set_vpn_port(self, input: Option<i32>) -> Self
The port number for the Client VPN endpoint.
sourcepub fn associated_target_networks(self, input: AssociatedTargetNetwork) -> Self
pub fn associated_target_networks(self, input: AssociatedTargetNetwork) -> Self
Appends an item to associated_target_networks
.
To override the contents of this collection use set_associated_target_networks
.
Information about the associated target networks. A target network is a subnet in a VPC.
sourcepub fn set_associated_target_networks(
self,
input: Option<Vec<AssociatedTargetNetwork>>
) -> Self
pub fn set_associated_target_networks(
self,
input: Option<Vec<AssociatedTargetNetwork>>
) -> Self
Information about the associated target networks. A target network is a subnet in a VPC.
sourcepub fn server_certificate_arn(self, input: impl Into<String>) -> Self
pub fn server_certificate_arn(self, input: impl Into<String>) -> Self
The ARN of the server certificate.
sourcepub fn set_server_certificate_arn(self, input: Option<String>) -> Self
pub fn set_server_certificate_arn(self, input: Option<String>) -> Self
The ARN of the server certificate.
sourcepub fn authentication_options(self, input: ClientVpnAuthentication) -> Self
pub fn authentication_options(self, input: ClientVpnAuthentication) -> Self
Appends an item to authentication_options
.
To override the contents of this collection use set_authentication_options
.
Information about the authentication method used by the Client VPN endpoint.
sourcepub fn set_authentication_options(
self,
input: Option<Vec<ClientVpnAuthentication>>
) -> Self
pub fn set_authentication_options(
self,
input: Option<Vec<ClientVpnAuthentication>>
) -> Self
Information about the authentication method used by the Client VPN endpoint.
sourcepub fn connection_log_options(self, input: ConnectionLogResponseOptions) -> Self
pub fn connection_log_options(self, input: ConnectionLogResponseOptions) -> Self
Information about the client connection logging options for the Client VPN endpoint.
sourcepub fn set_connection_log_options(
self,
input: Option<ConnectionLogResponseOptions>
) -> Self
pub fn set_connection_log_options(
self,
input: Option<ConnectionLogResponseOptions>
) -> Self
Information about the client connection logging options for the Client VPN endpoint.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Any tags assigned to the Client VPN endpoint.
Any tags assigned to the Client VPN endpoint.
sourcepub fn security_group_ids(self, input: impl Into<String>) -> Self
pub fn security_group_ids(self, input: impl Into<String>) -> Self
Appends an item to security_group_ids
.
To override the contents of this collection use set_security_group_ids
.
The IDs of the security groups for the target network.
sourcepub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
The IDs of the security groups for the target network.
sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The ID of the VPC.
sourcepub fn self_service_portal_url(self, input: impl Into<String>) -> Self
pub fn self_service_portal_url(self, input: impl Into<String>) -> Self
The URL of the self-service portal.
sourcepub fn set_self_service_portal_url(self, input: Option<String>) -> Self
pub fn set_self_service_portal_url(self, input: Option<String>) -> Self
The URL of the self-service portal.
sourcepub fn client_connect_options(self, input: ClientConnectResponseOptions) -> Self
pub fn client_connect_options(self, input: ClientConnectResponseOptions) -> Self
The options for managing connection authorization for new client connections.
sourcepub fn set_client_connect_options(
self,
input: Option<ClientConnectResponseOptions>
) -> Self
pub fn set_client_connect_options(
self,
input: Option<ClientConnectResponseOptions>
) -> Self
The options for managing connection authorization for new client connections.
sourcepub fn session_timeout_hours(self, input: i32) -> Self
pub fn session_timeout_hours(self, input: i32) -> Self
The maximum VPN session duration time in hours.
Valid values: 8 | 10 | 12 | 24
Default value: 24
sourcepub fn set_session_timeout_hours(self, input: Option<i32>) -> Self
pub fn set_session_timeout_hours(self, input: Option<i32>) -> Self
The maximum VPN session duration time in hours.
Valid values: 8 | 10 | 12 | 24
Default value: 24
Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established.
Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established.
sourcepub fn build(self) -> ClientVpnEndpoint
pub fn build(self) -> ClientVpnEndpoint
Consumes the builder and constructs a ClientVpnEndpoint
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more