Package com.dropbox.core.v2.clouddocs
Class GetMetadataResult.Builder
- java.lang.Object
-
- com.dropbox.core.v2.clouddocs.GetMetadataResult.Builder
-
- Enclosing class:
- GetMetadataResult
public static class GetMetadataResult.Builder extends java.lang.Object
Builder forGetMetadataResult
.
-
-
Field Summary
Fields Modifier and Type Field 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
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetMetadataResult
build()
Builds an instance ofGetMetadataResult
configured with this builder's valuesGetMetadataResult.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.
-
-
-
Field Detail
-
fileId
protected java.lang.String fileId
-
title
protected java.lang.String title
-
mimeType
protected java.lang.String mimeType
-
version
protected java.lang.String version
-
providerVersion
protected java.lang.String providerVersion
-
user
protected UserInfo user
-
isDeleted
protected boolean isDeleted
-
userPermissions
protected UserPermissions userPermissions
-
-
Method Detail
-
withFileId
public GetMetadataResult.Builder withFileId(java.lang.String fileId)
Set value for optional field.If left unset or set to
null
, defaults to"\"\""
.- Parameters:
fileId
- Must not benull
. Defaults to"\"\""
when set tonull
.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withTitle
public GetMetadataResult.Builder withTitle(java.lang.String title)
Set value for optional field.If left unset or set to
null
, defaults to"\"\""
.- Parameters:
title
- Title of the Cloud Doc without extension. Must not benull
. Defaults to"\"\""
when set tonull
.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withMimeType
public GetMetadataResult.Builder withMimeType(java.lang.String mimeType)
Set value for optional field.If left unset or set to
null
, defaults to"\"\""
.- Parameters:
mimeType
- MIME type of the Cloud Doc. Must not benull
. Defaults to"\"\""
when set tonull
.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withVersion
public GetMetadataResult.Builder withVersion(java.lang.String version)
Set value for optional field.If left unset or set to
null
, defaults to"\"\""
.- Parameters:
version
- Opaque string representing the version of the document stored in Dropbox (only set for Dropbox-stored Documents). Must not benull
. Defaults to"\"\""
when set tonull
.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withProviderVersion
public GetMetadataResult.Builder withProviderVersion(java.lang.String providerVersion)
Set value for optional field.If left unset or set to
null
, defaults to"\"\""
.- Parameters:
providerVersion
- Application specific string representing the revision of a document (only set for App-stored Documents). Must not benull
. Defaults to"\"\""
when set tonull
.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withUser
public GetMetadataResult.Builder withUser(UserInfo user)
Set value for optional field.- Parameters:
user
- User identified by the auth token.- Returns:
- this builder
-
withIsDeleted
public GetMetadataResult.Builder withIsDeleted(java.lang.Boolean isDeleted)
Set value for optional field.If left unset or set to
null
, defaults tofalse
.- Parameters:
isDeleted
- true if the document is deleted or purged. Defaults tofalse
when set tonull
.- Returns:
- this builder
-
withUserPermissions
public GetMetadataResult.Builder withUserPermissions(UserPermissions userPermissions)
Set value for optional field.- Parameters:
userPermissions
- Actions that the user identified by the auth token can performn. This message will not be populated for deleted documents.- Returns:
- this builder
-
build
public GetMetadataResult build()
Builds an instance ofGetMetadataResult
configured with this builder's values- Returns:
- new instance of
GetMetadataResult
-
-