public static interface InAppTemplateResponse.Builder extends SdkPojo, CopyableBuilder<InAppTemplateResponse.Builder,InAppTemplateResponse>
| Modifier and Type | Method and Description |
|---|---|
InAppTemplateResponse.Builder |
arn(String arn)
The resource arn of the template.
|
InAppTemplateResponse.Builder |
content(Collection<InAppMessageContent> content)
The content of the message, can include up to 5 modals.
|
InAppTemplateResponse.Builder |
content(Consumer<InAppMessageContent.Builder>... content)
The content of the message, can include up to 5 modals.
|
InAppTemplateResponse.Builder |
content(InAppMessageContent... content)
The content of the message, can include up to 5 modals.
|
InAppTemplateResponse.Builder |
creationDate(String creationDate)
The creation date of the template.
|
InAppTemplateResponse.Builder |
customConfig(Map<String,String> customConfig)
Custom config to be sent to client.
|
InAppTemplateResponse.Builder |
lastModifiedDate(String lastModifiedDate)
The last modified date of the template.
|
InAppTemplateResponse.Builder |
layout(Layout layout)
The layout of the message.
|
InAppTemplateResponse.Builder |
layout(String layout)
The layout of the message.
|
InAppTemplateResponse.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.
|
InAppTemplateResponse.Builder |
templateDescription(String templateDescription)
The description of the template.
|
InAppTemplateResponse.Builder |
templateName(String templateName)
The name of the template.
|
InAppTemplateResponse.Builder |
templateType(String templateType)
The type of the template.
|
InAppTemplateResponse.Builder |
templateType(TemplateType templateType)
The type of the template.
|
InAppTemplateResponse.Builder |
version(String version)
The version id of the template.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildInAppTemplateResponse.Builder arn(String arn)
The resource arn of the template.
arn - The resource arn of the template.InAppTemplateResponse.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.InAppTemplateResponse.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.InAppTemplateResponse.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) InAppTemplateResponse.Builder creationDate(String creationDate)
The creation date of the template.
creationDate - The creation date of the template.InAppTemplateResponse.Builder customConfig(Map<String,String> customConfig)
Custom config to be sent to client.
customConfig - Custom config to be sent to client.InAppTemplateResponse.Builder lastModifiedDate(String lastModifiedDate)
The last modified date of the template.
lastModifiedDate - The last modified date of the template.InAppTemplateResponse.Builder layout(String layout)
The layout of the message.
InAppTemplateResponse.Builder layout(Layout layout)
The layout of the message.
InAppTemplateResponse.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.InAppTemplateResponse.Builder templateDescription(String templateDescription)
The description of the template.
templateDescription - The description of the template.InAppTemplateResponse.Builder templateName(String templateName)
The name of the template.
templateName - The name of the template.InAppTemplateResponse.Builder templateType(String templateType)
The type of the template.
templateType - The type of the template.TemplateType,
TemplateTypeInAppTemplateResponse.Builder templateType(TemplateType templateType)
The type of the template.
templateType - The type of the template.TemplateType,
TemplateTypeInAppTemplateResponse.Builder version(String version)
The version id of the template.
version - The version id of the template.Copyright © 2023. All rights reserved.