Class CfnPermissions.TableResourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lakeformation.CfnPermissions.TableResourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPermissions.TableResourceProperty>
- Enclosing interface:
- CfnPermissions.TableResourceProperty
@Stability(Stable)
public static final class CfnPermissions.TableResourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPermissions.TableResourceProperty>
A builder for
CfnPermissions.TableResourceProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnPermissions.TableResourceProperty.getCatalogId()
databaseName
(String databaseName) Sets the value ofCfnPermissions.TableResourceProperty.getDatabaseName()
Sets the value ofCfnPermissions.TableResourceProperty.getName()
tableWildcard
(IResolvable tableWildcard) Sets the value ofCfnPermissions.TableResourceProperty.getTableWildcard()
tableWildcard
(CfnPermissions.TableWildcardProperty tableWildcard) Sets the value ofCfnPermissions.TableResourceProperty.getTableWildcard()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
catalogId
Sets the value ofCfnPermissions.TableResourceProperty.getCatalogId()
- Parameters:
catalogId
- The identifier for the Data Catalog . By default, it is the account ID of the caller.- Returns:
this
-
databaseName
@Stability(Stable) public CfnPermissions.TableResourceProperty.Builder databaseName(String databaseName) Sets the value ofCfnPermissions.TableResourceProperty.getDatabaseName()
- Parameters:
databaseName
- The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.- Returns:
this
-
name
Sets the value ofCfnPermissions.TableResourceProperty.getName()
- Parameters:
name
- The name of the table.- Returns:
this
-
tableWildcard
@Stability(Stable) public CfnPermissions.TableResourceProperty.Builder tableWildcard(IResolvable tableWildcard) Sets the value ofCfnPermissions.TableResourceProperty.getTableWildcard()
- Parameters:
tableWildcard
- An empty object representing all tables under a database. If this field is specified instead of theName
field, all tables underDatabaseName
will have permission changes applied.- Returns:
this
-
tableWildcard
@Stability(Stable) public CfnPermissions.TableResourceProperty.Builder tableWildcard(CfnPermissions.TableWildcardProperty tableWildcard) Sets the value ofCfnPermissions.TableResourceProperty.getTableWildcard()
- Parameters:
tableWildcard
- An empty object representing all tables under a database. If this field is specified instead of theName
field, all tables underDatabaseName
will have permission changes applied.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPermissions.TableResourceProperty>
- Returns:
- a new instance of
CfnPermissions.TableResourceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-