Interface Message.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Message.Builder,Message>,SdkBuilder<Message.Builder,Message>,SdkPojo
- Enclosing class:
- Message
public static interface Message.Builder extends SdkPojo, CopyableBuilder<Message.Builder,Message>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Message.Builderbody(Consumer<Body.Builder> body)The body of the message.Message.Builderbody(Body body)The body of the message.Message.Builderheaders(Collection<MessageHeader> headers)The list of message headers that will be added to the email message.Message.Builderheaders(Consumer<MessageHeader.Builder>... headers)The list of message headers that will be added to the email message.Message.Builderheaders(MessageHeader... headers)The list of message headers that will be added to the email message.default Message.Buildersubject(Consumer<Content.Builder> subject)The subject line of the email.Message.Buildersubject(Content subject)The subject line of the email.-
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 Detail
-
subject
Message.Builder subject(Content subject)
The subject line of the email. The subject line can only contain 7-bit ASCII characters. However, you can specify non-ASCII characters in the subject line by using encoded-word syntax, as described in RFC 2047.
- Parameters:
subject- The subject line of the email. The subject line can only contain 7-bit ASCII characters. However, you can specify non-ASCII characters in the subject line by using encoded-word syntax, as described in RFC 2047.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subject
default Message.Builder subject(Consumer<Content.Builder> subject)
The subject line of the email. The subject line can only contain 7-bit ASCII characters. However, you can specify non-ASCII characters in the subject line by using encoded-word syntax, as described in RFC 2047.
This is a convenience method that creates an instance of theContent.Builderavoiding the need to create one manually viaContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosubject(Content).- Parameters:
subject- a consumer that will call methods onContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
subject(Content)
-
body
Message.Builder body(Body body)
The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both.
- Parameters:
body- The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
body
default Message.Builder body(Consumer<Body.Builder> body)
The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both.
This is a convenience method that creates an instance of theBody.Builderavoiding the need to create one manually viaBody.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobody(Body).- Parameters:
body- a consumer that will call methods onBody.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
body(Body)
-
headers
Message.Builder headers(Collection<MessageHeader> headers)
The list of message headers that will be added to the email message.
- Parameters:
headers- The list of message headers that will be added to the email message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
headers
Message.Builder headers(MessageHeader... headers)
The list of message headers that will be added to the email message.
- Parameters:
headers- The list of message headers that will be added to the email message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
headers
Message.Builder headers(Consumer<MessageHeader.Builder>... headers)
The list of message headers that will be added to the email message.
This is a convenience method that creates an instance of theMessageHeader.Builderavoiding the need to create one manually viaMessageHeader.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#headers(List.) - Parameters:
headers- a consumer that will call methods onMessageHeader.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#headers(java.util.Collection)
-
-