pub struct InitiateDocumentVersionUpload { /* private fields */ }
Expand description
Fluent builder constructing a request to InitiateDocumentVersionUpload
.
Creates a new document object and version object.
The client specifies the parent folder ID and name of the document to upload. The ID is optionally specified when creating a new version of an existing document. This is the first step to upload a document. Next, upload the document to the URL returned from the call, and then call UpdateDocumentVersion
.
To cancel the document upload, call AbortDocumentVersionUpload
.
Implementations§
source§impl InitiateDocumentVersionUpload
impl InitiateDocumentVersionUpload
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<InitiateDocumentVersionUpload, AwsResponseRetryClassifier>, SdkError<InitiateDocumentVersionUploadError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<InitiateDocumentVersionUpload, AwsResponseRetryClassifier>, SdkError<InitiateDocumentVersionUploadError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<InitiateDocumentVersionUploadOutput, SdkError<InitiateDocumentVersionUploadError>>
pub async fn send(
self
) -> Result<InitiateDocumentVersionUploadOutput, SdkError<InitiateDocumentVersionUploadError>>
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, which can be set when configuring the client.
sourcepub fn authentication_token(self, input: impl Into<String>) -> Self
pub fn authentication_token(self, input: impl Into<String>) -> Self
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
sourcepub fn set_authentication_token(self, input: Option<String>) -> Self
pub fn set_authentication_token(self, input: Option<String>) -> Self
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
sourcepub fn content_created_timestamp(self, input: DateTime) -> Self
pub fn content_created_timestamp(self, input: DateTime) -> Self
The timestamp when the content of the document was originally created.
sourcepub fn set_content_created_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_content_created_timestamp(self, input: Option<DateTime>) -> Self
The timestamp when the content of the document was originally created.
sourcepub fn content_modified_timestamp(self, input: DateTime) -> Self
pub fn content_modified_timestamp(self, input: DateTime) -> Self
The timestamp when the content of the document was modified.
sourcepub fn set_content_modified_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_content_modified_timestamp(self, input: Option<DateTime>) -> Self
The timestamp when the content of the document was modified.
sourcepub fn content_type(self, input: impl Into<String>) -> Self
pub fn content_type(self, input: impl Into<String>) -> Self
The content type of the document.
sourcepub fn set_content_type(self, input: Option<String>) -> Self
pub fn set_content_type(self, input: Option<String>) -> Self
The content type of the document.
sourcepub fn document_size_in_bytes(self, input: i64) -> Self
pub fn document_size_in_bytes(self, input: i64) -> Self
The size of the document, in bytes.
sourcepub fn set_document_size_in_bytes(self, input: Option<i64>) -> Self
pub fn set_document_size_in_bytes(self, input: Option<i64>) -> Self
The size of the document, in bytes.
sourcepub fn parent_folder_id(self, input: impl Into<String>) -> Self
pub fn parent_folder_id(self, input: impl Into<String>) -> Self
The ID of the parent folder.
sourcepub fn set_parent_folder_id(self, input: Option<String>) -> Self
pub fn set_parent_folder_id(self, input: Option<String>) -> Self
The ID of the parent folder.
Trait Implementations§
source§impl Clone for InitiateDocumentVersionUpload
impl Clone for InitiateDocumentVersionUpload
source§fn clone(&self) -> InitiateDocumentVersionUpload
fn clone(&self) -> InitiateDocumentVersionUpload
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more