Class PropertyGroupUpdate.Builder
- java.lang.Object
-
- com.dropbox.core.v2.fileproperties.PropertyGroupUpdate.Builder
-
- Enclosing class:
- PropertyGroupUpdate
public static class PropertyGroupUpdate.Builder extends java.lang.Object
Builder forPropertyGroupUpdate
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<PropertyField>
addOrUpdateFields
protected java.util.List<java.lang.String>
removeFields
protected java.lang.String
templateId
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(java.lang.String templateId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyGroupUpdate
build()
Builds an instance ofPropertyGroupUpdate
configured with this builder's valuesPropertyGroupUpdate.Builder
withAddOrUpdateFields(java.util.List<PropertyField> addOrUpdateFields)
Set value for optional field.PropertyGroupUpdate.Builder
withRemoveFields(java.util.List<java.lang.String> removeFields)
Set value for optional field.
-
-
-
Field Detail
-
templateId
protected final java.lang.String templateId
-
addOrUpdateFields
protected java.util.List<PropertyField> addOrUpdateFields
-
removeFields
protected java.util.List<java.lang.String> removeFields
-
-
Method Detail
-
withAddOrUpdateFields
public PropertyGroupUpdate.Builder withAddOrUpdateFields(java.util.List<PropertyField> addOrUpdateFields)
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, the property group is added. Must not contain anull
item.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withRemoveFields
public PropertyGroupUpdate.Builder withRemoveFields(java.util.List<java.lang.String> removeFields)
Set value for optional field.- Parameters:
removeFields
- Property fields to remove (by name), provided they exist. Must not contain anull
item.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
build
public PropertyGroupUpdate build()
Builds an instance ofPropertyGroupUpdate
configured with this builder's values- Returns:
- new instance of
PropertyGroupUpdate
-
-