Class ExportArg

java.lang.Object
com.dropbox.core.v2.files.ExportArg

public class ExportArg extends Object
  • Field Details

    • path

      @Nonnull protected final String path
    • exportFormat

      @Nullable protected final String exportFormat
  • Constructor Details

    • ExportArg

      public ExportArg(@Nonnull String path, @Nullable String exportFormat)
      Parameters:
      path - The path of the file to be exported. Must match pattern " (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/(.|[\\r\\n])*)?)" and not be null.
      exportFormat - The file format to which the file should be exported. This must be one of the formats listed in the file's export_options returned by DbxUserFilesRequests.getMetadata(String). If none is specified, the default format (specified in export_as in file metadata) will be used.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • ExportArg

      public ExportArg(@Nonnull String path)
      None

      The default values for unset fields will be used.

      Parameters:
      path - The path of the file to be exported. Must match pattern " (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/(.|[\\r\\n])*)?)" and not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getPath

      @Nonnull public String getPath()
      The path of the file to be exported.
      Returns:
      value for this field, never null.
    • getExportFormat

      @Nullable public String getExportFormat()
      The file format to which the file should be exported. This must be one of the formats listed in the file's export_options returned by DbxUserFilesRequests.getMetadata(String). If none is specified, the default format (specified in export_as in file metadata) will be used.
      Returns:
      value for this field, or null if not present.
    • 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