Class CfnDataSet.RowLevelPermissionDataSetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnDataSet.RowLevelPermissionDataSetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSet.RowLevelPermissionDataSetProperty>
- Enclosing interface:
- CfnDataSet.RowLevelPermissionDataSetProperty
@Stability(Stable)
public static final class CfnDataSet.RowLevelPermissionDataSetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSet.RowLevelPermissionDataSetProperty>
A builder for
CfnDataSet.RowLevelPermissionDataSetProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDataSet.RowLevelPermissionDataSetProperty.getArn()
build()
Builds the configured instance.formatVersion
(String formatVersion) Sets the value ofCfnDataSet.RowLevelPermissionDataSetProperty.getFormatVersion()
Sets the value ofCfnDataSet.RowLevelPermissionDataSetProperty.getNamespace()
permissionPolicy
(String permissionPolicy) Sets the value ofCfnDataSet.RowLevelPermissionDataSetProperty.getPermissionPolicy()
Sets the value ofCfnDataSet.RowLevelPermissionDataSetProperty.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofCfnDataSet.RowLevelPermissionDataSetProperty.getArn()
- Parameters:
arn
- The Amazon Resource Name (ARN) of the dataset that contains permissions for RLS. This parameter is required.- Returns:
this
-
permissionPolicy
@Stability(Stable) public CfnDataSet.RowLevelPermissionDataSetProperty.Builder permissionPolicy(String permissionPolicy) Sets the value ofCfnDataSet.RowLevelPermissionDataSetProperty.getPermissionPolicy()
- Parameters:
permissionPolicy
- The type of permissions to use when interpreting the permissions for RLS. This parameter is required.DENY_ACCESS
is included for backward compatibility only.- Returns:
this
-
formatVersion
@Stability(Stable) public CfnDataSet.RowLevelPermissionDataSetProperty.Builder formatVersion(String formatVersion) Sets the value ofCfnDataSet.RowLevelPermissionDataSetProperty.getFormatVersion()
- Parameters:
formatVersion
- The user or group rules associated with the dataset that contains permissions for RLS. By default,FormatVersion
isVERSION_1
. WhenFormatVersion
isVERSION_1
,UserName
andGroupName
are required. WhenFormatVersion
isVERSION_2
,UserARN
andGroupARN
are required, andNamespace
must not exist.- Returns:
this
-
namespace
@Stability(Stable) public CfnDataSet.RowLevelPermissionDataSetProperty.Builder namespace(String namespace) Sets the value ofCfnDataSet.RowLevelPermissionDataSetProperty.getNamespace()
- Parameters:
namespace
- The namespace associated with the dataset that contains permissions for RLS.- Returns:
this
-
status
@Stability(Stable) public CfnDataSet.RowLevelPermissionDataSetProperty.Builder status(String status) Sets the value ofCfnDataSet.RowLevelPermissionDataSetProperty.getStatus()
- Parameters:
status
- The status of the row-level security permission dataset. If enabled, the status isENABLED
. If disabled, the status isDISABLED
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSet.RowLevelPermissionDataSetProperty>
- Returns:
- a new instance of
CfnDataSet.RowLevelPermissionDataSetProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-