pub struct PostToConnection { /* private fields */ }Expand description
Fluent builder constructing a request to PostToConnection.
Sends the provided data to the specified connection.
Implementations
sourceimpl PostToConnection
impl PostToConnection
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<PostToConnection, AwsResponseRetryClassifier>, SdkError<PostToConnectionError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<PostToConnection, AwsResponseRetryClassifier>, SdkError<PostToConnectionError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<PostToConnectionOutput, SdkError<PostToConnectionError>>
pub async fn send(
self
) -> Result<PostToConnectionOutput, SdkError<PostToConnectionError>>
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 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 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.
Trait Implementations
sourceimpl Clone for PostToConnection
impl Clone for PostToConnection
sourcefn clone(&self) -> PostToConnection
fn clone(&self) -> PostToConnection
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more