@Generated(value="software.amazon.awssdk:codegen") public final class UpsertRowData extends Object implements SdkPojo, Serializable, ToCopyableBuilder<UpsertRowData.Builder,UpsertRowData>
Data needed to upsert rows in a table as part of a single item in the BatchUpsertTableRows request.
| Modifier and Type | Class and Description |
|---|---|
static interface |
UpsertRowData.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
batchItemId()
An external identifier that represents a single item in the request that is being upserted as part of the
BatchUpsertTableRows request.
|
static UpsertRowData.Builder |
builder() |
Map<String,CellInput> |
cellsToUpdate()
A map representing the cells to update for the matching rows or an appended row.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Filter |
filter()
The filter formula to use to find existing matching rows to update.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasCellsToUpdate()
Returns true if the CellsToUpdate property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends UpsertRowData.Builder> |
serializableBuilderClass() |
UpsertRowData.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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.
public 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.
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 boolean hasCellsToUpdate()
public 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasCellsToUpdate() to see if a value was sent in this field.
public UpsertRowData.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UpsertRowData.Builder,UpsertRowData>public static UpsertRowData.Builder builder()
public static Class<? extends UpsertRowData.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.