public class DynamoDBAction extends Object implements Serializable
Describes an action to write to a DynamoDB table.
The tableName ,
hashKeyField , and
rangeKeyField values must match the values used when you
created the table.
The hashKeyValue and rangeKeyvalue fields
use a substitution template syntax. These templates provide data at
runtime. The syntax is as follows: ${ sql-expression }.
You can specify any valid expression in a WHERE or SELECT clause, including JSON properties, comparisons, calculations, and functions. For example, the following field uses the third level of the topic:
"hashKeyValue": "${topic(3)}"
The following field uses the timestamp:
"rangeKeyValue": "${timestamp()}"
| Constructor and Description |
|---|
DynamoDBAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getHashKeyField()
The hash key name.
|
String |
getHashKeyValue()
The hash key value.
|
String |
getPayloadField()
The action payload.
|
String |
getRangeKeyField()
The range key name.
|
String |
getRangeKeyValue()
The range key value.
|
String |
getRoleArn()
The ARN of the IAM role that grants access to the DynamoDB table.
|
String |
getTableName()
The name of the DynamoDB table.
|
int |
hashCode() |
void |
setHashKeyField(String hashKeyField)
The hash key name.
|
void |
setHashKeyValue(String hashKeyValue)
The hash key value.
|
void |
setPayloadField(String payloadField)
The action payload.
|
void |
setRangeKeyField(String rangeKeyField)
The range key name.
|
void |
setRangeKeyValue(String rangeKeyValue)
The range key value.
|
void |
setRoleArn(String roleArn)
The ARN of the IAM role that grants access to the DynamoDB table.
|
void |
setTableName(String tableName)
The name of the DynamoDB table.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DynamoDBAction |
withHashKeyField(String hashKeyField)
The hash key name.
|
DynamoDBAction |
withHashKeyValue(String hashKeyValue)
The hash key value.
|
DynamoDBAction |
withPayloadField(String payloadField)
The action payload.
|
DynamoDBAction |
withRangeKeyField(String rangeKeyField)
The range key name.
|
DynamoDBAction |
withRangeKeyValue(String rangeKeyValue)
The range key value.
|
DynamoDBAction |
withRoleArn(String roleArn)
The ARN of the IAM role that grants access to the DynamoDB table.
|
DynamoDBAction |
withTableName(String tableName)
The name of the DynamoDB table.
|
public String getTableName()
public void setTableName(String tableName)
tableName - The name of the DynamoDB table.public DynamoDBAction withTableName(String tableName)
Returns a reference to this object so that method calls can be chained together.
tableName - The name of the DynamoDB table.public String getRoleArn()
public void setRoleArn(String roleArn)
roleArn - The ARN of the IAM role that grants access to the DynamoDB table.public DynamoDBAction withRoleArn(String roleArn)
Returns a reference to this object so that method calls can be chained together.
roleArn - The ARN of the IAM role that grants access to the DynamoDB table.public String getHashKeyField()
public void setHashKeyField(String hashKeyField)
hashKeyField - The hash key name.public DynamoDBAction withHashKeyField(String hashKeyField)
Returns a reference to this object so that method calls can be chained together.
hashKeyField - The hash key name.public String getHashKeyValue()
public void setHashKeyValue(String hashKeyValue)
hashKeyValue - The hash key value.public DynamoDBAction withHashKeyValue(String hashKeyValue)
Returns a reference to this object so that method calls can be chained together.
hashKeyValue - The hash key value.public String getRangeKeyField()
public void setRangeKeyField(String rangeKeyField)
rangeKeyField - The range key name.public DynamoDBAction withRangeKeyField(String rangeKeyField)
Returns a reference to this object so that method calls can be chained together.
rangeKeyField - The range key name.public String getRangeKeyValue()
public void setRangeKeyValue(String rangeKeyValue)
rangeKeyValue - The range key value.public DynamoDBAction withRangeKeyValue(String rangeKeyValue)
Returns a reference to this object so that method calls can be chained together.
rangeKeyValue - The range key value.public String getPayloadField()
public void setPayloadField(String payloadField)
payloadField - The action payload. This name can be customized.public DynamoDBAction withPayloadField(String payloadField)
Returns a reference to this object so that method calls can be chained together.
payloadField - The action payload. This name can be customized.public String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.