Package com.dropbox.core.v2.teamlog
Class EmailIngestReceiveFileDetails.Builder
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.EmailIngestReceiveFileDetails.Builder
-
- Enclosing class:
- EmailIngestReceiveFileDetails
public static class EmailIngestReceiveFileDetails.Builder extends java.lang.Object
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 Modifier Constructor Description protected
Builder(java.lang.String inboxName, java.util.List<java.lang.String> attachmentNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EmailIngestReceiveFileDetails
build()
Builds an instance ofEmailIngestReceiveFileDetails
configured with this builder's valuesEmailIngestReceiveFileDetails.Builder
withFromEmail(java.lang.String fromEmail)
Set value for optional field.EmailIngestReceiveFileDetails.Builder
withFromName(java.lang.String fromName)
Set value for optional field.EmailIngestReceiveFileDetails.Builder
withSubject(java.lang.String subject)
Set value for optional field.
-
-
-
Method Detail
-
withSubject
public EmailIngestReceiveFileDetails.Builder withSubject(java.lang.String subject)
Set value for optional field.- Parameters:
subject
- Subject of the email.- Returns:
- this builder
-
withFromName
public EmailIngestReceiveFileDetails.Builder withFromName(java.lang.String fromName)
Set value for optional field.- Parameters:
fromName
- The name as provided by the submitter.- Returns:
- this builder
-
withFromEmail
public EmailIngestReceiveFileDetails.Builder withFromEmail(java.lang.String fromEmail)
Set value for optional field.- Parameters:
fromEmail
- The email as provided by the submitter. Must have length of at most 255.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
build
public EmailIngestReceiveFileDetails build()
Builds an instance ofEmailIngestReceiveFileDetails
configured with this builder's values- Returns:
- new instance of
EmailIngestReceiveFileDetails
-
-