Class SnsTopicActionProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.actions.alpha.SnsTopicActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SnsTopicActionProps>
- Enclosing interface:
SnsTopicActionProps
@Stability(Experimental)
public static final class SnsTopicActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<SnsTopicActionProps>
A builder for
SnsTopicActionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.messageFormat
(SnsActionMessageFormat messageFormat) Sets the value ofSnsTopicActionProps.getMessageFormat()
Sets the value ofCommonActionProps.getRole()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
messageFormat
@Stability(Experimental) public SnsTopicActionProps.Builder messageFormat(SnsActionMessageFormat messageFormat) Sets the value ofSnsTopicActionProps.getMessageFormat()
- Parameters:
messageFormat
- The message format of the message to publish. SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted.- Returns:
this
-
role
Sets the value ofCommonActionProps.getRole()
- Parameters:
role
- The IAM role that allows access to AWS service.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SnsTopicActionProps>
- Returns:
- a new instance of
SnsTopicActionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-