Class CfnCampaign.InAppMessageButtonProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnCampaign.InAppMessageButtonProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCampaign.InAppMessageButtonProperty>
- Enclosing interface:
- CfnCampaign.InAppMessageButtonProperty
@Stability(Stable)
public static final class CfnCampaign.InAppMessageButtonProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCampaign.InAppMessageButtonProperty>
A builder for
CfnCampaign.InAppMessageButtonProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionandroid
(IResolvable android) Sets the value ofCfnCampaign.InAppMessageButtonProperty.getAndroid()
Sets the value ofCfnCampaign.InAppMessageButtonProperty.getAndroid()
build()
Builds the configured instance.defaultConfig
(IResolvable defaultConfig) Sets the value ofCfnCampaign.InAppMessageButtonProperty.getDefaultConfig()
defaultConfig
(CfnCampaign.DefaultButtonConfigurationProperty defaultConfig) Sets the value ofCfnCampaign.InAppMessageButtonProperty.getDefaultConfig()
ios
(IResolvable ios) Sets the value ofCfnCampaign.InAppMessageButtonProperty.getIos()
Sets the value ofCfnCampaign.InAppMessageButtonProperty.getIos()
web
(IResolvable web) Sets the value ofCfnCampaign.InAppMessageButtonProperty.getWeb()
Sets the value ofCfnCampaign.InAppMessageButtonProperty.getWeb()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
android
@Stability(Stable) public CfnCampaign.InAppMessageButtonProperty.Builder android(IResolvable android) Sets the value ofCfnCampaign.InAppMessageButtonProperty.getAndroid()
- Parameters:
android
- An object that defines the default behavior for a button in in-app messages sent to Android.- Returns:
this
-
android
@Stability(Stable) public CfnCampaign.InAppMessageButtonProperty.Builder android(CfnCampaign.OverrideButtonConfigurationProperty android) Sets the value ofCfnCampaign.InAppMessageButtonProperty.getAndroid()
- Parameters:
android
- An object that defines the default behavior for a button in in-app messages sent to Android.- Returns:
this
-
defaultConfig
@Stability(Stable) public CfnCampaign.InAppMessageButtonProperty.Builder defaultConfig(IResolvable defaultConfig) Sets the value ofCfnCampaign.InAppMessageButtonProperty.getDefaultConfig()
- Parameters:
defaultConfig
- An object that defines the default behavior for a button in an in-app message.- Returns:
this
-
defaultConfig
@Stability(Stable) public CfnCampaign.InAppMessageButtonProperty.Builder defaultConfig(CfnCampaign.DefaultButtonConfigurationProperty defaultConfig) Sets the value ofCfnCampaign.InAppMessageButtonProperty.getDefaultConfig()
- Parameters:
defaultConfig
- An object that defines the default behavior for a button in an in-app message.- Returns:
this
-
ios
Sets the value ofCfnCampaign.InAppMessageButtonProperty.getIos()
- Parameters:
ios
- An object that defines the default behavior for a button in in-app messages sent to iOS devices.- Returns:
this
-
ios
@Stability(Stable) public CfnCampaign.InAppMessageButtonProperty.Builder ios(CfnCampaign.OverrideButtonConfigurationProperty ios) Sets the value ofCfnCampaign.InAppMessageButtonProperty.getIos()
- Parameters:
ios
- An object that defines the default behavior for a button in in-app messages sent to iOS devices.- Returns:
this
-
web
Sets the value ofCfnCampaign.InAppMessageButtonProperty.getWeb()
- Parameters:
web
- An object that defines the default behavior for a button in in-app messages for web applications.- Returns:
this
-
web
@Stability(Stable) public CfnCampaign.InAppMessageButtonProperty.Builder web(CfnCampaign.OverrideButtonConfigurationProperty web) Sets the value ofCfnCampaign.InAppMessageButtonProperty.getWeb()
- Parameters:
web
- An object that defines the default behavior for a button in in-app messages for web applications.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCampaign.InAppMessageButtonProperty>
- Returns:
- a new instance of
CfnCampaign.InAppMessageButtonProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-