Class DynamoDBAction
- java.lang.Object
-
- software.amazon.awssdk.services.iot.model.DynamoDBAction
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DynamoDBAction.Builder,DynamoDBAction>
@Generated("software.amazon.awssdk:codegen") public final class DynamoDBAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DynamoDBAction.Builder,DynamoDBAction>
Describes an action to write to a DynamoDB table.
The
tableName,hashKeyField, andrangeKeyFieldvalues must match the values used when you created the table.The
hashKeyValueandrangeKeyvaluefields 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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDynamoDBAction.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DynamoDBAction.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringhashKeyField()The hash key name.DynamoKeyTypehashKeyType()The hash key type.StringhashKeyTypeAsString()The hash key type.StringhashKeyValue()The hash key value.Stringoperation()The type of operation to be performed.StringpayloadField()The action payload.StringrangeKeyField()The range key name.DynamoKeyTyperangeKeyType()The range key type.StringrangeKeyTypeAsString()The range key type.StringrangeKeyValue()The range key value.StringroleArn()The ARN of the IAM role that grants access to the DynamoDB table.List<SdkField<?>>sdkFields()static Class<? extends DynamoDBAction.Builder>serializableBuilderClass()StringtableName()The name of the DynamoDB table.DynamoDBAction.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
tableName
public final String tableName()
The name of the DynamoDB table.
- Returns:
- The name of the DynamoDB table.
-
roleArn
public final String 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
public final 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, 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
public final String hashKeyField()
The hash key name.
- Returns:
- The hash key name.
-
hashKeyValue
public final String hashKeyValue()
The hash key value.
- Returns:
- The hash key value.
-
hashKeyType
public final DynamoKeyType 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:
DynamoKeyType
-
hashKeyTypeAsString
public final String 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:
DynamoKeyType
-
rangeKeyField
public final String rangeKeyField()
The range key name.
- Returns:
- The range key name.
-
rangeKeyValue
public final String rangeKeyValue()
The range key value.
- Returns:
- The range key value.
-
rangeKeyType
public final DynamoKeyType 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:
DynamoKeyType
-
rangeKeyTypeAsString
public final String 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:
DynamoKeyType
-
payloadField
public final String payloadField()
The action payload. This name can be customized.
- Returns:
- The action payload. This name can be customized.
-
toBuilder
public DynamoDBAction.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DynamoDBAction.Builder,DynamoDBAction>
-
builder
public static DynamoDBAction.Builder builder()
-
serializableBuilderClass
public static Class<? extends DynamoDBAction.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-