@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RedshiftTarget extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a target that uses Amazon Redshift.
Constructor and Description |
---|
RedshiftTarget() |
Modifier and Type | Method and Description |
---|---|
RedshiftTarget |
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.
|
String |
getRedshiftTmpDir()
The Amazon S3 path where temporary data can be staged when copying out of the database.
|
String |
getTable()
The name of the table in the database to write to.
|
String |
getTmpDirIAMRole()
The IAM role with permissions.
|
UpsertRedshiftTargetOptions |
getUpsertRedshiftOptions()
The set of options to configure an upsert operation when writing to a Redshift target.
|
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 |
setRedshiftTmpDir(String redshiftTmpDir)
The Amazon S3 path where temporary data can be staged when copying out of the database.
|
void |
setTable(String table)
The name of the table in the database to write to.
|
void |
setTmpDirIAMRole(String tmpDirIAMRole)
The IAM role with permissions.
|
void |
setUpsertRedshiftOptions(UpsertRedshiftTargetOptions upsertRedshiftOptions)
The set of options to configure an upsert operation when writing to a Redshift target.
|
String |
toString()
Returns a string representation of this object.
|
RedshiftTarget |
withDatabase(String database)
The name of the database to write to.
|
RedshiftTarget |
withInputs(Collection<String> inputs)
The nodes that are inputs to the data target.
|
RedshiftTarget |
withInputs(String... inputs)
The nodes that are inputs to the data target.
|
RedshiftTarget |
withName(String name)
The name of the data target.
|
RedshiftTarget |
withRedshiftTmpDir(String redshiftTmpDir)
The Amazon S3 path where temporary data can be staged when copying out of the database.
|
RedshiftTarget |
withTable(String table)
The name of the table in the database to write to.
|
RedshiftTarget |
withTmpDirIAMRole(String tmpDirIAMRole)
The IAM role with permissions.
|
RedshiftTarget |
withUpsertRedshiftOptions(UpsertRedshiftTargetOptions upsertRedshiftOptions)
The set of options to configure an upsert operation when writing to a Redshift target.
|
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 RedshiftTarget 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 RedshiftTarget 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 RedshiftTarget withInputs(Collection<String> inputs)
The nodes that are inputs to the data target.
inputs
- The nodes that are inputs to the data target.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 RedshiftTarget withDatabase(String database)
The name of the database to write to.
database
- The name of the database to write to.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 RedshiftTarget 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 setRedshiftTmpDir(String redshiftTmpDir)
The Amazon S3 path where temporary data can be staged when copying out of the database.
redshiftTmpDir
- The Amazon S3 path where temporary data can be staged when copying out of the database.public String getRedshiftTmpDir()
The Amazon S3 path where temporary data can be staged when copying out of the database.
public RedshiftTarget withRedshiftTmpDir(String redshiftTmpDir)
The Amazon S3 path where temporary data can be staged when copying out of the database.
redshiftTmpDir
- The Amazon S3 path where temporary data can be staged when copying out of the database.public void setTmpDirIAMRole(String tmpDirIAMRole)
The IAM role with permissions.
tmpDirIAMRole
- The IAM role with permissions.public String getTmpDirIAMRole()
The IAM role with permissions.
public RedshiftTarget withTmpDirIAMRole(String tmpDirIAMRole)
The IAM role with permissions.
tmpDirIAMRole
- The IAM role with permissions.public void setUpsertRedshiftOptions(UpsertRedshiftTargetOptions upsertRedshiftOptions)
The set of options to configure an upsert operation when writing to a Redshift target.
upsertRedshiftOptions
- The set of options to configure an upsert operation when writing to a Redshift target.public UpsertRedshiftTargetOptions getUpsertRedshiftOptions()
The set of options to configure an upsert operation when writing to a Redshift target.
public RedshiftTarget withUpsertRedshiftOptions(UpsertRedshiftTargetOptions upsertRedshiftOptions)
The set of options to configure an upsert operation when writing to a Redshift target.
upsertRedshiftOptions
- The set of options to configure an upsert operation when writing to a Redshift target.public String toString()
toString
in class Object
Object.toString()
public RedshiftTarget clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.