Update class

Represents a request to perform an UpdateItem operation.

Constructors

Update({required Map<String, AttributeValue> key, required String tableName, required String updateExpression, 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
key Map<String, AttributeValue>
The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.
final
returnValuesOnConditionCheckFailure ReturnValuesOnConditionCheckFailure?
Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Update condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableName String
Name of the table for the UpdateItem request.
final
updateExpression String
An expression that defines one or more attributes to be updated, the action to be performed on them, and new value(s) for them.
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