Class CfnTopicRulePropsMixin.SnsActionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iot.CfnTopicRulePropsMixin.SnsActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRulePropsMixin.SnsActionProperty>
- Enclosing interface:
CfnTopicRulePropsMixin.SnsActionProperty
@Stability(Stable)
public static final class CfnTopicRulePropsMixin.SnsActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRulePropsMixin.SnsActionProperty>
A builder for
CfnTopicRulePropsMixin.SnsActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.messageFormat(String messageFormat) Sets the value ofCfnTopicRulePropsMixin.SnsActionProperty.getMessageFormat()Sets the value ofCfnTopicRulePropsMixin.SnsActionProperty.getRoleArn()Sets the value ofCfnTopicRulePropsMixin.SnsActionProperty.getRoleArn()Sets the value ofCfnTopicRulePropsMixin.SnsActionProperty.getTargetArn()Sets the value ofCfnTopicRulePropsMixin.SnsActionProperty.getTargetArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
messageFormat
@Stability(Stable) public CfnTopicRulePropsMixin.SnsActionProperty.Builder messageFormat(String messageFormat) Sets the value ofCfnTopicRulePropsMixin.SnsActionProperty.getMessageFormat()- Parameters:
messageFormat- (Optional) The message format of the message to publish. Accepted values are "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted. For more information, see Amazon SNS Message and JSON Formats in the Amazon Simple Notification Service Developer Guide .- Returns:
this
-
roleArn
Sets the value ofCfnTopicRulePropsMixin.SnsActionProperty.getRoleArn()- Parameters:
roleArn- The ARN of the IAM role that grants access.- Returns:
this
-
roleArn
@Stability(Stable) public CfnTopicRulePropsMixin.SnsActionProperty.Builder roleArn(IRoleRef roleArn) Sets the value ofCfnTopicRulePropsMixin.SnsActionProperty.getRoleArn()- Parameters:
roleArn- The ARN of the IAM role that grants access.- Returns:
this
-
targetArn
@Stability(Stable) public CfnTopicRulePropsMixin.SnsActionProperty.Builder targetArn(String targetArn) Sets the value ofCfnTopicRulePropsMixin.SnsActionProperty.getTargetArn()- Parameters:
targetArn- The ARN of the SNS topic.- Returns:
this
-
targetArn
@Stability(Stable) public CfnTopicRulePropsMixin.SnsActionProperty.Builder targetArn(ITopicRef targetArn) Sets the value ofCfnTopicRulePropsMixin.SnsActionProperty.getTargetArn()- Parameters:
targetArn- The ARN of the SNS topic.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTopicRulePropsMixin.SnsActionProperty>- Returns:
- a new instance of
CfnTopicRulePropsMixin.SnsActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-