public static final class DynamoPutItemProps.Builder
extends java.lang.Object
DynamoPutItemProps
Constructor and Description |
---|
Builder() |
public DynamoPutItemProps.Builder item(java.util.Map<java.lang.String,? extends DynamoAttributeValue> item)
DynamoPutItemProps.getItem()
item
- A map of attribute name/value pairs, one for each attribute. This parameter is required.
Only the primary key attributes are required;
you can optionally provide other attribute name-value pairs for the item.this
public DynamoPutItemProps.Builder table(ITable table)
DynamoPutItemProps.getTable()
table
- The name of the table where the item should be written . This parameter is required.this
public DynamoPutItemProps.Builder conditionExpression(java.lang.String conditionExpression)
DynamoPutItemProps.getConditionExpression()
conditionExpression
- A condition that must be satisfied in order for a conditional PutItem operation to succeed.this
public DynamoPutItemProps.Builder expressionAttributeNames(java.util.Map<java.lang.String,java.lang.String> expressionAttributeNames)
DynamoPutItemProps.getExpressionAttributeNames()
expressionAttributeNames
- One or more substitution tokens for attribute names in an expression.this
public DynamoPutItemProps.Builder expressionAttributeValues(java.util.Map<java.lang.String,? extends DynamoAttributeValue> expressionAttributeValues)
DynamoPutItemProps.getExpressionAttributeValues()
expressionAttributeValues
- One or more values that can be substituted in an expression.this
public DynamoPutItemProps.Builder returnConsumedCapacity(DynamoConsumedCapacity returnConsumedCapacity)
DynamoPutItemProps.getReturnConsumedCapacity()
returnConsumedCapacity
- Determines the level of detail about provisioned throughput consumption that is returned in the response.this
public DynamoPutItemProps.Builder returnItemCollectionMetrics(DynamoItemCollectionMetrics returnItemCollectionMetrics)
DynamoPutItemProps.getReturnItemCollectionMetrics()
returnItemCollectionMetrics
- The item collection metrics to returned in the response.this
public DynamoPutItemProps.Builder returnValues(DynamoReturnValues returnValues)
DynamoPutItemProps.getReturnValues()
returnValues
- Use ReturnValues if you want to get the item attributes as they appeared before they were updated with the PutItem request.this
public DynamoPutItemProps.Builder comment(java.lang.String comment)
TaskStateBaseProps.getComment()
comment
- An optional description for this state.this
public DynamoPutItemProps.Builder heartbeat(Duration heartbeat)
TaskStateBaseProps.getHeartbeat()
heartbeat
- Timeout for the heartbeat.this
public DynamoPutItemProps.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 DynamoPutItemProps.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 DynamoPutItemProps.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 DynamoPutItemProps.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 DynamoPutItemProps.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 DynamoPutItemProps.Builder timeout(Duration timeout)
TaskStateBaseProps.getTimeout()
timeout
- Timeout for the state machine.this
public DynamoPutItemProps build()
DynamoPutItemProps
java.lang.NullPointerException
- if any required attribute was not provided