Package com.smartsheet.api.models
Class SheetEmail.AddSheetEmailBuilder
- java.lang.Object
-
- com.smartsheet.api.models.SheetEmail.AddSheetEmailBuilder
-
- Enclosing class:
- SheetEmail
public static class SheetEmail.AddSheetEmailBuilder extends java.lang.Object
A convenience class to help create a SheetEmail object with the appropriate fields.
-
-
Constructor Summary
Constructors Constructor Description AddSheetEmailBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SheetEmail
build()
Builds the sheetEmail.java.lang.Boolean
getCcMe()
Gets the carbon copy me flag.SheetEmailFormat
getFormat()
Gets the sheet email format (PDF or Excel).FormatDetails
getFormatDetails()
Gets the format details (paper dimensions).java.lang.String
getMessage()
Gets the message.java.util.List<Recipient>
getSendTo()
Gets the list of recipients to send tojava.lang.String
getSubject()
Gets the subject.SheetEmail.AddSheetEmailBuilder
setCcMe(java.lang.Boolean ccMe)
Sets the carbon copy me flag.SheetEmail.AddSheetEmailBuilder
setFormat(SheetEmailFormat format)
Sets the sheet email format (PDF or Excel).SheetEmail.AddSheetEmailBuilder
setFormatDetails(FormatDetails formatDetails)
Sets the format details (paper dimensions).SheetEmail.AddSheetEmailBuilder
setMessage(java.lang.String message)
Sets the message.SheetEmail.AddSheetEmailBuilder
setSendTo(java.util.List<Recipient> sendTo)
Sets the list of recipients to send toSheetEmail.AddSheetEmailBuilder
setSubject(java.lang.String subject)
Sets the subject.
-
-
-
Method Detail
-
getFormat
public SheetEmailFormat getFormat()
Gets the sheet email format (PDF or Excel).- Returns:
- the format
-
setFormat
public SheetEmail.AddSheetEmailBuilder setFormat(SheetEmailFormat format)
Sets the sheet email format (PDF or Excel).- Parameters:
format
- the new format- Returns:
- the builder
-
getFormatDetails
public FormatDetails getFormatDetails()
Gets the format details (paper dimensions).- Returns:
- the format details
-
setFormatDetails
public SheetEmail.AddSheetEmailBuilder setFormatDetails(FormatDetails formatDetails)
Sets the format details (paper dimensions).- Parameters:
formatDetails
- the new format details- Returns:
- the builder
-
getSendTo
public java.util.List<Recipient> getSendTo()
Gets the list of recipients to send to- Returns:
- the list of recipients
-
setSendTo
public SheetEmail.AddSheetEmailBuilder setSendTo(java.util.List<Recipient> sendTo)
Sets the list of recipients to send to- Parameters:
sendTo
- list of recipients- Returns:
- the associated builder
-
getSubject
public java.lang.String getSubject()
Gets the subject.- Returns:
- the subject
-
setSubject
public SheetEmail.AddSheetEmailBuilder setSubject(java.lang.String subject)
Sets the subject.- Parameters:
subject
- the new subject- Returns:
- the associated builder
-
getMessage
public java.lang.String getMessage()
Gets the message.- Returns:
- the message
-
setMessage
public SheetEmail.AddSheetEmailBuilder setMessage(java.lang.String message)
Sets the message.- Parameters:
message
- the new message- Returns:
- the associated builder
-
getCcMe
public java.lang.Boolean getCcMe()
Gets the carbon copy me flag.- Returns:
- the cc me
-
setCcMe
public SheetEmail.AddSheetEmailBuilder setCcMe(java.lang.Boolean ccMe)
Sets the carbon copy me flag.- Parameters:
ccMe
- the new cc me- Returns:
- the associated builder
-
build
public SheetEmail build()
Builds the sheetEmail.- Returns:
- the sheetEmail
-
-