Interface OutboundEmailContent.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<OutboundEmailContent.Builder,
,OutboundEmailContent> SdkBuilder<OutboundEmailContent.Builder,
,OutboundEmailContent> SdkPojo
- Enclosing class:
OutboundEmailContent
@Mutable
@NotThreadSafe
public static interface OutboundEmailContent.Builder
extends SdkPojo, CopyableBuilder<OutboundEmailContent.Builder,OutboundEmailContent>
-
Method Summary
Modifier and TypeMethodDescriptionmessageSourceType
(String messageSourceType) The message source type, that is,RAW
orTEMPLATE
.messageSourceType
(OutboundMessageSourceType messageSourceType) The message source type, that is,RAW
orTEMPLATE
.default OutboundEmailContent.Builder
rawMessage
(Consumer<OutboundRawMessage.Builder> rawMessage) The raw email body content.rawMessage
(OutboundRawMessage rawMessage) The raw email body content.default OutboundEmailContent.Builder
templatedMessageConfig
(Consumer<TemplatedMessageConfig.Builder> templatedMessageConfig) Information about template message configuration.templatedMessageConfig
(TemplatedMessageConfig templatedMessageConfig) Information about template message configuration.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
messageSourceType
The message source type, that is,
RAW
orTEMPLATE
.- Parameters:
messageSourceType
- The message source type, that is,RAW
orTEMPLATE
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
messageSourceType
The message source type, that is,
RAW
orTEMPLATE
.- Parameters:
messageSourceType
- The message source type, that is,RAW
orTEMPLATE
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
templatedMessageConfig
Information about template message configuration.
- Parameters:
templatedMessageConfig
- Information about template message configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templatedMessageConfig
default OutboundEmailContent.Builder templatedMessageConfig(Consumer<TemplatedMessageConfig.Builder> templatedMessageConfig) Information about template message configuration.
This is a convenience method that creates an instance of theTemplatedMessageConfig.Builder
avoiding the need to create one manually viaTemplatedMessageConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totemplatedMessageConfig(TemplatedMessageConfig)
.- Parameters:
templatedMessageConfig
- a consumer that will call methods onTemplatedMessageConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rawMessage
The raw email body content.
- Parameters:
rawMessage
- The raw email body content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rawMessage
The raw email body content.
This is a convenience method that creates an instance of theOutboundRawMessage.Builder
avoiding the need to create one manually viaOutboundRawMessage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torawMessage(OutboundRawMessage)
.- Parameters:
rawMessage
- a consumer that will call methods onOutboundRawMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-