@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DynamoDBv2Action extends Object implements Serializable, Cloneable, StructuredPojo
Describes an action to write to a DynamoDB table.
This DynamoDB action writes each attribute in the message payload into it's own column in the DynamoDB table.
Constructor and Description |
---|
DynamoDBv2Action() |
Modifier and Type | Method and Description |
---|---|
DynamoDBv2Action |
clone() |
boolean |
equals(Object obj) |
PutItemInput |
getPutItem()
Specifies the DynamoDB table to which the message data will be written.
|
String |
getRoleArn()
The ARN of the IAM role that grants access to the DynamoDB table.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPutItem(PutItemInput putItem)
Specifies the DynamoDB table to which the message data will be written.
|
void |
setRoleArn(String roleArn)
The ARN of the IAM role that grants access to the DynamoDB table.
|
String |
toString()
Returns a string representation of this object.
|
DynamoDBv2Action |
withPutItem(PutItemInput putItem)
Specifies the DynamoDB table to which the message data will be written.
|
DynamoDBv2Action |
withRoleArn(String roleArn)
The ARN of the IAM role that grants access to the DynamoDB table.
|
public void setRoleArn(String roleArn)
The ARN of the IAM role that grants access to the DynamoDB table.
roleArn
- The ARN of the IAM role that grants access to the DynamoDB table.public String getRoleArn()
The ARN of the IAM role that grants access to the DynamoDB table.
public DynamoDBv2Action withRoleArn(String roleArn)
The ARN of the IAM role that grants access to the DynamoDB table.
roleArn
- The ARN of the IAM role that grants access to the DynamoDB table.public void setPutItem(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.
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.
public PutItemInput getPutItem()
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.
{ "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.
public DynamoDBv2Action withPutItem(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.
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.
public String toString()
toString
in class Object
Object.toString()
public DynamoDBv2Action clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.