Table of Contents

Class TransactWriteItem

Namespace
DynaSharp.Requests
Assembly
DynaSharp.dll

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

TransactConditionCheck

Delete

Gets the delete, or null if this action is another kind.

public TransactDelete? Delete { get; init; }

Property Value

TransactDelete

Put

Gets the put, or null if this action is another kind.

public TransactPut? Put { get; init; }

Property Value

TransactPut

Update

Gets the update, or null if this action is another kind.

public TransactUpdate? Update { get; init; }

Property Value

TransactUpdate

Methods

Equals(TransactWriteItem?)

public bool Equals(TransactWriteItem? other)

Parameters

other TransactWriteItem

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(TransactWriteItem?, TransactWriteItem?)

public static bool operator ==(TransactWriteItem? left, TransactWriteItem? right)

Parameters

left TransactWriteItem
right TransactWriteItem

Returns

bool

operator !=(TransactWriteItem?, TransactWriteItem?)

public static bool operator !=(TransactWriteItem? left, TransactWriteItem? right)

Parameters

left TransactWriteItem
right TransactWriteItem

Returns

bool