Class CfnAlarmModelPropsMixin.SnsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iotevents.CfnAlarmModelPropsMixin.SnsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlarmModelPropsMixin.SnsProperty>
- Enclosing interface:
CfnAlarmModelPropsMixin.SnsProperty
@Stability(Stable)
public static final class CfnAlarmModelPropsMixin.SnsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlarmModelPropsMixin.SnsProperty>
A builder for
CfnAlarmModelPropsMixin.SnsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnAlarmModelPropsMixin.SnsProperty.getPayload()payload(IResolvable payload) Sets the value ofCfnAlarmModelPropsMixin.SnsProperty.getPayload()Sets the value ofCfnAlarmModelPropsMixin.SnsProperty.getTargetArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
payload
Sets the value ofCfnAlarmModelPropsMixin.SnsProperty.getPayload()- Parameters:
payload- You can configure the action payload when you send a message as an Amazon SNS push notification.- Returns:
this
-
payload
@Stability(Stable) public CfnAlarmModelPropsMixin.SnsProperty.Builder payload(CfnAlarmModelPropsMixin.PayloadProperty payload) Sets the value ofCfnAlarmModelPropsMixin.SnsProperty.getPayload()- Parameters:
payload- You can configure the action payload when you send a message as an Amazon SNS push notification.- Returns:
this
-
targetArn
Sets the value ofCfnAlarmModelPropsMixin.SnsProperty.getTargetArn()- Parameters:
targetArn- The ARN of the Amazon SNS target where the message is sent.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAlarmModelPropsMixin.SnsProperty>- Returns:
- a new instance of
CfnAlarmModelPropsMixin.SnsProperty - Throws:
NullPointerException- if any required attribute was not provided
-