Struct aws_sdk_iotanalytics::operation::sample_channel_data::builders::SampleChannelDataFluentBuilder
source · pub struct SampleChannelDataFluentBuilder { /* 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 SampleChannelDataFluentBuilder
impl SampleChannelDataFluentBuilder
sourcepub fn as_input(&self) -> &SampleChannelDataInputBuilder
pub fn as_input(&self) -> &SampleChannelDataInputBuilder
Access the SampleChannelData as a reference.
sourcepub async fn send(
self
) -> Result<SampleChannelDataOutput, SdkError<SampleChannelDataError, HttpResponse>>
pub async fn send( self ) -> Result<SampleChannelDataOutput, SdkError<SampleChannelDataError, 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<SampleChannelDataOutput, SampleChannelDataError, Self>
pub fn customize( self ) -> CustomizableOperation<SampleChannelDataOutput, SampleChannelDataError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_channel_name(&self) -> &Option<String>
pub fn get_channel_name(&self) -> &Option<String>
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 get_max_messages(&self) -> &Option<i32>
pub fn get_max_messages(&self) -> &Option<i32>
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 get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
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.
sourcepub fn get_end_time(&self) -> &Option<DateTime>
pub fn get_end_time(&self) -> &Option<DateTime>
The end of the time window from which sample messages are retrieved.
Trait Implementations§
source§impl Clone for SampleChannelDataFluentBuilder
impl Clone for SampleChannelDataFluentBuilder
source§fn clone(&self) -> SampleChannelDataFluentBuilder
fn clone(&self) -> SampleChannelDataFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more