Table of Contents

Class UpdateItemResponse

Namespace
DynaSharp.Requests
Assembly
DynaSharp.dll

The result of UpdateItemRequest.

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

Constructors

UpdateItemResponse()

public UpdateItemResponse()

Properties

Attributes

Gets the attributes selected by ReturnValues, before or after the update: the whole item for AllOld and AllNew, only the changed attributes for UpdatedOld and UpdatedNew. null when nothing was requested, and for the Old variants when the item did not exist before.

public IReadOnlyDictionary<string, AttributeValue>? Attributes { get; init; }

Property Value

IReadOnlyDictionary<string, AttributeValue>

ConsumedCapacity

Gets the capacity the call consumed. Non-null only when the request set ReturnConsumedCapacity; otherwise null. An update consumes write capacity for the larger of the item sizes before and after.

public ConsumedCapacity? ConsumedCapacity { get; init; }

Property Value

ConsumedCapacity

ItemCollectionMetrics

Gets the size estimate of the item collection, if requested with ReturnItemCollectionMetrics and the table has a local secondary index; otherwise null.

public ItemCollectionMetrics? ItemCollectionMetrics { get; init; }

Property Value

ItemCollectionMetrics

Methods

Equals(UpdateItemResponse?)

public bool Equals(UpdateItemResponse? other)

Parameters

other UpdateItemResponse

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

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

Parameters

left UpdateItemResponse
right UpdateItemResponse

Returns

bool

operator !=(UpdateItemResponse?, UpdateItemResponse?)

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

Parameters

left UpdateItemResponse
right UpdateItemResponse

Returns

bool