Struct aws_sdk_iot::input::GetBucketsAggregationInput
source · #[non_exhaustive]pub struct GetBucketsAggregationInput { /* private fields */ }
Implementations§
source§impl GetBucketsAggregationInput
impl GetBucketsAggregationInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetBucketsAggregation, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetBucketsAggregation, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetBucketsAggregation
>
Examples found in repository?
src/client.rs (line 14622)
14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetBucketsAggregation,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetBucketsAggregationError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetBucketsAggregationOutput,
aws_smithy_http::result::SdkError<crate::error::GetBucketsAggregationError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GetBucketsAggregationInput
.
source§impl GetBucketsAggregationInput
impl GetBucketsAggregationInput
sourcepub fn index_name(&self) -> Option<&str>
pub fn index_name(&self) -> Option<&str>
The name of the index to search.
sourcepub fn query_string(&self) -> Option<&str>
pub fn query_string(&self) -> Option<&str>
The search query string.
sourcepub fn aggregation_field(&self) -> Option<&str>
pub fn aggregation_field(&self) -> Option<&str>
The aggregation field.
sourcepub fn query_version(&self) -> Option<&str>
pub fn query_version(&self) -> Option<&str>
The version of the query.
sourcepub fn buckets_aggregation_type(&self) -> Option<&BucketsAggregationType>
pub fn buckets_aggregation_type(&self) -> Option<&BucketsAggregationType>
The basic control of the response shape and the bucket aggregation type to perform.
Trait Implementations§
source§impl Clone for GetBucketsAggregationInput
impl Clone for GetBucketsAggregationInput
source§fn clone(&self) -> GetBucketsAggregationInput
fn clone(&self) -> GetBucketsAggregationInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more