Class EmailIngestReceiveFileDetails

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

public class EmailIngestReceiveFileDetails extends Object
Received files via Email to Dropbox.
  • Field Details

    • inboxName

      @Nonnull protected final String inboxName
    • attachmentNames

      @Nonnull protected final List<String> attachmentNames
    • subject

      @Nullable protected final String subject
    • fromName

      @Nullable protected final String fromName
    • fromEmail

      @Nullable protected final String fromEmail
  • Constructor Details

    • EmailIngestReceiveFileDetails

      public EmailIngestReceiveFileDetails(@Nonnull String inboxName, @Nonnull List<String> attachmentNames, @Nullable String subject, @Nullable String fromName, @Nullable String fromEmail)
      Received files via Email to Dropbox.

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

      Parameters:
      inboxName - Inbox name. Must not be null.
      attachmentNames - Submitted file names. Must not contain a null item and not be null.
      subject - Subject of the email.
      fromName - The name as provided by the submitter.
      fromEmail - The email as provided by the submitter. Must have length of at most 255.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • EmailIngestReceiveFileDetails

      public EmailIngestReceiveFileDetails(@Nonnull String inboxName, @Nonnull List<String> attachmentNames)
      Received files via Email to Dropbox.

      The default values for unset fields will be used.

      Parameters:
      inboxName - Inbox name. Must not be null.
      attachmentNames - Submitted file names. Must not contain a null item and not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getInboxName

      @Nonnull public String getInboxName()
      Inbox name.
      Returns:
      value for this field, never null.
    • getAttachmentNames

      @Nonnull public List<String> getAttachmentNames()
      Submitted file names.
      Returns:
      value for this field, never null.
    • getSubject

      @Nullable public String getSubject()
      Subject of the email.
      Returns:
      value for this field, or null if not present.
    • getFromName

      @Nullable public String getFromName()
      The name as provided by the submitter.
      Returns:
      value for this field, or null if not present.
    • getFromEmail

      @Nullable public String getFromEmail()
      The email as provided by the submitter.
      Returns:
      value for this field, or null if not present.
    • newBuilder

      public static EmailIngestReceiveFileDetails.Builder newBuilder(String inboxName, List<String> attachmentNames)
      Returns a new builder for creating an instance of this class.
      Parameters:
      inboxName - Inbox name. Must not be null.
      attachmentNames - Submitted file names. Must not contain a null item 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