Record Class AbstractCrossTableBatchGetBuilder.Entry
java.lang.Object
java.lang.Record
dev.hogwai.dynamodb.simplified.builder.base.AbstractCrossTableBatchGetBuilder.Entry
- Record Components:
table- the table reference (eitherDynamoDbTableorDynamoDbAsyncTable)key- the DynamoDB keyprojectionExpression- optional projection expression, may benull
- Enclosing class:
AbstractCrossTableBatchGetBuilder<S extends AbstractCrossTableBatchGetBuilder<S>>
public static record AbstractCrossTableBatchGetBuilder.Entry(Object table, software.amazon.awssdk.enhanced.dynamodb.Key key, @Nullable ProjectionExpression projectionExpression)
extends Record
Stores a table reference, key, and optional per-entry projection expression.
The table is stored as
Object to accommodate both Table
and AsyncTable types without coupling the base to either package.-
Constructor Summary
ConstructorsConstructorDescriptionEntry(Object table, software.amazon.awssdk.enhanced.dynamodb.Key key, @Nullable ProjectionExpression projectionExpression) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.software.amazon.awssdk.enhanced.dynamodb.Keykey()Returns the value of thekeyrecord component.@Nullable ProjectionExpressionReturns the value of theprojectionExpressionrecord component.table()Returns the value of thetablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Entry
public Entry(Object table, software.amazon.awssdk.enhanced.dynamodb.Key key, @Nullable ProjectionExpression projectionExpression) Creates an instance of aEntryrecord class.- Parameters:
table- the value for thetablerecord componentkey- the value for thekeyrecord componentprojectionExpression- the value for theprojectionExpressionrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
table
-
key
-
projectionExpression
Returns the value of theprojectionExpressionrecord component.- Returns:
- the value of the
projectionExpressionrecord component
-