Class TransactWriteItem
One action of a TransactWriteItemsRequest: a put, a delete, an update or a condition check.
public sealed record TransactWriteItem : IEquatable<TransactWriteItem>
- Inheritance
-
TransactWriteItem
- Implements
- Inherited Members
Remarks
Set exactly one of ConditionCheck, Put, Delete and Update. The library sends whatever is set and leaves the check to DynamoDB, which rejects an action with none or with several members with a ValidationException.
Constructors
TransactWriteItem()
public TransactWriteItem()
Properties
ConditionCheck
Gets the condition check, or null if this action is another kind.
public TransactConditionCheck? ConditionCheck { get; init; }
Property Value
Delete
Gets the delete, or null if this action is another kind.
public TransactDelete? Delete { get; init; }
Property Value
Put
Gets the put, or null if this action is another kind.
public TransactPut? Put { get; init; }
Property Value
Update
Gets the update, or null if this action is another kind.
public TransactUpdate? Update { get; init; }
Property Value
Methods
Equals(TransactWriteItem?)
public bool Equals(TransactWriteItem? other)
Parameters
otherTransactWriteItem
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(TransactWriteItem?, TransactWriteItem?)
public static bool operator ==(TransactWriteItem? left, TransactWriteItem? right)
Parameters
leftTransactWriteItemrightTransactWriteItem
Returns
operator !=(TransactWriteItem?, TransactWriteItem?)
public static bool operator !=(TransactWriteItem? left, TransactWriteItem? right)
Parameters
leftTransactWriteItemrightTransactWriteItem