pub struct SampleChannelData { /* private fields */ }Expand description
Fluent builder constructing a request to SampleChannelData.
Retrieves a sample of messages from the specified channel ingested during the specified timeframe. Up to 10 messages can be retrieved.
Implementations§
source§impl SampleChannelData
impl SampleChannelData
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<SampleChannelData, AwsResponseRetryClassifier>, SdkError<SampleChannelDataError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<SampleChannelData, AwsResponseRetryClassifier>, SdkError<SampleChannelDataError>>
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<SampleChannelDataOutput, SdkError<SampleChannelDataError>>
pub async fn send(
self
) -> Result<SampleChannelDataOutput, SdkError<SampleChannelDataError>>
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 channel_name(self, input: impl Into<String>) -> Self
pub fn channel_name(self, input: impl Into<String>) -> Self
The name of the channel whose message samples are retrieved.
sourcepub fn set_channel_name(self, input: Option<String>) -> Self
pub fn set_channel_name(self, input: Option<String>) -> Self
The name of the channel whose message samples are retrieved.
sourcepub fn max_messages(self, input: i32) -> Self
pub fn max_messages(self, input: i32) -> Self
The number of sample messages to be retrieved. The limit is 10. The default is also 10.
sourcepub fn set_max_messages(self, input: Option<i32>) -> Self
pub fn set_max_messages(self, input: Option<i32>) -> Self
The number of sample messages to be retrieved. The limit is 10. The default is also 10.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The start of the time window from which sample messages are retrieved.
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The start of the time window from which sample messages are retrieved.
sourcepub fn end_time(self, input: DateTime) -> Self
pub fn end_time(self, input: DateTime) -> Self
The end of the time window from which sample messages are retrieved.
sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
The end of the time window from which sample messages are retrieved.
Trait Implementations§
source§impl Clone for SampleChannelData
impl Clone for SampleChannelData
source§fn clone(&self) -> SampleChannelData
fn clone(&self) -> SampleChannelData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more