Class CfnResourcePolicyMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.kinesis.CfnResourcePolicyMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourcePolicyMixinProps>
- Enclosing interface:
CfnResourcePolicyMixinProps
@Stability(Stable)
public static final class CfnResourcePolicyMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourcePolicyMixinProps>
A builder for
CfnResourcePolicyMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.resourceArn(String resourceArn) Sets the value ofCfnResourcePolicyMixinProps.getResourceArn()resourceArn(IStreamConsumerRef resourceArn) Sets the value ofCfnResourcePolicyMixinProps.getResourceArn()resourceArn(IStreamRef resourceArn) Sets the value ofCfnResourcePolicyMixinProps.getResourceArn()resourcePolicy(Object resourcePolicy) Sets the value ofCfnResourcePolicyMixinProps.getResourcePolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourceArn
Sets the value ofCfnResourcePolicyMixinProps.getResourceArn()- Parameters:
resourceArn- Returns the Amazon Resource Name (ARN) of the resource-based policy.- Returns:
this
-
resourceArn
Sets the value ofCfnResourcePolicyMixinProps.getResourceArn()- Parameters:
resourceArn- Returns the Amazon Resource Name (ARN) of the resource-based policy.- Returns:
this
-
resourceArn
@Stability(Stable) public CfnResourcePolicyMixinProps.Builder resourceArn(IStreamConsumerRef resourceArn) Sets the value ofCfnResourcePolicyMixinProps.getResourceArn()- Parameters:
resourceArn- Returns the Amazon Resource Name (ARN) of the resource-based policy.- Returns:
this
-
resourcePolicy
Sets the value ofCfnResourcePolicyMixinProps.getResourcePolicy()- Parameters:
resourcePolicy- This is the description for the resource policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResourcePolicyMixinProps>- Returns:
- a new instance of
CfnResourcePolicyMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-