Class SubmitRawEmailRequest
- java.lang.Object
-
- com.oracle.bmc.requests.BmcRequest<InputStream>
-
- com.oracle.bmc.emaildataplane.requests.SubmitRawEmailRequest
-
- All Implemented Interfaces:
HasContentLength
@Generated(value="OracleSDKGenerator", comments="API Version: 20220926") public class SubmitRawEmailRequest extends BmcRequest<InputStream> implements HasContentLengthExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/emaildataplane/SubmitRawEmailExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use SubmitRawEmailRequest.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubmitRawEmailRequest.Builderstatic classSubmitRawEmailRequest.ContentTypeThe media type of the body.
-
Constructor Summary
Constructors Constructor Description SubmitRawEmailRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubmitRawEmailRequest.Builderbuilder()Return a new builder for this request object.booleanequals(Object o)Uses getInvocationCallback and getRetryConfiguration to determine if passed request is equal to ‘this’.InputStreamgetBody$()Alternative accessor for the body parameter.StringgetCompartmentId()The OCID of the compartment that contains the approved sender resource.LonggetContentLength()The content length of the body.SubmitRawEmailRequest.ContentTypegetContentType()The media type of the body.StringgetOpcRequestId()The request ID for tracing from the systemInputStreamgetRawMessage()This should be formatted in valid MIME format.List<String>getRecipients()The destination for the email, all recipients including to, cc and bcc addresses.StringgetSender()The envelope and the header from email address, that is sending the email.inthashCode()Uses getInvocationCallback and getRetryConfiguration to generate a hash.SubmitRawEmailRequest.BuildertoBuilder()Return an instance ofSubmitRawEmailRequest.Builderthat allows you to modify request properties.StringtoString()-
Methods inherited from class com.oracle.bmc.requests.BmcRequest
getInvocationCallback, getRetryConfiguration, setInvocationCallback, setRetryConfiguration, supportsExpect100Continue
-
-
-
-
Method Detail
-
getContentType
public SubmitRawEmailRequest.ContentType getContentType()
The media type of the body.
-
getCompartmentId
public String getCompartmentId()
The OCID of the compartment that contains the approved sender resource.
-
getSender
public String getSender()
The envelope and the header from email address, that is sending the email.Email address must be an approved sender.
-
getRecipients
public List<String> getRecipients()
The destination for the email, all recipients including to, cc and bcc addresses.
-
getRawMessage
public InputStream getRawMessage()
This should be formatted in valid MIME format.Message can include attachments. MIME libraries should be used to convert the content into the appropriate format.
-
getOpcRequestId
public String getOpcRequestId()
The request ID for tracing from the system
-
getContentLength
public Long getContentLength()
The content length of the body.- Specified by:
getContentLengthin interfaceHasContentLength
-
getBody$
public InputStream getBody$()
Alternative accessor for the body parameter.- Overrides:
getBody$in classBmcRequest<InputStream>- Returns:
- body parameter
-
toBuilder
public SubmitRawEmailRequest.Builder toBuilder()
Return an instance ofSubmitRawEmailRequest.Builderthat allows you to modify request properties.- Returns:
- instance of
SubmitRawEmailRequest.Builderthat allows you to modify request properties.
-
builder
public static SubmitRawEmailRequest.Builder builder()
Return a new builder for this request object.- Returns:
- builder for the request object
-
equals
public boolean equals(Object o)
Description copied from class:BmcRequestUses getInvocationCallback and getRetryConfiguration to determine if passed request is equal to ‘this’.- Overrides:
equalsin classBmcRequest<InputStream>
-
hashCode
public int hashCode()
Description copied from class:BmcRequestUses getInvocationCallback and getRetryConfiguration to generate a hash.- Overrides:
hashCodein classBmcRequest<InputStream>
-
-