Struct aws_sdk_workdocs::operation::initiate_document_version_upload::builders::InitiateDocumentVersionUploadFluentBuilder
source · pub struct InitiateDocumentVersionUploadFluentBuilder { /* 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 InitiateDocumentVersionUploadFluentBuilder
impl InitiateDocumentVersionUploadFluentBuilder
sourcepub fn as_input(&self) -> &InitiateDocumentVersionUploadInputBuilder
pub fn as_input(&self) -> &InitiateDocumentVersionUploadInputBuilder
Access the InitiateDocumentVersionUpload as a reference.
sourcepub async fn send(
self
) -> Result<InitiateDocumentVersionUploadOutput, SdkError<InitiateDocumentVersionUploadError, HttpResponse>>
pub async fn send( self ) -> Result<InitiateDocumentVersionUploadOutput, SdkError<InitiateDocumentVersionUploadError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<InitiateDocumentVersionUploadOutput, InitiateDocumentVersionUploadError, Self>
pub fn customize( self ) -> CustomizableOperation<InitiateDocumentVersionUploadOutput, InitiateDocumentVersionUploadError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 Amazon Web Services 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 Amazon Web Services administrator credentials to access the API.
sourcepub fn get_authentication_token(&self) -> &Option<String>
pub fn get_authentication_token(&self) -> &Option<String>
Amazon WorkDocs authentication token. Not required when using Amazon Web Services 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 get_content_created_timestamp(&self) -> &Option<DateTime>
pub fn get_content_created_timestamp(&self) -> &Option<DateTime>
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 get_content_modified_timestamp(&self) -> &Option<DateTime>
pub fn get_content_modified_timestamp(&self) -> &Option<DateTime>
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 get_content_type(&self) -> &Option<String>
pub fn get_content_type(&self) -> &Option<String>
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 get_document_size_in_bytes(&self) -> &Option<i64>
pub fn get_document_size_in_bytes(&self) -> &Option<i64>
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.
sourcepub fn get_parent_folder_id(&self) -> &Option<String>
pub fn get_parent_folder_id(&self) -> &Option<String>
The ID of the parent folder.
Trait Implementations§
source§impl Clone for InitiateDocumentVersionUploadFluentBuilder
impl Clone for InitiateDocumentVersionUploadFluentBuilder
source§fn clone(&self) -> InitiateDocumentVersionUploadFluentBuilder
fn clone(&self) -> InitiateDocumentVersionUploadFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more