Class PropertyGroupUpdate.Builder

java.lang.Object
com.dropbox.core.v2.fileproperties.PropertyGroupUpdate.Builder
Enclosing class:
PropertyGroupUpdate

public static class PropertyGroupUpdate.Builder extends Object
Builder for PropertyGroupUpdate.
  • Field Details

    • templateId

      protected final String templateId
    • addOrUpdateFields

      protected List<PropertyField> addOrUpdateFields
    • removeFields

      protected List<String> removeFields
  • Constructor Details

    • Builder

      protected Builder(String templateId)
  • Method Details

    • withAddOrUpdateFields

      public PropertyGroupUpdate.Builder withAddOrUpdateFields(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, it will be created as long as the property group already exists. Must not contain a null item.
      Returns:
      this builder
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • withRemoveFields

      public PropertyGroupUpdate.Builder withRemoveFields(List<String> removeFields)
      Set value for optional field.
      Parameters:
      removeFields - Property fields to remove (by name), provided they exist. Must not contain a null item.
      Returns:
      this builder
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • build

      public PropertyGroupUpdate build()
      Builds an instance of PropertyGroupUpdate configured with this builder's values
      Returns:
      new instance of PropertyGroupUpdate