Class CfnTopicInlinePolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.sns.CfnTopicInlinePolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicInlinePolicyProps>
- Enclosing interface:
CfnTopicInlinePolicyProps
@Stability(Stable)
public static final class CfnTopicInlinePolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicInlinePolicyProps>
A builder for
CfnTopicInlinePolicyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.policyDocument(Object policyDocument) Sets the value ofCfnTopicInlinePolicyProps.getPolicyDocument()Sets the value ofCfnTopicInlinePolicyProps.getTopicArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyDocument
Sets the value ofCfnTopicInlinePolicyProps.getPolicyDocument()- Parameters:
policyDocument- A policy document that contains permissions to add to the specified Amazon topic. This parameter is required.- Returns:
this
-
topicArn
Sets the value ofCfnTopicInlinePolicyProps.getTopicArn()- Parameters:
topicArn- The Amazon Resource Name (ARN) of the topic to which you want to add the policy. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTopicInlinePolicyProps>- Returns:
- a new instance of
CfnTopicInlinePolicyProps - Throws:
NullPointerException- if any required attribute was not provided
-