public static class CommitInfoWithProperties.Builder extends CommitInfo.Builder
CommitInfoWithProperties
.Modifier and Type | Field and Description |
---|---|
protected List<PropertyGroup> |
propertyGroups |
autorename, clientModified, mode, mute, path
Modifier | Constructor and Description |
---|---|
protected |
Builder(String path) |
Modifier and Type | Method and Description |
---|---|
CommitInfoWithProperties |
build()
Builds an instance of
CommitInfoWithProperties configured
with this builder's values |
CommitInfoWithProperties.Builder |
withAutorename(Boolean autorename)
Set value for optional field.
|
CommitInfoWithProperties.Builder |
withClientModified(Date clientModified)
Set value for optional field.
|
CommitInfoWithProperties.Builder |
withMode(WriteMode mode)
Set value for optional field.
|
CommitInfoWithProperties.Builder |
withMute(Boolean mute)
Set value for optional field.
|
CommitInfoWithProperties.Builder |
withPropertyGroups(List<PropertyGroup> propertyGroups)
Set value for optional field.
|
protected List<PropertyGroup> propertyGroups
protected Builder(String path)
public CommitInfoWithProperties.Builder withPropertyGroups(List<PropertyGroup> propertyGroups)
propertyGroups
- List of custom properties to add to file. Must
not contain a null
item.IllegalArgumentException
- If any argument does not meet its
preconditions.public CommitInfoWithProperties.Builder withMode(WriteMode mode)
If left unset or set to null
, defaults to WriteMode.ADD
.
withMode
in class CommitInfo.Builder
mode
- Selects what to do if the file already exists. Defaults
to WriteMode.ADD
when set to null
.public CommitInfoWithProperties.Builder withAutorename(Boolean autorename)
If left unset or set to null
, defaults to false
.
withAutorename
in class CommitInfo.Builder
autorename
- If there's a conflict, as determined by the mode
argument to DbxUserFilesRequests.upload(String)
,
have the Dropbox server try to autorename the file to avoid
conflict. Defaults to false
when set to null
.public CommitInfoWithProperties.Builder withClientModified(Date clientModified)
withClientModified
in class CommitInfo.Builder
clientModified
- The value to store as the the clientModified
argument to DbxUserFilesRequests.upload(String)
timestamp. Dropbox
automatically records the time at which the file was written to
the Dropbox servers. It can also record an additional timestamp,
provided by Dropbox desktop clients, mobile clients, and API apps
of when the file was actually created or modified.public CommitInfoWithProperties.Builder withMute(Boolean mute)
If left unset or set to null
, defaults to false
.
withMute
in class CommitInfo.Builder
mute
- Normally, users are made aware of any file modifications
in their Dropbox account via notifications in the client
software. If true
, this tells the clients that this
modification shouldn't result in a user notification. Defaults to
false
when set to null
.public CommitInfoWithProperties build()
CommitInfoWithProperties
configured
with this builder's valuesbuild
in class CommitInfo.Builder
CommitInfoWithProperties