Struct aws_sdk_iotsecuretunneling::operation::open_tunnel::builders::OpenTunnelFluentBuilder
source · pub struct OpenTunnelFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to OpenTunnel
.
Creates a new tunnel, and returns two client access tokens for clients to use to connect to the IoT Secure Tunneling proxy server.
Requires permission to access the OpenTunnel action.
Implementations§
source§impl OpenTunnelFluentBuilder
impl OpenTunnelFluentBuilder
sourcepub fn as_input(&self) -> &OpenTunnelInputBuilder
pub fn as_input(&self) -> &OpenTunnelInputBuilder
Access the OpenTunnel as a reference.
sourcepub async fn send(
self
) -> Result<OpenTunnelOutput, SdkError<OpenTunnelError, HttpResponse>>
pub async fn send( self ) -> Result<OpenTunnelOutput, SdkError<OpenTunnelError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<OpenTunnelOutput, OpenTunnelError, Self>
pub fn customize( self ) -> CustomizableOperation<OpenTunnelOutput, OpenTunnelError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A short text description of the tunnel.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A short text description of the tunnel.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A short text description of the tunnel.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
A collection of tag metadata.
A collection of tag metadata.
A collection of tag metadata.
sourcepub fn destination_config(self, input: DestinationConfig) -> Self
pub fn destination_config(self, input: DestinationConfig) -> Self
The destination configuration for the OpenTunnel request.
sourcepub fn set_destination_config(self, input: Option<DestinationConfig>) -> Self
pub fn set_destination_config(self, input: Option<DestinationConfig>) -> Self
The destination configuration for the OpenTunnel request.
sourcepub fn get_destination_config(&self) -> &Option<DestinationConfig>
pub fn get_destination_config(&self) -> &Option<DestinationConfig>
The destination configuration for the OpenTunnel request.
sourcepub fn timeout_config(self, input: TimeoutConfig) -> Self
pub fn timeout_config(self, input: TimeoutConfig) -> Self
Timeout configuration for a tunnel.
sourcepub fn set_timeout_config(self, input: Option<TimeoutConfig>) -> Self
pub fn set_timeout_config(self, input: Option<TimeoutConfig>) -> Self
Timeout configuration for a tunnel.
sourcepub fn get_timeout_config(&self) -> &Option<TimeoutConfig>
pub fn get_timeout_config(&self) -> &Option<TimeoutConfig>
Timeout configuration for a tunnel.
Trait Implementations§
source§impl Clone for OpenTunnelFluentBuilder
impl Clone for OpenTunnelFluentBuilder
source§fn clone(&self) -> OpenTunnelFluentBuilder
fn clone(&self) -> OpenTunnelFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for OpenTunnelFluentBuilder
impl !RefUnwindSafe for OpenTunnelFluentBuilder
impl Send for OpenTunnelFluentBuilder
impl Sync for OpenTunnelFluentBuilder
impl Unpin for OpenTunnelFluentBuilder
impl !UnwindSafe for OpenTunnelFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more