public class DynamoDBAction
extends java.lang.Object
implements java.io.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(java.lang.Object obj) |
java.lang.String |
getHashKeyField()
The hash key name.
|
java.lang.String |
getHashKeyType()
The hash key type.
|
java.lang.String |
getHashKeyValue()
The hash key value.
|
java.lang.String |
getOperation()
The type of operation to be performed.
|
java.lang.String |
getPayloadField()
The action payload.
|
java.lang.String |
getRangeKeyField()
The range key name.
|
java.lang.String |
getRangeKeyType()
The range key type.
|
java.lang.String |
getRangeKeyValue()
The range key value.
|
java.lang.String |
getRoleArn()
The ARN of the IAM role that grants access to the DynamoDB table.
|
java.lang.String |
getTableName()
The name of the DynamoDB table.
|
int |
hashCode() |
void |
setHashKeyField(java.lang.String hashKeyField)
The hash key name.
|
void |
setHashKeyType(DynamoKeyType hashKeyType)
The hash key type.
|
void |
setHashKeyType(java.lang.String hashKeyType)
The hash key type.
|
void |
setHashKeyValue(java.lang.String hashKeyValue)
The hash key value.
|
void |
setOperation(java.lang.String operation)
The type of operation to be performed.
|
void |
setPayloadField(java.lang.String payloadField)
The action payload.
|
void |
setRangeKeyField(java.lang.String rangeKeyField)
The range key name.
|
void |
setRangeKeyType(DynamoKeyType rangeKeyType)
The range key type.
|
void |
setRangeKeyType(java.lang.String rangeKeyType)
The range key type.
|
void |
setRangeKeyValue(java.lang.String rangeKeyValue)
The range key value.
|
void |
setRoleArn(java.lang.String roleArn)
The ARN of the IAM role that grants access to the DynamoDB table.
|
void |
setTableName(java.lang.String tableName)
The name of the DynamoDB table.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DynamoDBAction |
withHashKeyField(java.lang.String hashKeyField)
The hash key name.
|
DynamoDBAction |
withHashKeyType(DynamoKeyType hashKeyType)
The hash key type.
|
DynamoDBAction |
withHashKeyType(java.lang.String hashKeyType)
The hash key type.
|
DynamoDBAction |
withHashKeyValue(java.lang.String hashKeyValue)
The hash key value.
|
DynamoDBAction |
withOperation(java.lang.String operation)
The type of operation to be performed.
|
DynamoDBAction |
withPayloadField(java.lang.String payloadField)
The action payload.
|
DynamoDBAction |
withRangeKeyField(java.lang.String rangeKeyField)
The range key name.
|
DynamoDBAction |
withRangeKeyType(DynamoKeyType rangeKeyType)
The range key type.
|
DynamoDBAction |
withRangeKeyType(java.lang.String rangeKeyType)
The range key type.
|
DynamoDBAction |
withRangeKeyValue(java.lang.String rangeKeyValue)
The range key value.
|
DynamoDBAction |
withRoleArn(java.lang.String roleArn)
The ARN of the IAM role that grants access to the DynamoDB table.
|
DynamoDBAction |
withTableName(java.lang.String tableName)
The name of the DynamoDB table.
|
public java.lang.String getTableName()
The name of the DynamoDB table.
The name of the DynamoDB table.
public void setTableName(java.lang.String tableName)
The name of the DynamoDB table.
tableName
- The name of the DynamoDB table.
public DynamoDBAction withTableName(java.lang.String tableName)
The name of the DynamoDB table.
Returns a reference to this object so that method calls can be chained together.
tableName
- The name of the DynamoDB table.
public java.lang.String getRoleArn()
The ARN of the IAM role that grants access to the DynamoDB table.
The ARN of the IAM role that grants access to the DynamoDB table.
public void setRoleArn(java.lang.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 DynamoDBAction withRoleArn(java.lang.String roleArn)
The ARN of the IAM role that grants access to the DynamoDB table.
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 java.lang.String getOperation()
The type of operation to be performed. This follows the substitution
template, so it can be ${operation}
, but the substitution
must result in one of the following: INSERT
,
UPDATE
, or DELETE
.
The type of operation to be performed. This follows the
substitution template, so it can be ${operation}
,
but the substitution must result in one of the following:
INSERT
, UPDATE
, or DELETE
.
public void setOperation(java.lang.String operation)
The type of operation to be performed. This follows the substitution
template, so it can be ${operation}
, but the substitution
must result in one of the following: INSERT
,
UPDATE
, or DELETE
.
operation
-
The type of operation to be performed. This follows the
substitution template, so it can be ${operation}
,
but the substitution must result in one of the following:
INSERT
, UPDATE
, or
DELETE
.
public DynamoDBAction withOperation(java.lang.String operation)
The type of operation to be performed. This follows the substitution
template, so it can be ${operation}
, but the substitution
must result in one of the following: INSERT
,
UPDATE
, or DELETE
.
Returns a reference to this object so that method calls can be chained together.
operation
-
The type of operation to be performed. This follows the
substitution template, so it can be ${operation}
,
but the substitution must result in one of the following:
INSERT
, UPDATE
, or
DELETE
.
public java.lang.String getHashKeyField()
The hash key name.
The hash key name.
public void setHashKeyField(java.lang.String hashKeyField)
The hash key name.
hashKeyField
- The hash key name.
public DynamoDBAction withHashKeyField(java.lang.String hashKeyField)
The hash key name.
Returns a reference to this object so that method calls can be chained together.
hashKeyField
- The hash key name.
public java.lang.String getHashKeyValue()
The hash key value.
The hash key value.
public void setHashKeyValue(java.lang.String hashKeyValue)
The hash key value.
hashKeyValue
- The hash key value.
public DynamoDBAction withHashKeyValue(java.lang.String hashKeyValue)
The hash key value.
Returns a reference to this object so that method calls can be chained together.
hashKeyValue
- The hash key value.
public java.lang.String getHashKeyType()
The hash key type. Valid values are "STRING" or "NUMBER"
Constraints:
Allowed Values: STRING, NUMBER
The hash key type. Valid values are "STRING" or "NUMBER"
DynamoKeyType
public void setHashKeyType(java.lang.String hashKeyType)
The hash key type. Valid values are "STRING" or "NUMBER"
Constraints:
Allowed Values: STRING, NUMBER
hashKeyType
- The hash key type. Valid values are "STRING" or "NUMBER"
DynamoKeyType
public DynamoDBAction withHashKeyType(java.lang.String hashKeyType)
The hash key type. Valid values are "STRING" or "NUMBER"
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: STRING, NUMBER
hashKeyType
- The hash key type. Valid values are "STRING" or "NUMBER"
DynamoKeyType
public void setHashKeyType(DynamoKeyType hashKeyType)
The hash key type. Valid values are "STRING" or "NUMBER"
Constraints:
Allowed Values: STRING, NUMBER
hashKeyType
- The hash key type. Valid values are "STRING" or "NUMBER"
DynamoKeyType
public DynamoDBAction withHashKeyType(DynamoKeyType hashKeyType)
The hash key type. Valid values are "STRING" or "NUMBER"
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: STRING, NUMBER
hashKeyType
- The hash key type. Valid values are "STRING" or "NUMBER"
DynamoKeyType
public java.lang.String getRangeKeyField()
The range key name.
The range key name.
public void setRangeKeyField(java.lang.String rangeKeyField)
The range key name.
rangeKeyField
- The range key name.
public DynamoDBAction withRangeKeyField(java.lang.String rangeKeyField)
The range key name.
Returns a reference to this object so that method calls can be chained together.
rangeKeyField
- The range key name.
public java.lang.String getRangeKeyValue()
The range key value.
The range key value.
public void setRangeKeyValue(java.lang.String rangeKeyValue)
The range key value.
rangeKeyValue
- The range key value.
public DynamoDBAction withRangeKeyValue(java.lang.String rangeKeyValue)
The range key value.
Returns a reference to this object so that method calls can be chained together.
rangeKeyValue
- The range key value.
public java.lang.String getRangeKeyType()
The range key type. Valid values are "STRING" or "NUMBER"
Constraints:
Allowed Values: STRING, NUMBER
The range key type. Valid values are "STRING" or "NUMBER"
DynamoKeyType
public void setRangeKeyType(java.lang.String rangeKeyType)
The range key type. Valid values are "STRING" or "NUMBER"
Constraints:
Allowed Values: STRING, NUMBER
rangeKeyType
- The range key type. Valid values are "STRING" or "NUMBER"
DynamoKeyType
public DynamoDBAction withRangeKeyType(java.lang.String rangeKeyType)
The range key type. Valid values are "STRING" or "NUMBER"
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: STRING, NUMBER
rangeKeyType
- The range key type. Valid values are "STRING" or "NUMBER"
DynamoKeyType
public void setRangeKeyType(DynamoKeyType rangeKeyType)
The range key type. Valid values are "STRING" or "NUMBER"
Constraints:
Allowed Values: STRING, NUMBER
rangeKeyType
- The range key type. Valid values are "STRING" or "NUMBER"
DynamoKeyType
public DynamoDBAction withRangeKeyType(DynamoKeyType rangeKeyType)
The range key type. Valid values are "STRING" or "NUMBER"
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: STRING, NUMBER
rangeKeyType
- The range key type. Valid values are "STRING" or "NUMBER"
DynamoKeyType
public java.lang.String getPayloadField()
The action payload. This name can be customized.
The action payload. This name can be customized.
public void setPayloadField(java.lang.String payloadField)
The action payload. This name can be customized.
payloadField
- The action payload. This name can be customized.
public DynamoDBAction withPayloadField(java.lang.String payloadField)
The action payload. This name can be customized.
Returns a reference to this object so that method calls can be chained together.
payloadField
- The action payload. This name can be customized.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.