Class PropertyGroupTemplate

java.lang.Object
com.dropbox.core.v2.fileproperties.PropertyGroupTemplate
Direct Known Subclasses:
AddTemplateArg, GetTemplateResult

public class PropertyGroupTemplate extends Object
Defines how a property group may be structured.
  • Field Details

  • Constructor Details

    • PropertyGroupTemplate

      public PropertyGroupTemplate(@Nonnull String name, @Nonnull String description, @Nonnull List<PropertyFieldTemplate> fields)
      Defines how a property group may be structured.
      Parameters:
      name - Display name for the template. Template names can be up to 256 bytes. Must not be null.
      description - Description for the template. Template descriptions can be up to 1024 bytes. Must not be null.
      fields - Definitions of the property fields associated with this template. There can be up to 32 properties in a single template. Must not contain a null item and not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getName

      @Nonnull public String getName()
      Display name for the template. Template names can be up to 256 bytes.
      Returns:
      value for this field, never null.
    • getDescription

      @Nonnull public String getDescription()
      Description for the template. Template descriptions can be up to 1024 bytes.
      Returns:
      value for this field, never null.
    • getFields

      @Nonnull public List<PropertyFieldTemplate> getFields()
      Definitions of the property fields associated with this template. There can be up to 32 properties in a single template.
      Returns:
      value for this field, never null.
    • 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