public static final class CfnDetectorModel.SnsProperty.Builder
extends java.lang.Object
CfnDetectorModel.SnsProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnDetectorModel.SnsProperty |
build()
Builds the configured instance.
|
CfnDetectorModel.SnsProperty.Builder |
payload(CfnDetectorModel.PayloadProperty payload)
Sets the value of
CfnDetectorModel.SnsProperty.getPayload() |
CfnDetectorModel.SnsProperty.Builder |
payload(IResolvable payload)
Sets the value of
CfnDetectorModel.SnsProperty.getPayload() |
CfnDetectorModel.SnsProperty.Builder |
targetArn(java.lang.String targetArn)
Sets the value of
CfnDetectorModel.SnsProperty.getTargetArn() |
public CfnDetectorModel.SnsProperty.Builder targetArn(java.lang.String targetArn)
CfnDetectorModel.SnsProperty.getTargetArn()
targetArn
- The ARN of the Amazon SNS target where the message is sent. This parameter is required.this
public CfnDetectorModel.SnsProperty.Builder payload(IResolvable payload)
CfnDetectorModel.SnsProperty.getPayload()
payload
- You can configure the action payload when you send a message as an Amazon SNS push notification.this
public CfnDetectorModel.SnsProperty.Builder payload(CfnDetectorModel.PayloadProperty payload)
CfnDetectorModel.SnsProperty.getPayload()
payload
- You can configure the action payload when you send a message as an Amazon SNS push notification.this
public CfnDetectorModel.SnsProperty build()
CfnDetectorModel.SnsProperty
java.lang.NullPointerException
- if any required attribute was not provided