#[non_exhaustive]pub struct UpdateDocumentDefaultVersionInput { /* private fields */ }
Implementations§
source§impl UpdateDocumentDefaultVersionInput
impl UpdateDocumentDefaultVersionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateDocumentDefaultVersion, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateDocumentDefaultVersion, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateDocumentDefaultVersion
>
Examples found in repository?
src/client.rs (line 17889)
17875 17876 17877 17878 17879 17880 17881 17882 17883 17884 17885 17886 17887 17888 17889 17890 17891 17892 17893 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateDocumentDefaultVersion,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateDocumentDefaultVersionError>,
> {
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::UpdateDocumentDefaultVersionOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateDocumentDefaultVersionError>,
> {
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 UpdateDocumentDefaultVersionInput
.
Trait Implementations§
source§impl Clone for UpdateDocumentDefaultVersionInput
impl Clone for UpdateDocumentDefaultVersionInput
source§fn clone(&self) -> UpdateDocumentDefaultVersionInput
fn clone(&self) -> UpdateDocumentDefaultVersionInput
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