#[non_exhaustive]pub struct InitiateDocumentVersionUploadInput { /* private fields */ }
Implementations§
source§impl InitiateDocumentVersionUploadInput
impl InitiateDocumentVersionUploadInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<InitiateDocumentVersionUpload, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<InitiateDocumentVersionUpload, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<InitiateDocumentVersionUpload
>
Examples found in repository?
src/client.rs (line 4556)
4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::InitiateDocumentVersionUpload,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::InitiateDocumentVersionUploadError>,
> {
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::InitiateDocumentVersionUploadOutput,
aws_smithy_http::result::SdkError<crate::error::InitiateDocumentVersionUploadError>,
> {
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 InitiateDocumentVersionUploadInput
.
source§impl InitiateDocumentVersionUploadInput
impl InitiateDocumentVersionUploadInput
sourcepub fn authentication_token(&self) -> Option<&str>
pub fn authentication_token(&self) -> Option<&str>
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
sourcepub fn content_created_timestamp(&self) -> Option<&DateTime>
pub fn content_created_timestamp(&self) -> Option<&DateTime>
The timestamp when the content of the document was originally created.
sourcepub fn content_modified_timestamp(&self) -> Option<&DateTime>
pub fn content_modified_timestamp(&self) -> Option<&DateTime>
The timestamp when the content of the document was modified.
sourcepub fn content_type(&self) -> Option<&str>
pub fn content_type(&self) -> Option<&str>
The content type of the document.
sourcepub fn document_size_in_bytes(&self) -> Option<i64>
pub fn document_size_in_bytes(&self) -> Option<i64>
The size of the document, in bytes.
sourcepub fn parent_folder_id(&self) -> Option<&str>
pub fn parent_folder_id(&self) -> Option<&str>
The ID of the parent folder.
Trait Implementations§
source§impl Clone for InitiateDocumentVersionUploadInput
impl Clone for InitiateDocumentVersionUploadInput
source§fn clone(&self) -> InitiateDocumentVersionUploadInput
fn clone(&self) -> InitiateDocumentVersionUploadInput
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