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