Class DynamoDBv2Action
- java.lang.Object
-
- software.amazon.awssdk.services.iot.model.DynamoDBv2Action
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<DynamoDBv2Action.Builder,DynamoDBv2Action>
@Generated("software.amazon.awssdk:codegen") public final class DynamoDBv2Action extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DynamoDBv2Action.Builder,DynamoDBv2Action>
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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
DynamoDBv2Action.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DynamoDBv2Action.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
PutItemInput
putItem()
Specifies the DynamoDB table to which the message data will be written.String
roleArn()
The ARN of the IAM role that grants access to the DynamoDB table.List<SdkField<?>>
sdkFields()
static Class<? extends DynamoDBv2Action.Builder>
serializableBuilderClass()
DynamoDBv2Action.Builder
toBuilder()
String
toString()
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
-
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.
-
putItem
public final 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.
- Returns:
- 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.
-
toBuilder
public DynamoDBv2Action.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<DynamoDBv2Action.Builder,DynamoDBv2Action>
-
builder
public static DynamoDBv2Action.Builder builder()
-
serializableBuilderClass
public static Class<? extends DynamoDBv2Action.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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.
-
-