Class SubmitEmailDetails
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.emaildataplane.model.SubmitEmailDetails
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20220926") public final class SubmitEmailDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelDetails that are required by the sender to submit a request to send email.
 Note: Objects should always be created or deserialized using theSubmitEmailDetails.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 theSubmitEmailDetails.Builder, which maintain a set of all explicitly set fields calledSubmitEmailDetails.Builder.__explicitlySet__. ThehashCode()andequals(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).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSubmitEmailDetails.Builder
 - 
Constructor SummaryConstructors Constructor Description SubmitEmailDetails(String messageId, Sender sender, Recipients recipients, String subject, String bodyHtml, String bodyText, List<EmailAddress> replyTo, Map<String,String> headerFields)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubmitEmailDetails.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetBodyHtml()HTML body content in UTF-8.StringgetBodyText()Text body content.Map<String,String>getHeaderFields()The header used by the customer for the email sent.StringgetMessageId()The unique ID for the email’s Message-ID header used for service log correlation.RecipientsgetRecipients()List<EmailAddress>getReplyTo()The email address for the recipient to reply to.SendergetSender()StringgetSubject()A short summary of the content, which will appear in the recipient’s inbox.inthashCode()SubmitEmailDetails.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
SubmitEmailDetails@Deprecated @ConstructorProperties({"messageId","sender","recipients","subject","bodyHtml","bodyText","replyTo","headerFields"}) public SubmitEmailDetails(String messageId, Sender sender, Recipients recipients, String subject, String bodyHtml, String bodyText, List<EmailAddress> replyTo, Map<String,String> headerFields) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static SubmitEmailDetails.Builder builder() Create a new builder.
 - 
toBuilderpublic SubmitEmailDetails.Builder toBuilder() 
 - 
getMessageIdpublic 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
 
 - 
getSenderpublic Sender getSender() 
 - 
getRecipientspublic Recipients getRecipients() 
 - 
getSubjectpublic String getSubject() A short summary of the content, which will appear in the recipient’s inbox.UTF-8 supported RFC 2047. - Returns:
- the value
 
 - 
getBodyHtmlpublic 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
 
 - 
getBodyTextpublic 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
 
 - 
getReplyTopublic List<EmailAddress> getReplyTo() The email address for the recipient to reply to.If left blank, defaults to the sender address. - Returns:
- the value
 
 - 
getHeaderFieldspublic 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
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic 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
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-