Package com.smartsheet.api.models
Class MultiRowEmail.AddMultiRowEmailBuilder
- java.lang.Object
-
- com.smartsheet.api.models.MultiRowEmail.AddMultiRowEmailBuilder
-
- Enclosing class:
- MultiRowEmail
public static class MultiRowEmail.AddMultiRowEmailBuilder extends java.lang.Object
A convenience class to help create a MultiRowEmail object with the appropriate fields.
-
-
Constructor Summary
Constructors Constructor Description AddMultiRowEmailBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiRowEmail
build()
Builds the multi row email objectMultiRowEmail.AddMultiRowEmailBuilder
setCcMe(java.lang.Boolean ccMe)
Sets the carbon copy me flag.MultiRowEmail.AddMultiRowEmailBuilder
setColumnIds(java.util.List<java.lang.Long> columnIds)
Sets the IDs of the columns to be included.MultiRowEmail.AddMultiRowEmailBuilder
setIncludeAttachments(java.lang.Boolean includeAttachments)
Sets the flag that indicates if attachments should be included in the email.MultiRowEmail.AddMultiRowEmailBuilder
setIncludeDiscussions(java.lang.Boolean includeDiscussions)
Sets the flag that indicates if discussions should be included in the email.MultiRowEmail.AddMultiRowEmailBuilder
setMessage(java.lang.String message)
Sets the message.MultiRowEmail.AddMultiRowEmailBuilder
setRowIds(java.util.List<java.lang.Long> rowIds)
Sets the IDs of rows to be includedMultiRowEmail.AddMultiRowEmailBuilder
setSendTo(java.util.List<Recipient> sendTo)
Sets the list of recipients to send toMultiRowEmail.AddMultiRowEmailBuilder
setSubject(java.lang.String subject)
Sets the subject.
-
-
-
Method Detail
-
setSendTo
public MultiRowEmail.AddMultiRowEmailBuilder setSendTo(java.util.List<Recipient> sendTo)
Sets the list of recipients to send to- Parameters:
sendTo
- list of recipients- Returns:
- the builder
-
setSubject
public MultiRowEmail.AddMultiRowEmailBuilder setSubject(java.lang.String subject)
Sets the subject.- Parameters:
subject
- the new subject- Returns:
- the builder
-
setMessage
public MultiRowEmail.AddMultiRowEmailBuilder setMessage(java.lang.String message)
Sets the message.- Parameters:
message
- the new message- Returns:
- the builder
-
setCcMe
public MultiRowEmail.AddMultiRowEmailBuilder setCcMe(java.lang.Boolean ccMe)
Sets the carbon copy me flag.- Parameters:
ccMe
- the new cc me- Returns:
- the builder
-
setRowIds
public MultiRowEmail.AddMultiRowEmailBuilder setRowIds(java.util.List<java.lang.Long> rowIds)
Sets the IDs of rows to be included- Parameters:
rowIds
- list of row ids- Returns:
- the builder
-
setColumnIds
public MultiRowEmail.AddMultiRowEmailBuilder setColumnIds(java.util.List<java.lang.Long> columnIds)
Sets the IDs of the columns to be included.- Parameters:
columnIds
- the column ids- Returns:
- the builder
-
setIncludeAttachments
public MultiRowEmail.AddMultiRowEmailBuilder setIncludeAttachments(java.lang.Boolean includeAttachments)
Sets the flag that indicates if attachments should be included in the email.- Parameters:
includeAttachments
- the new include attachments- Returns:
- the builder
-
setIncludeDiscussions
public MultiRowEmail.AddMultiRowEmailBuilder setIncludeDiscussions(java.lang.Boolean includeDiscussions)
Sets the flag that indicates if discussions should be included in the email.- Parameters:
includeDiscussions
- the new include discussions- Returns:
- the builder
-
build
public MultiRowEmail build()
Builds the multi row email object- Returns:
- the multi row email object
-
-