Class Shard
- java.lang.Object
-
- com.amazonaws.services.dynamodbv2.model.Shard
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Shard extends Object implements Serializable, Cloneable
A uniquely identified group of stream records within a stream.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Shard()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Shardclone()booleanequals(Object obj)StringgetParentShardId()The shard ID of the current shard's parent.SequenceNumberRangegetSequenceNumberRange()The range of possible sequence numbers for the shard.StringgetShardId()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.StringtoString()Returns a string representation of this object; useful for testing and debugging.ShardwithParentShardId(String parentShardId)The shard ID of the current shard's parent.ShardwithSequenceNumberRange(SequenceNumberRange sequenceNumberRange)The range of possible sequence numbers for the shard.ShardwithShardId(String shardId)The system-generated identifier for this shard.
-
-
-
Method Detail
-
setShardId
public void setShardId(String shardId)
The system-generated identifier for this shard.
- Parameters:
shardId- The system-generated identifier for this shard.
-
getShardId
public String getShardId()
The system-generated identifier for this shard.
- Returns:
- The system-generated identifier for this shard.
-
withShardId
public Shard withShardId(String shardId)
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
public void setSequenceNumberRange(SequenceNumberRange sequenceNumberRange)
The range of possible sequence numbers for the shard.
- Parameters:
sequenceNumberRange- The range of possible sequence numbers for the shard.
-
getSequenceNumberRange
public SequenceNumberRange getSequenceNumberRange()
The range of possible sequence numbers for the shard.
- Returns:
- The range of possible sequence numbers for the shard.
-
withSequenceNumberRange
public Shard withSequenceNumberRange(SequenceNumberRange sequenceNumberRange)
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
public void setParentShardId(String parentShardId)
The shard ID of the current shard's parent.
- Parameters:
parentShardId- The shard ID of the current shard's parent.
-
getParentShardId
public String getParentShardId()
The shard ID of the current shard's parent.
- Returns:
- The shard ID of the current shard's parent.
-
withParentShardId
public Shard withParentShardId(String parentShardId)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-