Interface DynamoDBv2Action.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<DynamoDBv2Action.Builder,DynamoDBv2Action>,SdkBuilder<DynamoDBv2Action.Builder,DynamoDBv2Action>,SdkPojo
- Enclosing class:
- DynamoDBv2Action
public static interface DynamoDBv2Action.Builder extends SdkPojo, CopyableBuilder<DynamoDBv2Action.Builder,DynamoDBv2Action>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DynamoDBv2Action.BuilderputItem(Consumer<PutItemInput.Builder> putItem)Specifies the DynamoDB table to which the message data will be written.DynamoDBv2Action.BuilderputItem(PutItemInput putItem)Specifies the DynamoDB table to which the message data will be written.DynamoDBv2Action.BuilderroleArn(String roleArn)The ARN of the IAM role that grants access to the DynamoDB table.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
roleArn
DynamoDBv2Action.Builder roleArn(String roleArn)
The ARN of the IAM role that grants access to the DynamoDB table.
- Parameters:
roleArn- The ARN of the IAM role that grants access to the DynamoDB table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
putItem
DynamoDBv2Action.Builder putItem(PutItemInput putItem)
Specifies the DynamoDB table to which the message data will be written. For example:
{ "dynamoDBv2": { "roleArn": "aws:iam:12341251:my-role" "putItem": { "tableName": "my-table" } } }Each attribute in the message payload will be written to a separate column in the DynamoDB database.
- Parameters:
putItem- Specifies the DynamoDB table to which the message data will be written. For example:{ "dynamoDBv2": { "roleArn": "aws:iam:12341251:my-role" "putItem": { "tableName": "my-table" } } }Each attribute in the message payload will be written to a separate column in the DynamoDB database.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
putItem
default DynamoDBv2Action.Builder putItem(Consumer<PutItemInput.Builder> putItem)
Specifies the DynamoDB table to which the message data will be written. For example:
{ "dynamoDBv2": { "roleArn": "aws:iam:12341251:my-role" "putItem": { "tableName": "my-table" } } }Each attribute in the message payload will be written to a separate column in the DynamoDB database.
This is a convenience method that creates an instance of thePutItemInput.Builderavoiding the need to create one manually viaPutItemInput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toputItem(PutItemInput).- Parameters:
putItem- a consumer that will call methods onPutItemInput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
putItem(PutItemInput)
-
-