Class PropertyGroupUpdate.Builder
java.lang.Object
com.dropbox.core.v2.fileproperties.PropertyGroupUpdate.Builder
- Enclosing class:
PropertyGroupUpdate
Builder for
PropertyGroupUpdate.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofPropertyGroupUpdateconfigured with this builder's valueswithAddOrUpdateFields(List<PropertyField> addOrUpdateFields) Set value for optional field.withRemoveFields(List<String> removeFields) Set value for optional field.
-
Field Details
-
templateId
-
addOrUpdateFields
-
removeFields
-
-
Constructor Details
-
Builder
-
-
Method Details
-
withAddOrUpdateFields
Set value for optional field.- Parameters:
addOrUpdateFields- Property fields to update. If the property field already exists, it is updated. If the property field doesn't exist, it will be created as long as the property group already exists. Must not contain anullitem.- Returns:
- this builder
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
withRemoveFields
Set value for optional field.- Parameters:
removeFields- Property fields to remove (by name), provided they exist. Must not contain anullitem.- Returns:
- this builder
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
build
Builds an instance ofPropertyGroupUpdateconfigured with this builder's values- Returns:
- new instance of
PropertyGroupUpdate
-