Put class

Represents a request to perform a PutItem operation.

Constructors

Put({required Map<String, AttributeValue> item, required String tableName, String? conditionExpression, Map<String, String>? expressionAttributeNames, Map<String, AttributeValue>? expressionAttributeValues, ReturnValuesOnConditionCheckFailure? returnValuesOnConditionCheckFailure})

Properties

conditionExpression String?
A condition that must be satisfied in order for a conditional update to succeed.
final
expressionAttributeNames Map<String, String>?
One or more substitution tokens for attribute names in an expression.
final
expressionAttributeValues Map<String, AttributeValue>?
One or more values that can be substituted in an expression.
final
hashCode int
The hash code for this object.
no setterinherited
item Map<String, AttributeValue>
A map of attribute name to attribute values, representing the primary key of the item to be written by PutItem. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema. If any attributes are present in the item that are part of an index key schema for the table, their types must match the index key schema.
final
returnValuesOnConditionCheckFailure ReturnValuesOnConditionCheckFailure?
Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Put condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE and ALL_OLD.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableName String
Name of the table in which to write the item.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited