Interface DynamoDBAction.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DynamoDBAction.Builder,,DynamoDBAction> SdkBuilder<DynamoDBAction.Builder,,DynamoDBAction> SdkPojo
- Enclosing class:
DynamoDBAction
-
Method Summary
Modifier and TypeMethodDescriptionhashKeyField(String hashKeyField) The name of the hash key (also called the partition key).hashKeyType(String hashKeyType) The data type for the hash key (also called the partition key).hashKeyValue(String hashKeyValue) The value of the hash key (also called the partition key).The type of operation to perform.default DynamoDBAction.Builderpayload(Consumer<Payload.Builder> payload) Sets the value of the Payload property for this object.Sets the value of the Payload property for this object.payloadField(String payloadField) The name of the DynamoDB column that receives the action payload.rangeKeyField(String rangeKeyField) The name of the range key (also called the sort key).rangeKeyType(String rangeKeyType) The data type for the range key (also called the sort key), You can specify the following values:rangeKeyValue(String rangeKeyValue) The value of the range key (also called the sort key).The name of the DynamoDB table.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
hashKeyType
The data type for the hash key (also called the partition key). You can specify the following values:
-
'STRING'- The hash key is a string. -
'NUMBER'- The hash key is a number.
If you don't specify
hashKeyType, the default value is'STRING'.- Parameters:
hashKeyType- The data type for the hash key (also called the partition key). You can specify the following values:-
'STRING'- The hash key is a string. -
'NUMBER'- The hash key is a number.
If you don't specify
hashKeyType, the default value is'STRING'.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
hashKeyField
The name of the hash key (also called the partition key). The
hashKeyFieldvalue must match the partition key of the target DynamoDB table.- Parameters:
hashKeyField- The name of the hash key (also called the partition key). ThehashKeyFieldvalue must match the partition key of the target DynamoDB table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hashKeyValue
The value of the hash key (also called the partition key).
- Parameters:
hashKeyValue- The value of the hash key (also called the partition key).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rangeKeyType
The data type for the range key (also called the sort key), You can specify the following values:
-
'STRING'- The range key is a string. -
'NUMBER'- The range key is number.
If you don't specify
rangeKeyField, the default value is'STRING'.- Parameters:
rangeKeyType- The data type for the range key (also called the sort key), You can specify the following values:-
'STRING'- The range key is a string. -
'NUMBER'- The range key is number.
If you don't specify
rangeKeyField, the default value is'STRING'.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
rangeKeyField
The name of the range key (also called the sort key). The
rangeKeyFieldvalue must match the sort key of the target DynamoDB table.- Parameters:
rangeKeyField- The name of the range key (also called the sort key). TherangeKeyFieldvalue must match the sort key of the target DynamoDB table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rangeKeyValue
The value of the range key (also called the sort key).
- Parameters:
rangeKeyValue- The value of the range key (also called the sort key).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operation
The type of operation to perform. You can specify the following values:
-
'INSERT'- Insert data as a new item into the DynamoDB table. This item uses the specified hash key as a partition key. If you specified a range key, the item uses the range key as a sort key. -
'UPDATE'- Update an existing item of the DynamoDB table with new data. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key. -
'DELETE'- Delete an existing item of the DynamoDB table. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key.
If you don't specify this parameter, AWS IoT Events triggers the
'INSERT'operation.- Parameters:
operation- The type of operation to perform. You can specify the following values:-
'INSERT'- Insert data as a new item into the DynamoDB table. This item uses the specified hash key as a partition key. If you specified a range key, the item uses the range key as a sort key. -
'UPDATE'- Update an existing item of the DynamoDB table with new data. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key. -
'DELETE'- Delete an existing item of the DynamoDB table. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key.
If you don't specify this parameter, AWS IoT Events triggers the
'INSERT'operation.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
payloadField
The name of the DynamoDB column that receives the action payload.
If you don't specify this parameter, the name of the DynamoDB column is
payload.- Parameters:
payloadField- The name of the DynamoDB column that receives the action payload.If you don't specify this parameter, the name of the DynamoDB column is
payload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tableName
The name of the DynamoDB table. The
tableNamevalue must match the table name of the target DynamoDB table.- Parameters:
tableName- The name of the DynamoDB table. ThetableNamevalue must match the table name of the target DynamoDB table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
Sets the value of the Payload property for this object.- Parameters:
payload- The new value for the Payload property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
Sets the value of the Payload property for this object. This is a convenience method that creates an instance of thePayload.Builderavoiding the need to create one manually viaPayload.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topayload(Payload).- Parameters:
payload- a consumer that will call methods onPayload.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-