pub struct Builder { /* private fields */ }Expand description
A builder for ResetAuthorizersCacheInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_api_id(self, input: Option<String>) -> Self
pub fn set_api_id(self, input: Option<String>) -> Self
The API identifier.
sourcepub fn stage_name(self, input: impl Into<String>) -> Self
pub fn stage_name(self, input: impl Into<String>) -> Self
The stage name. Stage names can contain only alphanumeric characters, hyphens, and underscores, or be $default. Maximum length is 128 characters.
sourcepub fn set_stage_name(self, input: Option<String>) -> Self
pub fn set_stage_name(self, input: Option<String>) -> Self
The stage name. Stage names can contain only alphanumeric characters, hyphens, and underscores, or be $default. Maximum length is 128 characters.
sourcepub fn build(self) -> Result<ResetAuthorizersCacheInput, BuildError>
pub fn build(self) -> Result<ResetAuthorizersCacheInput, BuildError>
Consumes the builder and constructs a ResetAuthorizersCacheInput.
Examples found in repository?
src/client.rs (line 7584)
7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ResetAuthorizersCache,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ResetAuthorizersCacheError>,
> {
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::ResetAuthorizersCacheOutput,
aws_smithy_http::result::SdkError<crate::error::ResetAuthorizersCacheError>,
> {
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
}