Class CfnBot.ImageResponseCardProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.ImageResponseCardProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.ImageResponseCardProperty>
- Enclosing interface:
CfnBot.ImageResponseCardProperty
@Stability(Stable)
public static final class CfnBot.ImageResponseCardProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.ImageResponseCardProperty>
A builder for
CfnBot.ImageResponseCardProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnBot.ImageResponseCardProperty.getButtons()
buttons
(IResolvable buttons) Sets the value ofCfnBot.ImageResponseCardProperty.getButtons()
Sets the value ofCfnBot.ImageResponseCardProperty.getImageUrl()
Sets the value ofCfnBot.ImageResponseCardProperty.getSubtitle()
Sets the value ofCfnBot.ImageResponseCardProperty.getTitle()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
title
Sets the value ofCfnBot.ImageResponseCardProperty.getTitle()
- Parameters:
title
- The title to display on the response card. This parameter is required. The format of the title is determined by the platform displaying the response card.- Returns:
this
-
buttons
Sets the value ofCfnBot.ImageResponseCardProperty.getButtons()
- Parameters:
buttons
- A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.- Returns:
this
-
buttons
@Stability(Stable) public CfnBot.ImageResponseCardProperty.Builder buttons(List<? extends Object> buttons) Sets the value ofCfnBot.ImageResponseCardProperty.getButtons()
- Parameters:
buttons
- A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.- Returns:
this
-
imageUrl
Sets the value ofCfnBot.ImageResponseCardProperty.getImageUrl()
- Parameters:
imageUrl
- The URL of an image to display on the response card. The image URL must be publicly available so that the platform displaying the response card has access to the image.- Returns:
this
-
subtitle
Sets the value ofCfnBot.ImageResponseCardProperty.getSubtitle()
- Parameters:
subtitle
- The subtitle to display on the response card. The format of the subtitle is determined by the platform displaying the response card.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.ImageResponseCardProperty>
- Returns:
- a new instance of
CfnBot.ImageResponseCardProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-