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 HasContentLength
Example: 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 class
SubmitRawEmailRequest.Builder
static class
SubmitRawEmailRequest.ContentType
The 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.Builder
builder()
Return a new builder for this request object.boolean
equals(Object o)
Uses getInvocationCallback and getRetryConfiguration to determine if passed request is equal to ‘this’.InputStream
getBody$()
Alternative accessor for the body parameter.String
getCompartmentId()
The OCID of the compartment that contains the approved sender resource.Long
getContentLength()
The content length of the body.SubmitRawEmailRequest.ContentType
getContentType()
The media type of the body.String
getOpcRequestId()
The request ID for tracing from the systemInputStream
getRawMessage()
This should be formatted in valid MIME format.List<String>
getRecipients()
The destination for the email, all recipients including to, cc and bcc addresses.String
getSender()
The envelope and the header from email address, that is sending the email.int
hashCode()
Uses getInvocationCallback and getRetryConfiguration to generate a hash.SubmitRawEmailRequest.Builder
toBuilder()
Return an instance ofSubmitRawEmailRequest.Builder
that allows you to modify request properties.String
toString()
-
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:
getContentLength
in 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.Builder
that allows you to modify request properties.- Returns:
- instance of
SubmitRawEmailRequest.Builder
that 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:BmcRequest
Uses getInvocationCallback and getRetryConfiguration to determine if passed request is equal to ‘this’.- Overrides:
equals
in classBmcRequest<InputStream>
-
hashCode
public int hashCode()
Description copied from class:BmcRequest
Uses getInvocationCallback and getRetryConfiguration to generate a hash.- Overrides:
hashCode
in classBmcRequest<InputStream>
-
-