Interface InAppTemplateResponse.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InAppTemplateResponse.Builder,InAppTemplateResponse>,SdkBuilder<InAppTemplateResponse.Builder,InAppTemplateResponse>,SdkPojo
- Enclosing class:
- InAppTemplateResponse
public static interface InAppTemplateResponse.Builder extends SdkPojo, CopyableBuilder<InAppTemplateResponse.Builder,InAppTemplateResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InAppTemplateResponse.Builderarn(String arn)The resource arn of the template.InAppTemplateResponse.Buildercontent(Collection<InAppMessageContent> content)The content of the message, can include up to 5 modals.InAppTemplateResponse.Buildercontent(Consumer<InAppMessageContent.Builder>... content)The content of the message, can include up to 5 modals.InAppTemplateResponse.Buildercontent(InAppMessageContent... content)The content of the message, can include up to 5 modals.InAppTemplateResponse.BuildercreationDate(String creationDate)The creation date of the template.InAppTemplateResponse.BuildercustomConfig(Map<String,String> customConfig)Custom config to be sent to client.InAppTemplateResponse.BuilderlastModifiedDate(String lastModifiedDate)The last modified date of the template.InAppTemplateResponse.Builderlayout(String layout)The layout of the message.InAppTemplateResponse.Builderlayout(Layout layout)The layout of the message.InAppTemplateResponse.Buildertags(Map<String,String> tags)A string-to-string map of key-value pairs that defines the tags to associate with the message template.InAppTemplateResponse.BuildertemplateDescription(String templateDescription)The description of the template.InAppTemplateResponse.BuildertemplateName(String templateName)The name of the template.InAppTemplateResponse.BuildertemplateType(String templateType)The type of the template.InAppTemplateResponse.BuildertemplateType(TemplateType templateType)The type of the template.InAppTemplateResponse.Builderversion(String version)The version id of the template.-
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
-
arn
InAppTemplateResponse.Builder arn(String arn)
The resource arn of the template.
- Parameters:
arn- The resource arn of the template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
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.Builderavoiding the need to create one manually viaInAppMessageContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#content(List.) - Parameters:
content- a consumer that will call methods onInAppMessageContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#content(java.util.Collection)
-
creationDate
InAppTemplateResponse.Builder creationDate(String creationDate)
The creation date of the template.
- Parameters:
creationDate- The creation date of the template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customConfig
InAppTemplateResponse.Builder customConfig(Map<String,String> customConfig)
Custom config to be sent to client.
- Parameters:
customConfig- Custom config to be sent to client.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedDate
InAppTemplateResponse.Builder lastModifiedDate(String lastModifiedDate)
The last modified date of the template.
- Parameters:
lastModifiedDate- The last modified date of the template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
layout
InAppTemplateResponse.Builder layout(String layout)
The layout of the message.
-
layout
InAppTemplateResponse.Builder layout(Layout layout)
The layout of the message.
-
tags
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateDescription
InAppTemplateResponse.Builder templateDescription(String templateDescription)
The description of the template.
- Parameters:
templateDescription- The description of the template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateName
InAppTemplateResponse.Builder templateName(String templateName)
The name of the template.
- Parameters:
templateName- The name of the template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateType
InAppTemplateResponse.Builder templateType(String templateType)
The type of the template.
- Parameters:
templateType- The type of the template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TemplateType,TemplateType
-
templateType
InAppTemplateResponse.Builder templateType(TemplateType templateType)
The type of the template.
- Parameters:
templateType- The type of the template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TemplateType,TemplateType
-
version
InAppTemplateResponse.Builder version(String version)
The version id of the template.
- Parameters:
version- The version id of the template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-