Class SubmitRawEmailRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.emaildataplane.requests.SubmitRawEmailRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<SubmitRawEmailRequest,InputStream>
- Enclosing class:
- SubmitRawEmailRequest
public static class SubmitRawEmailRequest.Builder extends Object implements BmcRequest.Builder<SubmitRawEmailRequest,InputStream>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubmitRawEmailRequest.Builder
body$(InputStream body)
Alternative setter for the body parameter.SubmitRawEmailRequest
build()
Build the instance of SubmitRawEmailRequest as configured by this builderSubmitRawEmailRequest
buildWithoutInvocationCallback()
Build the instance of SubmitRawEmailRequest as configured by this builderSubmitRawEmailRequest.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the approved sender resource.SubmitRawEmailRequest.Builder
contentLength(Long contentLength)
The content length of the body.SubmitRawEmailRequest.Builder
contentType(SubmitRawEmailRequest.ContentType contentType)
The media type of the body.SubmitRawEmailRequest.Builder
copy(SubmitRawEmailRequest o)
Copy method to populate the builder with values from the given instance.SubmitRawEmailRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.SubmitRawEmailRequest.Builder
opcRequestId(String opcRequestId)
The request ID for tracing from the systemSubmitRawEmailRequest.Builder
rawMessage(InputStream rawMessage)
This should be formatted in valid MIME format.SubmitRawEmailRequest.Builder
recipients(String singularValue)
Singular setter.SubmitRawEmailRequest.Builder
recipients(List<String> recipients)
The destination for the email, all recipients including to, cc and bcc addresses.SubmitRawEmailRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.SubmitRawEmailRequest.Builder
sender(String sender)
The envelope and the header from email address, that is sending the email.
-
-
-
Method Detail
-
contentType
public SubmitRawEmailRequest.Builder contentType(SubmitRawEmailRequest.ContentType contentType)
The media type of the body.- Parameters:
contentType
- the value to set- Returns:
- this builder instance
-
compartmentId
public SubmitRawEmailRequest.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the approved sender resource.- Parameters:
compartmentId
- the value to set- Returns:
- this builder instance
-
sender
public SubmitRawEmailRequest.Builder sender(String sender)
The envelope and the header from email address, that is sending the email.Email address must be an approved sender.
- Parameters:
sender
- the value to set- Returns:
- this builder instance
-
recipients
public SubmitRawEmailRequest.Builder recipients(List<String> recipients)
The destination for the email, all recipients including to, cc and bcc addresses.- Parameters:
recipients
- the value to set- Returns:
- this builder instance
-
recipients
public SubmitRawEmailRequest.Builder recipients(String singularValue)
Singular setter.The destination for the email, all recipients including to, cc and bcc addresses.
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
rawMessage
public SubmitRawEmailRequest.Builder rawMessage(InputStream rawMessage)
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.
- Parameters:
rawMessage
- the value to set- Returns:
- this builder instance
-
opcRequestId
public SubmitRawEmailRequest.Builder opcRequestId(String opcRequestId)
The request ID for tracing from the system- Parameters:
opcRequestId
- the value to set- Returns:
- this builder instance
-
contentLength
public SubmitRawEmailRequest.Builder contentLength(Long contentLength)
The content length of the body.- Parameters:
contentLength
- the value to set- Returns:
- this builder instance
-
invocationCallback
public SubmitRawEmailRequest.Builder invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.- Parameters:
invocationCallback
- the invocation callback to be set for the request- Returns:
- this builder instance
-
retryConfiguration
public SubmitRawEmailRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.- Parameters:
retryConfiguration
- the retry configuration to be used for the request- Returns:
- this builder instance
-
copy
public SubmitRawEmailRequest.Builder copy(SubmitRawEmailRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<SubmitRawEmailRequest,InputStream>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public SubmitRawEmailRequest build()
Build the instance of SubmitRawEmailRequest as configured by this builderNote that this method takes calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account, while the methodbuildWithoutInvocationCallback()
does not.This is the preferred method to build an instance.
- Specified by:
build
in interfaceBmcRequest.Builder<SubmitRawEmailRequest,InputStream>
- Returns:
- instance of SubmitRawEmailRequest
-
body$
public SubmitRawEmailRequest.Builder body$(InputStream body)
Alternative setter for the body parameter.- Specified by:
body$
in interfaceBmcRequest.Builder<SubmitRawEmailRequest,InputStream>
- Parameters:
body
- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public SubmitRawEmailRequest buildWithoutInvocationCallback()
Build the instance of SubmitRawEmailRequest as configured by this builderNote that this method does not take calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account, while the methodbuild()
does- Returns:
- instance of SubmitRawEmailRequest
-
-