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