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.ObjectBuilder forGetMetadataResult.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringfileIdprotected booleanisDeletedprotected java.lang.StringmimeTypeprotected java.lang.StringproviderVersionprotected java.lang.Stringtitleprotected UserInfouserprotected UserPermissionsuserPermissionsprotected java.lang.Stringversion
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetMetadataResultbuild()Builds an instance ofGetMetadataResultconfigured with this builder's valuesGetMetadataResult.BuilderwithFileId(java.lang.String fileId)Set value for optional field.GetMetadataResult.BuilderwithIsDeleted(java.lang.Boolean isDeleted)Set value for optional field.GetMetadataResult.BuilderwithMimeType(java.lang.String mimeType)Set value for optional field.GetMetadataResult.BuilderwithProviderVersion(java.lang.String providerVersion)Set value for optional field.GetMetadataResult.BuilderwithTitle(java.lang.String title)Set value for optional field.GetMetadataResult.BuilderwithUser(UserInfo user)Set value for optional field.GetMetadataResult.BuilderwithUserPermissions(UserPermissions userPermissions)Set value for optional field.GetMetadataResult.BuilderwithVersion(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 tofalsewhen 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 ofGetMetadataResultconfigured with this builder's values- Returns:
- new instance of
GetMetadataResult
-
-