Class CfnPermissions.ResourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lakeformation.CfnPermissions.ResourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPermissions.ResourceProperty>
- Enclosing interface:
CfnPermissions.ResourceProperty
@Stability(Stable)
public static final class CfnPermissions.ResourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPermissions.ResourceProperty>
A builder for
CfnPermissions.ResourceProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.databaseResource
(IResolvable databaseResource) Sets the value ofCfnPermissions.ResourceProperty.getDatabaseResource()
databaseResource
(CfnPermissions.DatabaseResourceProperty databaseResource) Sets the value ofCfnPermissions.ResourceProperty.getDatabaseResource()
dataLocationResource
(IResolvable dataLocationResource) Sets the value ofCfnPermissions.ResourceProperty.getDataLocationResource()
dataLocationResource
(CfnPermissions.DataLocationResourceProperty dataLocationResource) Sets the value ofCfnPermissions.ResourceProperty.getDataLocationResource()
tableResource
(IResolvable tableResource) Sets the value ofCfnPermissions.ResourceProperty.getTableResource()
tableResource
(CfnPermissions.TableResourceProperty tableResource) Sets the value ofCfnPermissions.ResourceProperty.getTableResource()
tableWithColumnsResource
(IResolvable tableWithColumnsResource) Sets the value ofCfnPermissions.ResourceProperty.getTableWithColumnsResource()
tableWithColumnsResource
(CfnPermissions.TableWithColumnsResourceProperty tableWithColumnsResource) Sets the value ofCfnPermissions.ResourceProperty.getTableWithColumnsResource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
databaseResource
@Stability(Stable) public CfnPermissions.ResourceProperty.Builder databaseResource(IResolvable databaseResource) Sets the value ofCfnPermissions.ResourceProperty.getDatabaseResource()
- Parameters:
databaseResource
- A structure for the database object.- Returns:
this
-
databaseResource
@Stability(Stable) public CfnPermissions.ResourceProperty.Builder databaseResource(CfnPermissions.DatabaseResourceProperty databaseResource) Sets the value ofCfnPermissions.ResourceProperty.getDatabaseResource()
- Parameters:
databaseResource
- A structure for the database object.- Returns:
this
-
dataLocationResource
@Stability(Stable) public CfnPermissions.ResourceProperty.Builder dataLocationResource(IResolvable dataLocationResource) Sets the value ofCfnPermissions.ResourceProperty.getDataLocationResource()
- Parameters:
dataLocationResource
- A structure for a data location object where permissions are granted or revoked.- Returns:
this
-
dataLocationResource
@Stability(Stable) public CfnPermissions.ResourceProperty.Builder dataLocationResource(CfnPermissions.DataLocationResourceProperty dataLocationResource) Sets the value ofCfnPermissions.ResourceProperty.getDataLocationResource()
- Parameters:
dataLocationResource
- A structure for a data location object where permissions are granted or revoked.- Returns:
this
-
tableResource
@Stability(Stable) public CfnPermissions.ResourceProperty.Builder tableResource(IResolvable tableResource) Sets the value ofCfnPermissions.ResourceProperty.getTableResource()
- Parameters:
tableResource
- A structure for the table object. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.- Returns:
this
-
tableResource
@Stability(Stable) public CfnPermissions.ResourceProperty.Builder tableResource(CfnPermissions.TableResourceProperty tableResource) Sets the value ofCfnPermissions.ResourceProperty.getTableResource()
- Parameters:
tableResource
- A structure for the table object. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.- Returns:
this
-
tableWithColumnsResource
@Stability(Stable) public CfnPermissions.ResourceProperty.Builder tableWithColumnsResource(IResolvable tableWithColumnsResource) Sets the value ofCfnPermissions.ResourceProperty.getTableWithColumnsResource()
- Parameters:
tableWithColumnsResource
- A structure for a table with columns object. This object is only used when granting a SELECT permission.- Returns:
this
-
tableWithColumnsResource
@Stability(Stable) public CfnPermissions.ResourceProperty.Builder tableWithColumnsResource(CfnPermissions.TableWithColumnsResourceProperty tableWithColumnsResource) Sets the value ofCfnPermissions.ResourceProperty.getTableWithColumnsResource()
- Parameters:
tableWithColumnsResource
- A structure for a table with columns object. This object is only used when granting a SELECT permission.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPermissions.ResourceProperty>
- Returns:
- a new instance of
CfnPermissions.ResourceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-