@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TableWithColumnsResource extends Object implements Serializable, Cloneable, StructuredPojo
A structure for a table with columns object. This object is only used when granting a SELECT permission.
This object must take a value for at least one of ColumnsNames
, ColumnsIndexes
, or
ColumnsWildcard
.
Constructor and Description |
---|
TableWithColumnsResource() |
Modifier and Type | Method and Description |
---|---|
TableWithColumnsResource |
clone() |
boolean |
equals(Object obj) |
List<String> |
getColumnNames()
The list of column names for the table.
|
ColumnWildcard |
getColumnWildcard()
A wildcard specified by a
ColumnWildcard object. |
String |
getDatabaseName()
The name of the database for the table with columns resource.
|
String |
getName()
The name of the table resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setColumnNames(Collection<String> columnNames)
The list of column names for the table.
|
void |
setColumnWildcard(ColumnWildcard columnWildcard)
A wildcard specified by a
ColumnWildcard object. |
void |
setDatabaseName(String databaseName)
The name of the database for the table with columns resource.
|
void |
setName(String name)
The name of the table resource.
|
String |
toString()
Returns a string representation of this object.
|
TableWithColumnsResource |
withColumnNames(Collection<String> columnNames)
The list of column names for the table.
|
TableWithColumnsResource |
withColumnNames(String... columnNames)
The list of column names for the table.
|
TableWithColumnsResource |
withColumnWildcard(ColumnWildcard columnWildcard)
A wildcard specified by a
ColumnWildcard object. |
TableWithColumnsResource |
withDatabaseName(String databaseName)
The name of the database for the table with columns resource.
|
TableWithColumnsResource |
withName(String name)
The name of the table resource.
|
public void setDatabaseName(String databaseName)
The name of the database for the table with columns resource. Unique to the 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.
databaseName
- The name of the database for the table with columns resource. Unique to the 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.public String getDatabaseName()
The name of the database for the table with columns resource. Unique to the 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.
public TableWithColumnsResource withDatabaseName(String databaseName)
The name of the database for the table with columns resource. Unique to the 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.
databaseName
- The name of the database for the table with columns resource. Unique to the 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.public void setName(String name)
The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.
name
- The name of the table resource. A table is a metadata definition that represents your data. You can Grant
and Revoke table privileges to a principal.public String getName()
The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.
public TableWithColumnsResource withName(String name)
The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.
name
- The name of the table resource. A table is a metadata definition that represents your data. You can Grant
and Revoke table privileges to a principal.public List<String> getColumnNames()
The list of column names for the table. At least one of ColumnNames
or ColumnWildcard
is required.
ColumnNames
or
ColumnWildcard
is required.public void setColumnNames(Collection<String> columnNames)
The list of column names for the table. At least one of ColumnNames
or ColumnWildcard
is required.
columnNames
- The list of column names for the table. At least one of ColumnNames
or
ColumnWildcard
is required.public TableWithColumnsResource withColumnNames(String... columnNames)
The list of column names for the table. At least one of ColumnNames
or ColumnWildcard
is required.
NOTE: This method appends the values to the existing list (if any). Use
setColumnNames(java.util.Collection)
or withColumnNames(java.util.Collection)
if you want to
override the existing values.
columnNames
- The list of column names for the table. At least one of ColumnNames
or
ColumnWildcard
is required.public TableWithColumnsResource withColumnNames(Collection<String> columnNames)
The list of column names for the table. At least one of ColumnNames
or ColumnWildcard
is required.
columnNames
- The list of column names for the table. At least one of ColumnNames
or
ColumnWildcard
is required.public void setColumnWildcard(ColumnWildcard columnWildcard)
A wildcard specified by a ColumnWildcard
object. At least one of ColumnNames
or
ColumnWildcard
is required.
columnWildcard
- A wildcard specified by a ColumnWildcard
object. At least one of ColumnNames
or
ColumnWildcard
is required.public ColumnWildcard getColumnWildcard()
A wildcard specified by a ColumnWildcard
object. At least one of ColumnNames
or
ColumnWildcard
is required.
ColumnWildcard
object. At least one of ColumnNames
or
ColumnWildcard
is required.public TableWithColumnsResource withColumnWildcard(ColumnWildcard columnWildcard)
A wildcard specified by a ColumnWildcard
object. At least one of ColumnNames
or
ColumnWildcard
is required.
columnWildcard
- A wildcard specified by a ColumnWildcard
object. At least one of ColumnNames
or
ColumnWildcard
is required.public String toString()
toString
in class Object
Object.toString()
public TableWithColumnsResource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2020. All rights reserved.