Class 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 Detail

      • AddSheetEmailBuilder

        public AddSheetEmailBuilder()
    • Method Detail

      • getFormat

        public SheetEmailFormat getFormat()
        Gets the sheet email format (PDF or Excel).
        Returns:
        the format
      • 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