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