public static final class DynamoUpdateItemProps.Builder
extends java.lang.Object
DynamoUpdateItemProps
Constructor and Description |
---|
Builder() |
public DynamoUpdateItemProps.Builder key(java.util.Map<java.lang.String,? extends DynamoAttributeValue> key)
DynamoUpdateItemProps.getKey()
key
- Primary key of the item to retrieve. This parameter is required.
For the primary key, you must provide all of the attributes.
For example, with a simple primary key, you only need to provide a value for the partition key.
For a composite primary key, you must provide values for both the partition key and the sort key.this
public DynamoUpdateItemProps.Builder table(ITable table)
DynamoUpdateItemProps.getTable()
table
- The name of the table containing the requested item. This parameter is required.this
public DynamoUpdateItemProps.Builder conditionExpression(java.lang.String conditionExpression)
DynamoUpdateItemProps.getConditionExpression()
conditionExpression
- A condition that must be satisfied in order for a conditional DeleteItem to succeed.this
public DynamoUpdateItemProps.Builder expressionAttributeNames(java.util.Map<java.lang.String,java.lang.String> expressionAttributeNames)
DynamoUpdateItemProps.getExpressionAttributeNames()
expressionAttributeNames
- One or more substitution tokens for attribute names in an expression.this
public DynamoUpdateItemProps.Builder expressionAttributeValues(java.util.Map<java.lang.String,? extends DynamoAttributeValue> expressionAttributeValues)
DynamoUpdateItemProps.getExpressionAttributeValues()
expressionAttributeValues
- One or more values that can be substituted in an expression.this
public DynamoUpdateItemProps.Builder returnConsumedCapacity(DynamoConsumedCapacity returnConsumedCapacity)
DynamoUpdateItemProps.getReturnConsumedCapacity()
returnConsumedCapacity
- Determines the level of detail about provisioned throughput consumption that is returned in the response.this
public DynamoUpdateItemProps.Builder returnItemCollectionMetrics(DynamoItemCollectionMetrics returnItemCollectionMetrics)
DynamoUpdateItemProps.getReturnItemCollectionMetrics()
returnItemCollectionMetrics
- Determines whether item collection metrics are returned.
If set to SIZE, the response includes statistics about item collections, if any,
that were modified during the operation are returned in the response.
If set to NONE (the default), no statistics are returned.this
public DynamoUpdateItemProps.Builder returnValues(DynamoReturnValues returnValues)
DynamoUpdateItemProps.getReturnValues()
returnValues
- Use ReturnValues if you want to get the item attributes as they appeared before they were deleted.this
public DynamoUpdateItemProps.Builder updateExpression(java.lang.String updateExpression)
DynamoUpdateItemProps.getUpdateExpression()
updateExpression
- An expression that defines one or more attributes to be updated, the action to be performed on them, and new values for them.this
public DynamoUpdateItemProps.Builder comment(java.lang.String comment)
TaskStateBaseProps.getComment()
comment
- An optional description for this state.this
public DynamoUpdateItemProps.Builder heartbeat(Duration heartbeat)
TaskStateBaseProps.getHeartbeat()
heartbeat
- Timeout for the heartbeat.this
public DynamoUpdateItemProps.Builder inputPath(java.lang.String inputPath)
TaskStateBaseProps.getInputPath()
inputPath
- JSONPath expression to select part of the state to be the input to this state.
May also be the special value JsonPath.DISCARD, which will cause the effective
input to be the empty object {}.this
public DynamoUpdateItemProps.Builder integrationPattern(IntegrationPattern integrationPattern)
TaskStateBaseProps.getIntegrationPattern()
integrationPattern
- AWS Step Functions integrates with services directly in the Amazon States Language.
You can control these AWS services using service integration patternsthis
public DynamoUpdateItemProps.Builder outputPath(java.lang.String outputPath)
TaskStateBaseProps.getOutputPath()
outputPath
- JSONPath expression to select select a portion of the state output to pass to the next state.
May also be the special value JsonPath.DISCARD, which will cause the effective
output to be the empty object {}.this
public DynamoUpdateItemProps.Builder resultPath(java.lang.String resultPath)
TaskStateBaseProps.getResultPath()
resultPath
- JSONPath expression to indicate where to inject the state's output.
May also be the special value JsonPath.DISCARD, which will cause the state's
input to become its output.this
public DynamoUpdateItemProps.Builder resultSelector(java.util.Map<java.lang.String,? extends java.lang.Object> resultSelector)
TaskStateBaseProps.getResultSelector()
resultSelector
- The JSON that will replace the state's raw result and become the effective result before ResultPath is applied.
You can use ResultSelector to create a payload with values that are static
or selected from the state's raw result.this
public DynamoUpdateItemProps.Builder timeout(Duration timeout)
TaskStateBaseProps.getTimeout()
timeout
- Timeout for the state machine.this
public DynamoUpdateItemProps build()
DynamoUpdateItemProps
java.lang.NullPointerException
- if any required attribute was not provided