Class PropertyGroupUpdate

java.lang.Object
com.dropbox.core.v2.fileproperties.PropertyGroupUpdate

public class PropertyGroupUpdate extends Object
Property routes
  • Field Details

    • templateId

      @Nonnull protected final String templateId
    • addOrUpdateFields

      @Nullable protected final List<PropertyField> addOrUpdateFields
    • removeFields

      @Nullable protected final List<String> removeFields
  • Constructor Details

    • PropertyGroupUpdate

      public PropertyGroupUpdate(@Nonnull String templateId, @Nullable List<PropertyField> addOrUpdateFields, @Nullable List<String> removeFields)
      Property routes

      Use newBuilder(java.lang.String) to create instances of this class without specifying values for all optional fields.

      Parameters:
      templateId - A unique identifier for a property template. Must have length of at least 1, match pattern "(/|ptid:).*", and not be null.
      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.
      removeFields - Property fields to remove (by name), provided they exist. Must not contain a null item.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • PropertyGroupUpdate

      public PropertyGroupUpdate(@Nonnull String templateId)
      Property routes

      The default values for unset fields will be used.

      Parameters:
      templateId - A unique identifier for a property template. Must have length of at least 1, match pattern "(/|ptid:).*", and not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getTemplateId

      @Nonnull public String getTemplateId()
      A unique identifier for a property template.
      Returns:
      value for this field, never null.
    • getAddOrUpdateFields

      @Nullable public List<PropertyField> getAddOrUpdateFields()
      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.
      Returns:
      value for this field, or null if not present.
    • getRemoveFields

      @Nullable public List<String> getRemoveFields()
      Property fields to remove (by name), provided they exist.
      Returns:
      value for this field, or null if not present.
    • newBuilder

      public static PropertyGroupUpdate.Builder newBuilder(String templateId)
      Returns a new builder for creating an instance of this class.
      Parameters:
      templateId - A unique identifier for a property template. Must have length of at least 1, match pattern "(/|ptid:).*", and not be null.
      Returns:
      builder for this class.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public String toStringMultiline()
      Returns a String representation of this object formatted for easier readability.

      The returned String may contain newlines.

      Returns:
      Formatted, multiline String representation of this object