Table of Contents

Class WriteRequest

Namespace
DynaSharp.Requests
Assembly
DynaSharp.dll

One write of a BatchWriteItemRequest: either a put or a delete. DynamoDB returns the writes it did not process in the same form as UnprocessedItems.

public sealed record WriteRequest : IEquatable<WriteRequest>
Inheritance
WriteRequest
Implements
Inherited Members

Remarks

Set exactly one of PutRequest and DeleteRequest. The library sends whatever is set and leaves the check to DynamoDB, which rejects a write with neither or with both with a ValidationException. A write has no condition expression; use TransactWriteItemsRequest when a write must be conditional.

Constructors

WriteRequest()

public WriteRequest()

Properties

DeleteRequest

Gets the delete, or null if this write is a put.

public DeleteRequest? DeleteRequest { get; init; }

Property Value

DeleteRequest

PutRequest

Gets the put, or null if this write is a delete.

public PutRequest? PutRequest { get; init; }

Property Value

PutRequest

Methods

Equals(WriteRequest?)

public bool Equals(WriteRequest? other)

Parameters

other WriteRequest

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 ==(WriteRequest?, WriteRequest?)

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

Parameters

left WriteRequest
right WriteRequest

Returns

bool

operator !=(WriteRequest?, WriteRequest?)

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

Parameters

left WriteRequest
right WriteRequest

Returns

bool