Interface InboundEmailContent.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InboundEmailContent.Builder,
,InboundEmailContent> SdkBuilder<InboundEmailContent.Builder,
,InboundEmailContent> SdkPojo
- Enclosing class:
InboundEmailContent
@Mutable
@NotThreadSafe
public static interface InboundEmailContent.Builder
extends SdkPojo, CopyableBuilder<InboundEmailContent.Builder,InboundEmailContent>
-
Method Summary
Modifier and TypeMethodDescriptionmessageSourceType
(String messageSourceType) The message source type, that is,RAW
.messageSourceType
(InboundMessageSourceType messageSourceType) The message source type, that is,RAW
.default InboundEmailContent.Builder
rawMessage
(Consumer<InboundRawMessage.Builder> rawMessage) The raw email body content.rawMessage
(InboundRawMessage rawMessage) The raw email body content.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
.- Parameters:
messageSourceType
- The message source type, that is,RAW
.- 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
.- Parameters:
messageSourceType
- The message source type, that is,RAW
.- 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 theInboundRawMessage.Builder
avoiding the need to create one manually viaInboundRawMessage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torawMessage(InboundRawMessage)
.- Parameters:
rawMessage
- a consumer that will call methods onInboundRawMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-