AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

InitiateDocumentVersionUploadInput

import "github.com/aws/aws-sdk-go/service/workdocs"

type InitiateDocumentVersionUploadInput struct { AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` ContentCreatedTimestamp *time.Time `type:"timestamp"` ContentModifiedTimestamp *time.Time `type:"timestamp"` ContentType *string `min:"1" type:"string"` DocumentSizeInBytes *int64 `type:"long"` Id *string `min:"1" type:"string"` Name *string `min:"1" type:"string"` ParentFolderId *string `min:"1" type:"string" required:"true"` }

AuthenticationToken

Type: *string

Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.

ContentCreatedTimestamp

Type: *time.Time

The timestamp when the content of the document was originally created.

ContentModifiedTimestamp

Type: *time.Time

The timestamp when the content of the document was modified.

ContentType

Type: *string

The content type of the document.

DocumentSizeInBytes

Type: *int64

The size of the document, in bytes.

Id

Type: *string

The ID of the document.

Name

Type: *string

The name of the document.

ParentFolderId

Type: *string

The ID of the parent folder.

ParentFolderId is a required field

Method

GoString

func (s InitiateDocumentVersionUploadInput) GoString() string

GoString returns the string representation

SetAuthenticationToken

func (s *InitiateDocumentVersionUploadInput) SetAuthenticationToken(v string) *InitiateDocumentVersionUploadInput

SetAuthenticationToken sets the AuthenticationToken field's value.

SetContentCreatedTimestamp

func (s *InitiateDocumentVersionUploadInput) SetContentCreatedTimestamp(v time.Time) *InitiateDocumentVersionUploadInput

SetContentCreatedTimestamp sets the ContentCreatedTimestamp field's value.

SetContentModifiedTimestamp

func (s *InitiateDocumentVersionUploadInput) SetContentModifiedTimestamp(v time.Time) *InitiateDocumentVersionUploadInput

SetContentModifiedTimestamp sets the ContentModifiedTimestamp field's value.

SetContentType

func (s *InitiateDocumentVersionUploadInput) SetContentType(v string) *InitiateDocumentVersionUploadInput

SetContentType sets the ContentType field's value.

SetDocumentSizeInBytes

func (s *InitiateDocumentVersionUploadInput) SetDocumentSizeInBytes(v int64) *InitiateDocumentVersionUploadInput

SetDocumentSizeInBytes sets the DocumentSizeInBytes field's value.

SetId

func (s *InitiateDocumentVersionUploadInput) SetId(v string) *InitiateDocumentVersionUploadInput

SetId sets the Id field's value.

SetName

func (s *InitiateDocumentVersionUploadInput) SetName(v string) *InitiateDocumentVersionUploadInput

SetName sets the Name field's value.

SetParentFolderId

func (s *InitiateDocumentVersionUploadInput) SetParentFolderId(v string) *InitiateDocumentVersionUploadInput

SetParentFolderId sets the ParentFolderId field's value.

String

func (s InitiateDocumentVersionUploadInput) String() string

String returns the string representation

Validate

func (s *InitiateDocumentVersionUploadInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: