@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpsertRedshiftTargetOptions extends Object implements Serializable, Cloneable, StructuredPojo
The options to configure an upsert operation when writing to a Redshift target .
Constructor and Description |
---|
UpsertRedshiftTargetOptions() |
Modifier and Type | Method and Description |
---|---|
UpsertRedshiftTargetOptions |
clone() |
boolean |
equals(Object obj) |
String |
getConnectionName()
The name of the connection to use to write to Redshift.
|
String |
getTableLocation()
The physical location of the Redshift table.
|
List<String> |
getUpsertKeys()
The keys used to determine whether to perform an update or insert.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setConnectionName(String connectionName)
The name of the connection to use to write to Redshift.
|
void |
setTableLocation(String tableLocation)
The physical location of the Redshift table.
|
void |
setUpsertKeys(Collection<String> upsertKeys)
The keys used to determine whether to perform an update or insert.
|
String |
toString()
Returns a string representation of this object.
|
UpsertRedshiftTargetOptions |
withConnectionName(String connectionName)
The name of the connection to use to write to Redshift.
|
UpsertRedshiftTargetOptions |
withTableLocation(String tableLocation)
The physical location of the Redshift table.
|
UpsertRedshiftTargetOptions |
withUpsertKeys(Collection<String> upsertKeys)
The keys used to determine whether to perform an update or insert.
|
UpsertRedshiftTargetOptions |
withUpsertKeys(String... upsertKeys)
The keys used to determine whether to perform an update or insert.
|
public void setTableLocation(String tableLocation)
The physical location of the Redshift table.
tableLocation
- The physical location of the Redshift table.public String getTableLocation()
The physical location of the Redshift table.
public UpsertRedshiftTargetOptions withTableLocation(String tableLocation)
The physical location of the Redshift table.
tableLocation
- The physical location of the Redshift table.public void setConnectionName(String connectionName)
The name of the connection to use to write to Redshift.
connectionName
- The name of the connection to use to write to Redshift.public String getConnectionName()
The name of the connection to use to write to Redshift.
public UpsertRedshiftTargetOptions withConnectionName(String connectionName)
The name of the connection to use to write to Redshift.
connectionName
- The name of the connection to use to write to Redshift.public List<String> getUpsertKeys()
The keys used to determine whether to perform an update or insert.
public void setUpsertKeys(Collection<String> upsertKeys)
The keys used to determine whether to perform an update or insert.
upsertKeys
- The keys used to determine whether to perform an update or insert.public UpsertRedshiftTargetOptions withUpsertKeys(String... upsertKeys)
The keys used to determine whether to perform an update or insert.
NOTE: This method appends the values to the existing list (if any). Use
setUpsertKeys(java.util.Collection)
or withUpsertKeys(java.util.Collection)
if you want to
override the existing values.
upsertKeys
- The keys used to determine whether to perform an update or insert.public UpsertRedshiftTargetOptions withUpsertKeys(Collection<String> upsertKeys)
The keys used to determine whether to perform an update or insert.
upsertKeys
- The keys used to determine whether to perform an update or insert.public String toString()
toString
in class Object
Object.toString()
public UpsertRedshiftTargetOptions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.