public DynamoDBv2Action withPutItem(PutItemInput putItem) {
        setPutItem(putItem);
        return this;
    }
<p>
Specifies the DynamoDB table to which the message data will be written. For example:
</p>
<p>
<code>{ "dynamoDBv2": { "roleArn": "aws:iam:12341251:my-role" "putItem": { "tableName": "my-table" } } }</code>
</p>
<p>
Each attribute in the message payload will be written to a separate column in the DynamoDB database.
</p>

@param putItem
       Specifies the DynamoDB table to which the message data will be written. For example:</p>
       <p>
       <code>{ "dynamoDBv2": { "roleArn": "aws:iam:12341251:my-role" "putItem": { "tableName": "my-table" } } }</code>
       </p>
       <p>
       Each attribute in the message payload will be written to a separate column in the DynamoDB database.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/DynamoDBv2Action.java