@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpsertRowData extends Object implements Serializable, Cloneable, StructuredPojo
Data needed to upsert rows in a table as part of a single item in the BatchUpsertTableRows request.
Constructor and Description |
---|
UpsertRowData() |
Modifier and Type | Method and Description |
---|---|
UpsertRowData |
addCellsToUpdateEntry(String key,
CellInput value)
Add a single CellsToUpdate entry
|
UpsertRowData |
clearCellsToUpdateEntries()
Removes all the entries added into CellsToUpdate.
|
UpsertRowData |
clone() |
boolean |
equals(Object obj) |
String |
getBatchItemId()
An external identifier that represents a single item in the request that is being upserted as part of the
BatchUpsertTableRows request.
|
Map<String,CellInput> |
getCellsToUpdate()
A map representing the cells to update for the matching rows or an appended row.
|
Filter |
getFilter()
The filter formula to use to find existing matching rows to update.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBatchItemId(String batchItemId)
An external identifier that represents a single item in the request that is being upserted as part of the
BatchUpsertTableRows request.
|
void |
setCellsToUpdate(Map<String,CellInput> cellsToUpdate)
A map representing the cells to update for the matching rows or an appended row.
|
void |
setFilter(Filter filter)
The filter formula to use to find existing matching rows to update.
|
String |
toString()
Returns a string representation of this object.
|
UpsertRowData |
withBatchItemId(String batchItemId)
An external identifier that represents a single item in the request that is being upserted as part of the
BatchUpsertTableRows request.
|
UpsertRowData |
withCellsToUpdate(Map<String,CellInput> cellsToUpdate)
A map representing the cells to update for the matching rows or an appended row.
|
UpsertRowData |
withFilter(Filter filter)
The filter formula to use to find existing matching rows to update.
|
public void setBatchItemId(String batchItemId)
An external identifier that represents a single item in the request that is being upserted as part of the BatchUpsertTableRows request. This can be any string that you can use to identify the item in the request. The BatchUpsertTableRows API puts the batch item id in the results to allow you to link data in the request to data in the results.
batchItemId
- An external identifier that represents a single item in the request that is being upserted as part of the
BatchUpsertTableRows request. This can be any string that you can use to identify the item in the request.
The BatchUpsertTableRows API puts the batch item id in the results to allow you to link data in the
request to data in the results.public String getBatchItemId()
An external identifier that represents a single item in the request that is being upserted as part of the BatchUpsertTableRows request. This can be any string that you can use to identify the item in the request. The BatchUpsertTableRows API puts the batch item id in the results to allow you to link data in the request to data in the results.
public UpsertRowData withBatchItemId(String batchItemId)
An external identifier that represents a single item in the request that is being upserted as part of the BatchUpsertTableRows request. This can be any string that you can use to identify the item in the request. The BatchUpsertTableRows API puts the batch item id in the results to allow you to link data in the request to data in the results.
batchItemId
- An external identifier that represents a single item in the request that is being upserted as part of the
BatchUpsertTableRows request. This can be any string that you can use to identify the item in the request.
The BatchUpsertTableRows API puts the batch item id in the results to allow you to link data in the
request to data in the results.public void setFilter(Filter filter)
The filter formula to use to find existing matching rows to update. The formula needs to return zero or more rows. If the formula returns 0 rows, then a new row will be appended in the target table. If the formula returns one or more rows, then the returned rows will be updated.
Note that the filter formula needs to return rows from the target table for the upsert operation to succeed. If the filter formula has a syntax error or it doesn't evaluate to zero or more rows in the target table for any one item in the input list, then the entire BatchUpsertTableRows request fails and no updates are made to the table.
filter
- The filter formula to use to find existing matching rows to update. The formula needs to return zero or
more rows. If the formula returns 0 rows, then a new row will be appended in the target table. If the
formula returns one or more rows, then the returned rows will be updated.
Note that the filter formula needs to return rows from the target table for the upsert operation to succeed. If the filter formula has a syntax error or it doesn't evaluate to zero or more rows in the target table for any one item in the input list, then the entire BatchUpsertTableRows request fails and no updates are made to the table.
public Filter getFilter()
The filter formula to use to find existing matching rows to update. The formula needs to return zero or more rows. If the formula returns 0 rows, then a new row will be appended in the target table. If the formula returns one or more rows, then the returned rows will be updated.
Note that the filter formula needs to return rows from the target table for the upsert operation to succeed. If the filter formula has a syntax error or it doesn't evaluate to zero or more rows in the target table for any one item in the input list, then the entire BatchUpsertTableRows request fails and no updates are made to the table.
Note that the filter formula needs to return rows from the target table for the upsert operation to succeed. If the filter formula has a syntax error or it doesn't evaluate to zero or more rows in the target table for any one item in the input list, then the entire BatchUpsertTableRows request fails and no updates are made to the table.
public UpsertRowData withFilter(Filter filter)
The filter formula to use to find existing matching rows to update. The formula needs to return zero or more rows. If the formula returns 0 rows, then a new row will be appended in the target table. If the formula returns one or more rows, then the returned rows will be updated.
Note that the filter formula needs to return rows from the target table for the upsert operation to succeed. If the filter formula has a syntax error or it doesn't evaluate to zero or more rows in the target table for any one item in the input list, then the entire BatchUpsertTableRows request fails and no updates are made to the table.
filter
- The filter formula to use to find existing matching rows to update. The formula needs to return zero or
more rows. If the formula returns 0 rows, then a new row will be appended in the target table. If the
formula returns one or more rows, then the returned rows will be updated.
Note that the filter formula needs to return rows from the target table for the upsert operation to succeed. If the filter formula has a syntax error or it doesn't evaluate to zero or more rows in the target table for any one item in the input list, then the entire BatchUpsertTableRows request fails and no updates are made to the table.
public Map<String,CellInput> getCellsToUpdate()
A map representing the cells to update for the matching rows or an appended row. The key is the column id of the cell and the value is the CellInput object that represents the data to set in that cell.
public void setCellsToUpdate(Map<String,CellInput> cellsToUpdate)
A map representing the cells to update for the matching rows or an appended row. The key is the column id of the cell and the value is the CellInput object that represents the data to set in that cell.
cellsToUpdate
- A map representing the cells to update for the matching rows or an appended row. The key is the column id
of the cell and the value is the CellInput object that represents the data to set in that cell.public UpsertRowData withCellsToUpdate(Map<String,CellInput> cellsToUpdate)
A map representing the cells to update for the matching rows or an appended row. The key is the column id of the cell and the value is the CellInput object that represents the data to set in that cell.
cellsToUpdate
- A map representing the cells to update for the matching rows or an appended row. The key is the column id
of the cell and the value is the CellInput object that represents the data to set in that cell.public UpsertRowData addCellsToUpdateEntry(String key, CellInput value)
public UpsertRowData clearCellsToUpdateEntries()
public String toString()
toString
in class Object
Object.toString()
public UpsertRowData clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.