Class DynamoDBAction
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DynamoDBAction.Builder,DynamoDBAction>
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()}"
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic DynamoDBAction.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringThe hash key name.final DynamoKeyTypeThe hash key type.final StringThe hash key type.final StringThe hash key value.final StringThe type of operation to be performed.final StringThe action payload.final StringThe range key name.final DynamoKeyTypeThe range key type.final StringThe range key type.final StringThe range key value.final StringroleArn()The ARN of the IAM role that grants access to the DynamoDB table.static Class<? extends DynamoDBAction.Builder> final StringThe name of the DynamoDB table.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
tableName
The name of the DynamoDB table.
- Returns:
- The name of the DynamoDB table.
-
roleArn
The ARN of the IAM role that grants access to the DynamoDB table.
- Returns:
- The ARN of the IAM role that grants access to the DynamoDB table.
-
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, orDELETE.- Returns:
- 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, orDELETE.
-
hashKeyField
-
hashKeyValue
-
hashKeyType
The hash key type. Valid values are "STRING" or "NUMBER"
If the service returns an enum value that is not available in the current SDK version,
hashKeyTypewill returnDynamoKeyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhashKeyTypeAsString().- Returns:
- The hash key type. Valid values are "STRING" or "NUMBER"
- See Also:
-
hashKeyTypeAsString
The hash key type. Valid values are "STRING" or "NUMBER"
If the service returns an enum value that is not available in the current SDK version,
hashKeyTypewill returnDynamoKeyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhashKeyTypeAsString().- Returns:
- The hash key type. Valid values are "STRING" or "NUMBER"
- See Also:
-
rangeKeyField
-
rangeKeyValue
-
rangeKeyType
The range key type. Valid values are "STRING" or "NUMBER"
If the service returns an enum value that is not available in the current SDK version,
rangeKeyTypewill returnDynamoKeyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrangeKeyTypeAsString().- Returns:
- The range key type. Valid values are "STRING" or "NUMBER"
- See Also:
-
rangeKeyTypeAsString
The range key type. Valid values are "STRING" or "NUMBER"
If the service returns an enum value that is not available in the current SDK version,
rangeKeyTypewill returnDynamoKeyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrangeKeyTypeAsString().- Returns:
- The range key type. Valid values are "STRING" or "NUMBER"
- See Also:
-
payloadField
The action payload. This name can be customized.
- Returns:
- The action payload. This name can be customized.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<DynamoDBAction.Builder,DynamoDBAction> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-