Struct aws_sdk_ec2::operation::terminate_client_vpn_connections::builders::TerminateClientVpnConnectionsInputBuilder
source · #[non_exhaustive]pub struct TerminateClientVpnConnectionsInputBuilder { /* private fields */ }
Expand description
A builder for TerminateClientVpnConnectionsInput
.
Implementations§
source§impl TerminateClientVpnConnectionsInputBuilder
impl TerminateClientVpnConnectionsInputBuilder
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 the client is connected.
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 the client is connected.
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 the client is connected.
sourcepub fn connection_id(self, input: impl Into<String>) -> Self
pub fn connection_id(self, input: impl Into<String>) -> Self
The ID of the client connection to be terminated.
sourcepub fn set_connection_id(self, input: Option<String>) -> Self
pub fn set_connection_id(self, input: Option<String>) -> Self
The ID of the client connection to be terminated.
sourcepub fn get_connection_id(&self) -> &Option<String>
pub fn get_connection_id(&self) -> &Option<String>
The ID of the client connection to be terminated.
sourcepub fn username(self, input: impl Into<String>) -> Self
pub fn username(self, input: impl Into<String>) -> Self
The name of the user who initiated the connection. Use this option to terminate all active connections for the specified user. This option can only be used if the user has established up to five connections.
sourcepub fn set_username(self, input: Option<String>) -> Self
pub fn set_username(self, input: Option<String>) -> Self
The name of the user who initiated the connection. Use this option to terminate all active connections for the specified user. This option can only be used if the user has established up to five connections.
sourcepub fn get_username(&self) -> &Option<String>
pub fn get_username(&self) -> &Option<String>
The name of the user who initiated the connection. Use this option to terminate all active connections for the specified user. This option can only be used if the user has established up to five connections.
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<TerminateClientVpnConnectionsInput, BuildError>
pub fn build(self) -> Result<TerminateClientVpnConnectionsInput, BuildError>
Consumes the builder and constructs a TerminateClientVpnConnectionsInput
.
source§impl TerminateClientVpnConnectionsInputBuilder
impl TerminateClientVpnConnectionsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<TerminateClientVpnConnectionsOutput, SdkError<TerminateClientVpnConnectionsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<TerminateClientVpnConnectionsOutput, SdkError<TerminateClientVpnConnectionsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for TerminateClientVpnConnectionsInputBuilder
impl Clone for TerminateClientVpnConnectionsInputBuilder
source§fn clone(&self) -> TerminateClientVpnConnectionsInputBuilder
fn clone(&self) -> TerminateClientVpnConnectionsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TerminateClientVpnConnectionsInputBuilder
impl Default for TerminateClientVpnConnectionsInputBuilder
source§fn default() -> TerminateClientVpnConnectionsInputBuilder
fn default() -> TerminateClientVpnConnectionsInputBuilder
source§impl PartialEq<TerminateClientVpnConnectionsInputBuilder> for TerminateClientVpnConnectionsInputBuilder
impl PartialEq<TerminateClientVpnConnectionsInputBuilder> for TerminateClientVpnConnectionsInputBuilder
source§fn eq(&self, other: &TerminateClientVpnConnectionsInputBuilder) -> bool
fn eq(&self, other: &TerminateClientVpnConnectionsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.