Class SnsProps.Builder
java.lang.Object
software.amazon.awscdk.services.ses.actions.SnsProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SnsProps>
- Enclosing interface:
SnsProps
@Stability(Stable)
public static final class SnsProps.Builder
extends Object
implements software.amazon.jsii.Builder<SnsProps>
A builder for
SnsProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.encoding
(EmailEncoding encoding) Sets the value ofSnsProps.getEncoding()
Sets the value ofSnsProps.getTopic()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
topic
Sets the value ofSnsProps.getTopic()
- Parameters:
topic
- The SNS topic to notify. This parameter is required.- Returns:
this
-
encoding
Sets the value ofSnsProps.getEncoding()
- Parameters:
encoding
- The encoding to use for the email within the Amazon SNS notification.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SnsProps>
- Returns:
- a new instance of
SnsProps
- Throws:
NullPointerException
- if any required attribute was not provided
-