pub struct Builder { /* private fields */ }Expand description
A builder for PutAggregationAuthorizationInput.
Implementations§
source§impl Builder
impl Builder
Appends an item to tags.
To override the contents of this collection use set_tags.
An array of tag object.
sourcepub fn build(self) -> Result<PutAggregationAuthorizationInput, BuildError>
pub fn build(self) -> Result<PutAggregationAuthorizationInput, BuildError>
Consumes the builder and constructs a PutAggregationAuthorizationInput.
Examples found in repository?
src/client.rs (line 8347)
8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::PutAggregationAuthorization,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::PutAggregationAuthorizationError>,
> {
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::PutAggregationAuthorizationOutput,
aws_smithy_http::result::SdkError<crate::error::PutAggregationAuthorizationError>,
> {
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
}