Class Shard
java.lang.Object
software.amazon.awssdk.services.kinesis.model.Shard
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Shard.Builder,Shard>
@Generated("software.amazon.awssdk:codegen")
public final class Shard
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<Shard.Builder,Shard>
A uniquely identified group of data records in a Kinesis data stream.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe shard ID of the shard adjacent to the shard's parent.static Shard.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final HashKeyRangeThe range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.final StringThe shard ID of the shard's parent.final SequenceNumberRangeThe range of possible sequence numbers for the shard.static Class<? extends Shard.Builder>final StringshardId()The unique identifier of the shard within the stream.final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
shardId
The unique identifier of the shard within the stream.
- Returns:
- The unique identifier of the shard within the stream.
-
parentShardId
The shard ID of the shard's parent.
- Returns:
- The shard ID of the shard's parent.
-
adjacentParentShardId
The shard ID of the shard adjacent to the shard's parent.
- Returns:
- The shard ID of the shard adjacent to the shard's parent.
-
hashKeyRange
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
- Returns:
- The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
-
sequenceNumberRange
The range of possible sequence numbers for the shard.
- Returns:
- The range of possible sequence numbers for the shard.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<Shard.Builder,Shard>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-