Class CfnPermissionAssociationMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ram.CfnPermissionAssociationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPermissionAssociationMixinProps>
- Enclosing interface:
CfnPermissionAssociationMixinProps
@Stability(Stable)
public static final class CfnPermissionAssociationMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPermissionAssociationMixinProps>
A builder for
CfnPermissionAssociationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.permissionArn(String permissionArn) Sets the value ofCfnPermissionAssociationMixinProps.getPermissionArn()Sets the value ofCfnPermissionAssociationMixinProps.getReplace()replace(IResolvable replace) Sets the value ofCfnPermissionAssociationMixinProps.getReplace()resourceShareArn(String resourceShareArn) Sets the value ofCfnPermissionAssociationMixinProps.getResourceShareArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
permissionArn
@Stability(Stable) public CfnPermissionAssociationMixinProps.Builder permissionArn(String permissionArn) Sets the value ofCfnPermissionAssociationMixinProps.getPermissionArn()- Parameters:
permissionArn- Specifies the Amazon Resource Name (ARN) of the AWS RAM permission to associate with the resource share.- Returns:
this
-
replace
Sets the value ofCfnPermissionAssociationMixinProps.getReplace()- Parameters:
replace- Specifies whether to replace the existing permission on the resource share. Usetrueto replace the current permission. Usefalseto add the permission when no permission is currently associated. The default value isfalse. Updating an existing association also requirestrue, because AWS RAM applies the change by re-associating the permission.- Returns:
this
-
replace
Sets the value ofCfnPermissionAssociationMixinProps.getReplace()- Parameters:
replace- Specifies whether to replace the existing permission on the resource share. Usetrueto replace the current permission. Usefalseto add the permission when no permission is currently associated. The default value isfalse. Updating an existing association also requirestrue, because AWS RAM applies the change by re-associating the permission.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPermissionAssociationMixinProps>- Returns:
- a new instance of
CfnPermissionAssociationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-