@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GovernedCatalogTarget extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a data target that writes to Amazon S3 using the Glue Data Catalog.
Constructor and Description |
---|
GovernedCatalogTarget() |
Modifier and Type | Method and Description |
---|---|
GovernedCatalogTarget |
clone() |
boolean |
equals(Object obj) |
String |
getDatabase()
The name of the database to write to.
|
List<String> |
getInputs()
The nodes that are inputs to the data target.
|
String |
getName()
The name of the data target.
|
List<List<String>> |
getPartitionKeys()
Specifies native partitioning using a sequence of keys.
|
CatalogSchemaChangePolicy |
getSchemaChangePolicy()
A policy that specifies update behavior for the governed catalog.
|
String |
getTable()
The name of the table in the database to write to.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDatabase(String database)
The name of the database to write to.
|
void |
setInputs(Collection<String> inputs)
The nodes that are inputs to the data target.
|
void |
setName(String name)
The name of the data target.
|
void |
setPartitionKeys(Collection<List<String>> partitionKeys)
Specifies native partitioning using a sequence of keys.
|
void |
setSchemaChangePolicy(CatalogSchemaChangePolicy schemaChangePolicy)
A policy that specifies update behavior for the governed catalog.
|
void |
setTable(String table)
The name of the table in the database to write to.
|
String |
toString()
Returns a string representation of this object.
|
GovernedCatalogTarget |
withDatabase(String database)
The name of the database to write to.
|
GovernedCatalogTarget |
withInputs(Collection<String> inputs)
The nodes that are inputs to the data target.
|
GovernedCatalogTarget |
withInputs(String... inputs)
The nodes that are inputs to the data target.
|
GovernedCatalogTarget |
withName(String name)
The name of the data target.
|
GovernedCatalogTarget |
withPartitionKeys(Collection<List<String>> partitionKeys)
Specifies native partitioning using a sequence of keys.
|
GovernedCatalogTarget |
withPartitionKeys(List<String>... partitionKeys)
Specifies native partitioning using a sequence of keys.
|
GovernedCatalogTarget |
withSchemaChangePolicy(CatalogSchemaChangePolicy schemaChangePolicy)
A policy that specifies update behavior for the governed catalog.
|
GovernedCatalogTarget |
withTable(String table)
The name of the table in the database to write to.
|
public void setName(String name)
The name of the data target.
name
- The name of the data target.public String getName()
The name of the data target.
public GovernedCatalogTarget withName(String name)
The name of the data target.
name
- The name of the data target.public List<String> getInputs()
The nodes that are inputs to the data target.
public void setInputs(Collection<String> inputs)
The nodes that are inputs to the data target.
inputs
- The nodes that are inputs to the data target.public GovernedCatalogTarget withInputs(String... inputs)
The nodes that are inputs to the data target.
NOTE: This method appends the values to the existing list (if any). Use
setInputs(java.util.Collection)
or withInputs(java.util.Collection)
if you want to override the
existing values.
inputs
- The nodes that are inputs to the data target.public GovernedCatalogTarget withInputs(Collection<String> inputs)
The nodes that are inputs to the data target.
inputs
- The nodes that are inputs to the data target.public List<List<String>> getPartitionKeys()
Specifies native partitioning using a sequence of keys.
public void setPartitionKeys(Collection<List<String>> partitionKeys)
Specifies native partitioning using a sequence of keys.
partitionKeys
- Specifies native partitioning using a sequence of keys.public GovernedCatalogTarget withPartitionKeys(List<String>... partitionKeys)
Specifies native partitioning using a sequence of keys.
NOTE: This method appends the values to the existing list (if any). Use
setPartitionKeys(java.util.Collection)
or withPartitionKeys(java.util.Collection)
if you want
to override the existing values.
partitionKeys
- Specifies native partitioning using a sequence of keys.public GovernedCatalogTarget withPartitionKeys(Collection<List<String>> partitionKeys)
Specifies native partitioning using a sequence of keys.
partitionKeys
- Specifies native partitioning using a sequence of keys.public void setTable(String table)
The name of the table in the database to write to.
table
- The name of the table in the database to write to.public String getTable()
The name of the table in the database to write to.
public GovernedCatalogTarget withTable(String table)
The name of the table in the database to write to.
table
- The name of the table in the database to write to.public void setDatabase(String database)
The name of the database to write to.
database
- The name of the database to write to.public String getDatabase()
The name of the database to write to.
public GovernedCatalogTarget withDatabase(String database)
The name of the database to write to.
database
- The name of the database to write to.public void setSchemaChangePolicy(CatalogSchemaChangePolicy schemaChangePolicy)
A policy that specifies update behavior for the governed catalog.
schemaChangePolicy
- A policy that specifies update behavior for the governed catalog.public CatalogSchemaChangePolicy getSchemaChangePolicy()
A policy that specifies update behavior for the governed catalog.
public GovernedCatalogTarget withSchemaChangePolicy(CatalogSchemaChangePolicy schemaChangePolicy)
A policy that specifies update behavior for the governed catalog.
schemaChangePolicy
- A policy that specifies update behavior for the governed catalog.public String toString()
toString
in class Object
Object.toString()
public GovernedCatalogTarget clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.