public static class GetMetadataResult.Builder
extends java.lang.Object
GetMetadataResult
.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
fileId |
protected boolean |
isDeleted |
protected java.lang.String |
mimeType |
protected java.lang.String |
providerVersion |
protected java.lang.String |
title |
protected UserInfo |
user |
protected UserPermissions |
userPermissions |
protected java.lang.String |
version |
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
GetMetadataResult |
build()
Builds an instance of
GetMetadataResult configured with this
builder's values |
GetMetadataResult.Builder |
withFileId(java.lang.String fileId)
Set value for optional field.
|
GetMetadataResult.Builder |
withIsDeleted(java.lang.Boolean isDeleted)
Set value for optional field.
|
GetMetadataResult.Builder |
withMimeType(java.lang.String mimeType)
Set value for optional field.
|
GetMetadataResult.Builder |
withProviderVersion(java.lang.String providerVersion)
Set value for optional field.
|
GetMetadataResult.Builder |
withTitle(java.lang.String title)
Set value for optional field.
|
GetMetadataResult.Builder |
withUser(UserInfo user)
Set value for optional field.
|
GetMetadataResult.Builder |
withUserPermissions(UserPermissions userPermissions)
Set value for optional field.
|
GetMetadataResult.Builder |
withVersion(java.lang.String version)
Set value for optional field.
|
protected java.lang.String fileId
protected java.lang.String title
protected java.lang.String mimeType
protected java.lang.String version
protected java.lang.String providerVersion
protected UserInfo user
protected boolean isDeleted
protected UserPermissions userPermissions
public GetMetadataResult.Builder withFileId(java.lang.String fileId)
If left unset or set to null
, defaults to "\"\""
.
fileId
- Must not be null
. Defaults to "\"\""
when set to null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public GetMetadataResult.Builder withTitle(java.lang.String title)
If left unset or set to null
, defaults to "\"\""
.
title
- Title of the Cloud Doc without extension. Must not be
null
. Defaults to "\"\""
when set to null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public GetMetadataResult.Builder withMimeType(java.lang.String mimeType)
If left unset or set to null
, defaults to "\"\""
.
mimeType
- MIME type of the Cloud Doc. Must not be null
. Defaults to "\"\""
when set to null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public GetMetadataResult.Builder withVersion(java.lang.String version)
If left unset or set to null
, defaults to "\"\""
.
version
- Opaque string representing the version of the
document stored in Dropbox (only set for Dropbox-stored
Documents). Must not be null
. Defaults to "\"\""
when set to null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public GetMetadataResult.Builder withProviderVersion(java.lang.String providerVersion)
If left unset or set to null
, defaults to "\"\""
.
providerVersion
- Application specific string representing the
revision of a document (only set for App-stored Documents). Must
not be null
. Defaults to "\"\""
when set to
null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public GetMetadataResult.Builder withUser(UserInfo user)
user
- User identified by the auth token.public GetMetadataResult.Builder withIsDeleted(java.lang.Boolean isDeleted)
If left unset or set to null
, defaults to false
.
isDeleted
- true if the document is deleted or purged. Defaults
to false
when set to null
.public GetMetadataResult.Builder withUserPermissions(UserPermissions userPermissions)
userPermissions
- Actions that the user identified by the auth
token can performn. This message will not be populated for
deleted documents.public GetMetadataResult build()
GetMetadataResult
configured with this
builder's valuesGetMetadataResult