Class EmailIngestReceiveFileDetails


  • public class EmailIngestReceiveFileDetails
    extends java.lang.Object
    Received files via Email to Dropbox.
    • Field Detail

      • inboxName

        @Nonnull
        protected final java.lang.String inboxName
      • attachmentNames

        @Nonnull
        protected final java.util.List<java.lang.String> attachmentNames
      • subject

        @Nullable
        protected final java.lang.String subject
      • fromName

        @Nullable
        protected final java.lang.String fromName
      • fromEmail

        @Nullable
        protected final java.lang.String fromEmail
    • Constructor Detail

      • EmailIngestReceiveFileDetails

        public EmailIngestReceiveFileDetails​(@Nonnull
                                             java.lang.String inboxName,
                                             @Nonnull
                                             java.util.List<java.lang.String> attachmentNames,
                                             @Nullable
                                             java.lang.String subject,
                                             @Nullable
                                             java.lang.String fromName,
                                             @Nullable
                                             java.lang.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:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • EmailIngestReceiveFileDetails

        public EmailIngestReceiveFileDetails​(@Nonnull
                                             java.lang.String inboxName,
                                             @Nonnull
                                             java.util.List<java.lang.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:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
    • Method Detail

      • getInboxName

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

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

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

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

        @Nullable
        public java.lang.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​(java.lang.String inboxName,
                                                                       java.util.List<java.lang.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:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

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

        public java.lang.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