Class CfnDetectorModel.SnsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.CfnDetectorModel.SnsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetectorModel.SnsProperty>
- Enclosing interface:
CfnDetectorModel.SnsProperty
@Stability(Stable)
public static final class CfnDetectorModel.SnsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDetectorModel.SnsProperty>
A builder for
CfnDetectorModel.SnsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.payload(IResolvable payload) Sets the value ofCfnDetectorModel.SnsProperty.getPayload()payload(CfnDetectorModel.PayloadProperty payload) Sets the value ofCfnDetectorModel.SnsProperty.getPayload()Sets the value ofCfnDetectorModel.SnsProperty.getTargetArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetArn
Sets the value ofCfnDetectorModel.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 ofCfnDetectorModel.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 CfnDetectorModel.SnsProperty.Builder payload(CfnDetectorModel.PayloadProperty payload) Sets the value ofCfnDetectorModel.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnDetectorModel.SnsProperty>- Returns:
- a new instance of
CfnDetectorModel.SnsProperty - Throws:
NullPointerException- if any required attribute was not provided
-