Class PropertyGroupUpdate.Builder
- java.lang.Object
-
- com.dropbox.core.v2.fileproperties.PropertyGroupUpdate.Builder
-
- Enclosing class:
- PropertyGroupUpdate
public static class PropertyGroupUpdate.Builder extends java.lang.ObjectBuilder forPropertyGroupUpdate.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<PropertyField>addOrUpdateFieldsprotected java.util.List<java.lang.String>removeFieldsprotected java.lang.StringtemplateId
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder(java.lang.String templateId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyGroupUpdatebuild()Builds an instance ofPropertyGroupUpdateconfigured with this builder's valuesPropertyGroupUpdate.BuilderwithAddOrUpdateFields(java.util.List<PropertyField> addOrUpdateFields)Set value for optional field.PropertyGroupUpdate.BuilderwithRemoveFields(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 anullitem.- 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 anullitem.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
build
public PropertyGroupUpdate build()
Builds an instance ofPropertyGroupUpdateconfigured with this builder's values- Returns:
- new instance of
PropertyGroupUpdate
-
-