Class SubmitEmailDetails


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20220926")
    public final class SubmitEmailDetails
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    Details that are required by the sender to submit a request to send email.
    Note: Objects should always be created or deserialized using the SubmitEmailDetails.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the SubmitEmailDetails.Builder, which maintain a set of all explicitly set fields called SubmitEmailDetails.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
    • Method Detail

      • getMessageId

        public String getMessageId()
        The unique ID for the email’s Message-ID header used for service log correlation.

        The submission will return an error if the syntax is not a valid RFC 5322 Message-ID. This will be generated if not provided. Example: sdiofu234qwermls24fd@mail.example.com

        Returns:
        the value
      • getSender

        public Sender getSender()
      • getRecipients

        public Recipients getRecipients()
      • getSubject

        public String getSubject()
        A short summary of the content, which will appear in the recipient’s inbox.

        UTF-8 supported RFC 2047.

        Returns:
        the value
      • getBodyHtml

        public String getBodyHtml()
        HTML body content in UTF-8.

        NOTE: Even though bodytext and bodyhtml are both optional, at least one of them must be provided.

        Returns:
        the value
      • getBodyText

        public String getBodyText()
        Text body content.

        NOTE: Even though bodytext and bodyhtml are both optional, at least one of them must be provided.

        Returns:
        the value
      • getReplyTo

        public List<EmailAddress> getReplyTo()
        The email address for the recipient to reply to.

        If left blank, defaults to the sender address.

        Returns:
        the value
      • getHeaderFields

        public Map<String,​String> getHeaderFields()
        The header used by the customer for the email sent.

        Reserved headers are not allowed e.g “subject”, “from”, and “to” etc. Example: {“bar-key”: “value”}

        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel