Class GetRecordsResponse
The result of GetRecordsRequest.
public sealed record GetRecordsResponse : IEquatable<GetRecordsResponse>
- Inheritance
-
GetRecordsResponse
- Implements
- Inherited Members
Remarks
An empty Records list with a NextShardIterator is normal: the shard has no new records yet, or DynamoDB read a part of the shard without finding any. Keep reading with the new iterator, and wait a moment between empty responses. Only a null NextShardIterator ends a shard.
Constructors
GetRecordsResponse()
public GetRecordsResponse()
Properties
NextShardIterator
Gets the iterator to read the next records with. null when the shard is closed and all its records have
been returned: the reader is done with this shard and continues with its child shards (see DescribeStream with a
ShardFilter). While the shard is open it is never null, even when Records is
empty. Valid for 15 minutes; treat it like a credential.
public string? NextShardIterator { get; init; }
Property Value
Records
Gets the records in the order DynamoDB wrote them. Empty when there are none yet: that is not an error and not the end of the shard.
public IReadOnlyList<ChangeRecord> Records { get; init; }
Property Value
Methods
Equals(GetRecordsResponse?)
public bool Equals(GetRecordsResponse? other)
Parameters
otherGetRecordsResponse
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 ==(GetRecordsResponse?, GetRecordsResponse?)
public static bool operator ==(GetRecordsResponse? left, GetRecordsResponse? right)
Parameters
leftGetRecordsResponserightGetRecordsResponse
Returns
operator !=(GetRecordsResponse?, GetRecordsResponse?)
public static bool operator !=(GetRecordsResponse? left, GetRecordsResponse? right)
Parameters
leftGetRecordsResponserightGetRecordsResponse