Struct aws_sdk_apigatewaymanagement::operation::post_to_connection::builders::PostToConnectionFluentBuilder
source · pub struct PostToConnectionFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to PostToConnection.
Sends the provided data to the specified connection.
Implementations§
source§impl PostToConnectionFluentBuilder
impl PostToConnectionFluentBuilder
sourcepub fn as_input(&self) -> &PostToConnectionInputBuilder
pub fn as_input(&self) -> &PostToConnectionInputBuilder
Access the PostToConnection as a reference.
sourcepub async fn send(
self
) -> Result<PostToConnectionOutput, SdkError<PostToConnectionError, HttpResponse>>
pub async fn send( self ) -> Result<PostToConnectionOutput, SdkError<PostToConnectionError, 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<PostToConnectionOutput, PostToConnectionError, Self>
pub fn customize( self ) -> CustomizableOperation<PostToConnectionOutput, PostToConnectionError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn data(self, input: Blob) -> Self
pub fn data(self, input: Blob) -> Self
The data to be sent to the client specified by its connection id.
sourcepub fn set_data(self, input: Option<Blob>) -> Self
pub fn set_data(self, input: Option<Blob>) -> Self
The data to be sent to the client specified by its connection id.
sourcepub fn get_data(&self) -> &Option<Blob>
pub fn get_data(&self) -> &Option<Blob>
The data to be sent to the client specified by its connection id.
sourcepub fn connection_id(self, input: impl Into<String>) -> Self
pub fn connection_id(self, input: impl Into<String>) -> Self
The identifier of the connection that a specific client is using.
sourcepub fn set_connection_id(self, input: Option<String>) -> Self
pub fn set_connection_id(self, input: Option<String>) -> Self
The identifier of the connection that a specific client is using.
sourcepub fn get_connection_id(&self) -> &Option<String>
pub fn get_connection_id(&self) -> &Option<String>
The identifier of the connection that a specific client is using.
Trait Implementations§
source§impl Clone for PostToConnectionFluentBuilder
impl Clone for PostToConnectionFluentBuilder
source§fn clone(&self) -> PostToConnectionFluentBuilder
fn clone(&self) -> PostToConnectionFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more