Interface InAppMessageContent.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InAppMessageContent.Builder,InAppMessageContent>,SdkBuilder<InAppMessageContent.Builder,InAppMessageContent>,SdkPojo
- Enclosing class:
- InAppMessageContent
public static interface InAppMessageContent.Builder extends SdkPojo, CopyableBuilder<InAppMessageContent.Builder,InAppMessageContent>
-
-
Method Summary
-
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, sdkFields
-
-
-
-
Method Detail
-
backgroundColor
InAppMessageContent.Builder backgroundColor(String backgroundColor)
The background color for the message.
- Parameters:
backgroundColor- The background color for the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bodyConfig
InAppMessageContent.Builder bodyConfig(InAppMessageBodyConfig bodyConfig)
The configuration for the message body.
- Parameters:
bodyConfig- The configuration for the message body.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bodyConfig
default InAppMessageContent.Builder bodyConfig(Consumer<InAppMessageBodyConfig.Builder> bodyConfig)
The configuration for the message body.
This is a convenience method that creates an instance of theInAppMessageBodyConfig.Builderavoiding the need to create one manually viaInAppMessageBodyConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobodyConfig(InAppMessageBodyConfig).- Parameters:
bodyConfig- a consumer that will call methods onInAppMessageBodyConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
bodyConfig(InAppMessageBodyConfig)
-
headerConfig
InAppMessageContent.Builder headerConfig(InAppMessageHeaderConfig headerConfig)
The configuration for the message header.
- Parameters:
headerConfig- The configuration for the message header.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
headerConfig
default InAppMessageContent.Builder headerConfig(Consumer<InAppMessageHeaderConfig.Builder> headerConfig)
The configuration for the message header.
This is a convenience method that creates an instance of theInAppMessageHeaderConfig.Builderavoiding the need to create one manually viaInAppMessageHeaderConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toheaderConfig(InAppMessageHeaderConfig).- Parameters:
headerConfig- a consumer that will call methods onInAppMessageHeaderConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
headerConfig(InAppMessageHeaderConfig)
-
imageUrl
InAppMessageContent.Builder imageUrl(String imageUrl)
The image url for the background of message.
- Parameters:
imageUrl- The image url for the background of message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
primaryBtn
InAppMessageContent.Builder primaryBtn(InAppMessageButton primaryBtn)
The first button inside the message.
- Parameters:
primaryBtn- The first button inside the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
primaryBtn
default InAppMessageContent.Builder primaryBtn(Consumer<InAppMessageButton.Builder> primaryBtn)
The first button inside the message.
This is a convenience method that creates an instance of theInAppMessageButton.Builderavoiding the need to create one manually viaInAppMessageButton.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprimaryBtn(InAppMessageButton).- Parameters:
primaryBtn- a consumer that will call methods onInAppMessageButton.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
primaryBtn(InAppMessageButton)
-
secondaryBtn
InAppMessageContent.Builder secondaryBtn(InAppMessageButton secondaryBtn)
The second button inside message.
- Parameters:
secondaryBtn- The second button inside message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondaryBtn
default InAppMessageContent.Builder secondaryBtn(Consumer<InAppMessageButton.Builder> secondaryBtn)
The second button inside message.
This is a convenience method that creates an instance of theInAppMessageButton.Builderavoiding the need to create one manually viaInAppMessageButton.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosecondaryBtn(InAppMessageButton).- Parameters:
secondaryBtn- a consumer that will call methods onInAppMessageButton.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
secondaryBtn(InAppMessageButton)
-
-