Class Shard
java.lang.Object
com.amazonaws.services.dynamodbv2.model.Shard
- All Implemented Interfaces:
Serializable,Cloneable
A uniquely identified group of stream records within a stream.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe shard ID of the current shard's parent.The range of possible sequence numbers for the shard.The system-generated identifier for this shard.inthashCode()voidsetParentShardId(String parentShardId) The shard ID of the current shard's parent.voidsetSequenceNumberRange(SequenceNumberRange sequenceNumberRange) The range of possible sequence numbers for the shard.voidsetShardId(String shardId) The system-generated identifier for this shard.toString()Returns a string representation of this object; useful for testing and debugging.withParentShardId(String parentShardId) The shard ID of the current shard's parent.withSequenceNumberRange(SequenceNumberRange sequenceNumberRange) The range of possible sequence numbers for the shard.withShardId(String shardId) The system-generated identifier for this shard.
-
Constructor Details
-
Shard
public Shard()
-
-
Method Details
-
setShardId
The system-generated identifier for this shard.
- Parameters:
shardId- The system-generated identifier for this shard.
-
getShardId
The system-generated identifier for this shard.
- Returns:
- The system-generated identifier for this shard.
-
withShardId
The system-generated identifier for this shard.
- Parameters:
shardId- The system-generated identifier for this shard.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSequenceNumberRange
The range of possible sequence numbers for the shard.
- Parameters:
sequenceNumberRange- The range of possible sequence numbers for the shard.
-
getSequenceNumberRange
The range of possible sequence numbers for the shard.
- Returns:
- The range of possible sequence numbers for the shard.
-
withSequenceNumberRange
The range of possible sequence numbers for the shard.
- Parameters:
sequenceNumberRange- The range of possible sequence numbers for the shard.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setParentShardId
The shard ID of the current shard's parent.
- Parameters:
parentShardId- The shard ID of the current shard's parent.
-
getParentShardId
The shard ID of the current shard's parent.
- Returns:
- The shard ID of the current shard's parent.
-
withParentShardId
The shard ID of the current shard's parent.
- Parameters:
parentShardId- The shard ID of the current shard's parent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-