Class FileRequestDetails

java.lang.Object
com.dropbox.core.v2.teamlog.FileRequestDetails

public class FileRequestDetails extends Object
File request details
  • Field Details

    • assetIndex

      protected final long assetIndex
    • deadline

      @Nullable protected final FileRequestDeadline deadline
    • hasPassword

      @Nullable protected final Boolean hasPassword
  • Constructor Details

    • FileRequestDetails

      public FileRequestDetails(long assetIndex, @Nullable FileRequestDeadline deadline, @Nullable Boolean hasPassword)
      File request details

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

      Parameters:
      assetIndex - Asset position in the Assets list.
      deadline - File request deadline.
      hasPassword - Flag represents if this file request has password.
    • FileRequestDetails

      public FileRequestDetails(long assetIndex)
      File request details

      The default values for unset fields will be used.

      Parameters:
      assetIndex - Asset position in the Assets list.
  • Method Details

    • getAssetIndex

      public long getAssetIndex()
      Asset position in the Assets list.
      Returns:
      value for this field.
    • getDeadline

      @Nullable public FileRequestDeadline getDeadline()
      File request deadline.
      Returns:
      value for this field, or null if not present.
    • getHasPassword

      @Nullable public Boolean getHasPassword()
      Flag represents if this file request has password.
      Returns:
      value for this field, or null if not present.
    • newBuilder

      public static FileRequestDetails.Builder newBuilder(long assetIndex)
      Returns a new builder for creating an instance of this class.
      Parameters:
      assetIndex - Asset position in the Assets list.
      Returns:
      builder for this class.
    • 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