Class CfnBotPropsMixin.ImageResponseCardProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.ImageResponseCardProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.ImageResponseCardProperty>
- Enclosing interface:
CfnBotPropsMixin.ImageResponseCardProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.ImageResponseCardProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.ImageResponseCardProperty>
A builder for
CfnBotPropsMixin.ImageResponseCardProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnBotPropsMixin.ImageResponseCardProperty.getButtons()buttons(IResolvable buttons) Sets the value ofCfnBotPropsMixin.ImageResponseCardProperty.getButtons()Sets the value ofCfnBotPropsMixin.ImageResponseCardProperty.getImageUrl()Sets the value ofCfnBotPropsMixin.ImageResponseCardProperty.getSubtitle()Sets the value ofCfnBotPropsMixin.ImageResponseCardProperty.getTitle()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
buttons
@Stability(Stable) public CfnBotPropsMixin.ImageResponseCardProperty.Builder buttons(IResolvable buttons) Sets the value ofCfnBotPropsMixin.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 CfnBotPropsMixin.ImageResponseCardProperty.Builder buttons(List<? extends Object> buttons) Sets the value ofCfnBotPropsMixin.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
@Stability(Stable) public CfnBotPropsMixin.ImageResponseCardProperty.Builder imageUrl(String imageUrl) Sets the value ofCfnBotPropsMixin.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
@Stability(Stable) public CfnBotPropsMixin.ImageResponseCardProperty.Builder subtitle(String subtitle) Sets the value ofCfnBotPropsMixin.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
-
title
Sets the value ofCfnBotPropsMixin.ImageResponseCardProperty.getTitle()- Parameters:
title- The title to display on the response card. The format of the title is determined by the platform displaying the response card.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.ImageResponseCardProperty>- Returns:
- a new instance of
CfnBotPropsMixin.ImageResponseCardProperty - Throws:
NullPointerException- if any required attribute was not provided
-