public static interface InAppTemplateRequest.Builder extends SdkPojo, CopyableBuilder<InAppTemplateRequest.Builder,InAppTemplateRequest>
| Modifier and Type | Method and Description |
|---|---|
InAppTemplateRequest.Builder |
content(Collection<InAppMessageContent> content)
The content of the message, can include up to 5 modals.
|
InAppTemplateRequest.Builder |
content(Consumer<InAppMessageContent.Builder>... content)
The content of the message, can include up to 5 modals.
|
InAppTemplateRequest.Builder |
content(InAppMessageContent... content)
The content of the message, can include up to 5 modals.
|
InAppTemplateRequest.Builder |
customConfig(Map<String,String> customConfig)
Custom config to be sent to client.
|
InAppTemplateRequest.Builder |
layout(Layout layout)
The layout of the message.
|
InAppTemplateRequest.Builder |
layout(String layout)
The layout of the message.
|
InAppTemplateRequest.Builder |
tags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags to associate with the message template.
|
InAppTemplateRequest.Builder |
templateDescription(String templateDescription)
The description of the template.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildInAppTemplateRequest.Builder content(Collection<InAppMessageContent> content)
The content of the message, can include up to 5 modals. Each modal must contain a message, a header, and background color. ImageUrl and buttons are optional.
content - The content of the message, can include up to 5 modals. Each modal must contain a message, a header,
and background color. ImageUrl and buttons are optional.InAppTemplateRequest.Builder content(InAppMessageContent... content)
The content of the message, can include up to 5 modals. Each modal must contain a message, a header, and background color. ImageUrl and buttons are optional.
content - The content of the message, can include up to 5 modals. Each modal must contain a message, a header,
and background color. ImageUrl and buttons are optional.InAppTemplateRequest.Builder content(Consumer<InAppMessageContent.Builder>... content)
The content of the message, can include up to 5 modals. Each modal must contain a message, a header, and background color. ImageUrl and buttons are optional.
This is a convenience method that creates an instance of theInAppMessageContent.Builder avoiding the need to
create one manually via InAppMessageContent.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #content(List.
content - a consumer that will call methods on
InAppMessageContent.Builder#content(java.util.Collection) InAppTemplateRequest.Builder customConfig(Map<String,String> customConfig)
Custom config to be sent to client.
customConfig - Custom config to be sent to client.InAppTemplateRequest.Builder layout(String layout)
The layout of the message.
InAppTemplateRequest.Builder layout(Layout layout)
The layout of the message.
InAppTemplateRequest.Builder tags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.
tags - A string-to-string map of key-value pairs that defines the tags to associate with the message
template. Each tag consists of a required tag key and an associated tag value.InAppTemplateRequest.Builder templateDescription(String templateDescription)
The description of the template.
templateDescription - The description of the template.Copyright © 2023. All rights reserved.