public class Shard
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A uniquely identified group of data records in an Amazon Kinesis stream.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
adjacentParentShardId
The shard ID of the shard adjacent to the shard's parent.
|
private HashKeyRange |
hashKeyRange
The range of possible hash key values for the shard, which is a set of
ordered contiguous positive integers.
|
private java.lang.String |
parentShardId
The shard ID of the shard's parent.
|
private SequenceNumberRange |
sequenceNumberRange
The range of possible sequence numbers for the shard.
|
private java.lang.String |
shardId
The unique identifier of the shard within the stream.
|
Constructor and Description |
---|
Shard() |
Modifier and Type | Method and Description |
---|---|
Shard |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAdjacentParentShardId()
The shard ID of the shard adjacent to the shard's parent.
|
HashKeyRange |
getHashKeyRange()
The range of possible hash key values for the shard, which is a set of
ordered contiguous positive integers.
|
java.lang.String |
getParentShardId()
The shard ID of the shard's parent.
|
SequenceNumberRange |
getSequenceNumberRange()
The range of possible sequence numbers for the shard.
|
java.lang.String |
getShardId()
The unique identifier of the shard within the stream.
|
int |
hashCode() |
void |
setAdjacentParentShardId(java.lang.String adjacentParentShardId)
The shard ID of the shard adjacent to the shard's parent.
|
void |
setHashKeyRange(HashKeyRange hashKeyRange)
The range of possible hash key values for the shard, which is a set of
ordered contiguous positive integers.
|
void |
setParentShardId(java.lang.String parentShardId)
The shard ID of the shard's parent.
|
void |
setSequenceNumberRange(SequenceNumberRange sequenceNumberRange)
The range of possible sequence numbers for the shard.
|
void |
setShardId(java.lang.String shardId)
The unique identifier of the shard within the stream.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Shard |
withAdjacentParentShardId(java.lang.String adjacentParentShardId)
The shard ID of the shard adjacent to the shard's parent.
|
Shard |
withHashKeyRange(HashKeyRange hashKeyRange)
The range of possible hash key values for the shard, which is a set of
ordered contiguous positive integers.
|
Shard |
withParentShardId(java.lang.String parentShardId)
The shard ID of the shard's parent.
|
Shard |
withSequenceNumberRange(SequenceNumberRange sequenceNumberRange)
The range of possible sequence numbers for the shard.
|
Shard |
withShardId(java.lang.String shardId)
The unique identifier of the shard within the stream.
|
private java.lang.String shardId
The unique identifier of the shard within the stream.
private java.lang.String parentShardId
The shard ID of the shard's parent.
private java.lang.String adjacentParentShardId
The shard ID of the shard adjacent to the shard's parent.
private HashKeyRange hashKeyRange
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
private SequenceNumberRange sequenceNumberRange
The range of possible sequence numbers for the shard.
public void setShardId(java.lang.String shardId)
The unique identifier of the shard within the stream.
shardId
- The unique identifier of the shard within the stream.public java.lang.String getShardId()
The unique identifier of the shard within the stream.
public Shard withShardId(java.lang.String shardId)
The unique identifier of the shard within the stream.
shardId
- The unique identifier of the shard within the stream.public void setParentShardId(java.lang.String parentShardId)
The shard ID of the shard's parent.
parentShardId
- The shard ID of the shard's parent.public java.lang.String getParentShardId()
The shard ID of the shard's parent.
public Shard withParentShardId(java.lang.String parentShardId)
The shard ID of the shard's parent.
parentShardId
- The shard ID of the shard's parent.public void setAdjacentParentShardId(java.lang.String adjacentParentShardId)
The shard ID of the shard adjacent to the shard's parent.
adjacentParentShardId
- The shard ID of the shard adjacent to the shard's parent.public java.lang.String getAdjacentParentShardId()
The shard ID of the shard adjacent to the shard's parent.
public Shard withAdjacentParentShardId(java.lang.String adjacentParentShardId)
The shard ID of the shard adjacent to the shard's parent.
adjacentParentShardId
- The shard ID of the shard adjacent to the shard's parent.public void setHashKeyRange(HashKeyRange hashKeyRange)
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
hashKeyRange
- The range of possible hash key values for the shard, which is a
set of ordered contiguous positive integers.public HashKeyRange getHashKeyRange()
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
public Shard withHashKeyRange(HashKeyRange hashKeyRange)
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
hashKeyRange
- The range of possible hash key values for the shard, which is a
set of ordered contiguous positive integers.public void setSequenceNumberRange(SequenceNumberRange sequenceNumberRange)
The range of possible sequence numbers for the shard.
sequenceNumberRange
- The range of possible sequence numbers for the shard.public SequenceNumberRange getSequenceNumberRange()
The range of possible sequence numbers for the shard.
public Shard withSequenceNumberRange(SequenceNumberRange sequenceNumberRange)
The range of possible sequence numbers for the shard.
sequenceNumberRange
- The range of possible sequence numbers for the shard.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Shard clone()
clone
in class java.lang.Object