Package com.dropbox.core.v2.teamlog
Class EmailIngestReceiveFileDetails
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.EmailIngestReceiveFileDetails
-
public class EmailIngestReceiveFileDetails extends java.lang.Object
Received files via Email to Dropbox.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EmailIngestReceiveFileDetails.Builder
Builder forEmailIngestReceiveFileDetails
.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>
attachmentNames
protected java.lang.String
fromEmail
protected java.lang.String
fromName
protected java.lang.String
inboxName
protected java.lang.String
subject
-
Constructor Summary
Constructors Constructor Description EmailIngestReceiveFileDetails(java.lang.String inboxName, java.util.List<java.lang.String> attachmentNames)
Received files via Email to Dropbox.EmailIngestReceiveFileDetails(java.lang.String inboxName, java.util.List<java.lang.String> attachmentNames, java.lang.String subject, java.lang.String fromName, java.lang.String fromEmail)
Received files via Email to Dropbox.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.List<java.lang.String>
getAttachmentNames()
Submitted file names.java.lang.String
getFromEmail()
The email as provided by the submitter.java.lang.String
getFromName()
The name as provided by the submitter.java.lang.String
getInboxName()
Inbox name.java.lang.String
getSubject()
Subject of the email.int
hashCode()
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.java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
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 benull
.attachmentNames
- Submitted file names. Must not contain anull
item and not benull
.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 benull
.attachmentNames
- Submitted file names. Must not contain anull
item and not benull
.- 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 benull
.attachmentNames
- Submitted file names. Must not contain anull
item and not benull
.- Returns:
- builder for this class.
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.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
-
-