public static final class CfnInAppTemplate.InAppMessageContentProperty.Builder
extends java.lang.Object
CfnInAppTemplate.InAppMessageContentProperty
Constructor and Description |
---|
Builder() |
public CfnInAppTemplate.InAppMessageContentProperty.Builder backgroundColor(java.lang.String backgroundColor)
CfnInAppTemplate.InAppMessageContentProperty.getBackgroundColor()
backgroundColor
- The background color for an in-app message banner, expressed as a hex color code (such as #000000 for black).this
public CfnInAppTemplate.InAppMessageContentProperty.Builder bodyConfig(IResolvable bodyConfig)
CfnInAppTemplate.InAppMessageContentProperty.getBodyConfig()
bodyConfig
- An object that contains configuration information about the header or title text of the in-app message.this
public CfnInAppTemplate.InAppMessageContentProperty.Builder bodyConfig(CfnInAppTemplate.BodyConfigProperty bodyConfig)
CfnInAppTemplate.InAppMessageContentProperty.getBodyConfig()
bodyConfig
- An object that contains configuration information about the header or title text of the in-app message.this
public CfnInAppTemplate.InAppMessageContentProperty.Builder headerConfig(IResolvable headerConfig)
CfnInAppTemplate.InAppMessageContentProperty.getHeaderConfig()
headerConfig
- An object that contains configuration information about the header or title text of the in-app message.this
public CfnInAppTemplate.InAppMessageContentProperty.Builder headerConfig(CfnInAppTemplate.HeaderConfigProperty headerConfig)
CfnInAppTemplate.InAppMessageContentProperty.getHeaderConfig()
headerConfig
- An object that contains configuration information about the header or title text of the in-app message.this
public CfnInAppTemplate.InAppMessageContentProperty.Builder imageUrl(java.lang.String imageUrl)
CfnInAppTemplate.InAppMessageContentProperty.getImageUrl()
imageUrl
- The URL of the image that appears on an in-app message banner.this
public CfnInAppTemplate.InAppMessageContentProperty.Builder primaryBtn(IResolvable primaryBtn)
CfnInAppTemplate.InAppMessageContentProperty.getPrimaryBtn()
primaryBtn
- An object that contains configuration information about the primary button in an in-app message.this
public CfnInAppTemplate.InAppMessageContentProperty.Builder primaryBtn(CfnInAppTemplate.ButtonConfigProperty primaryBtn)
CfnInAppTemplate.InAppMessageContentProperty.getPrimaryBtn()
primaryBtn
- An object that contains configuration information about the primary button in an in-app message.this
public CfnInAppTemplate.InAppMessageContentProperty.Builder secondaryBtn(IResolvable secondaryBtn)
CfnInAppTemplate.InAppMessageContentProperty.getSecondaryBtn()
secondaryBtn
- An object that contains configuration information about the secondary button in an in-app message.this
public CfnInAppTemplate.InAppMessageContentProperty.Builder secondaryBtn(CfnInAppTemplate.ButtonConfigProperty secondaryBtn)
CfnInAppTemplate.InAppMessageContentProperty.getSecondaryBtn()
secondaryBtn
- An object that contains configuration information about the secondary button in an in-app message.this
public CfnInAppTemplate.InAppMessageContentProperty build()
CfnInAppTemplate.InAppMessageContentProperty
java.lang.NullPointerException
- if any required attribute was not provided