public class Shard
extends java.lang.Object
implements java.io.Serializable
A uniquely identified group of data records in an Amazon Kinesis stream.
| Constructor and Description |
|---|
Shard() |
| Modifier and Type | Method and Description |
|---|---|
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 Amazon Kinesis 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 Amazon Kinesis 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 Amazon Kinesis stream.
|
public java.lang.String getShardId()
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
public void setShardId(java.lang.String shardId)
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
shardId - The unique identifier of the shard within the Amazon Kinesis stream.public Shard withShardId(java.lang.String shardId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
shardId - The unique identifier of the shard within the Amazon Kinesis stream.public java.lang.String getParentShardId()
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
public void setParentShardId(java.lang.String parentShardId)
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
parentShardId - The shard Id of the shard's parent.public Shard withParentShardId(java.lang.String parentShardId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
parentShardId - The shard Id of the shard's parent.public java.lang.String getAdjacentParentShardId()
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
public void setAdjacentParentShardId(java.lang.String adjacentParentShardId)
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
adjacentParentShardId - The shard Id of the shard adjacent to the shard's parent.public Shard withAdjacentParentShardId(java.lang.String adjacentParentShardId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
adjacentParentShardId - The shard Id of the shard adjacent to the shard's parent.public HashKeyRange getHashKeyRange()
public void setHashKeyRange(HashKeyRange hashKeyRange)
hashKeyRange - The range of possible hash key values for the shard, which is a set of
ordered contiguous positive integers.public Shard withHashKeyRange(HashKeyRange hashKeyRange)
Returns a reference to this object so that method calls can be chained together.
hashKeyRange - The range of possible hash key values for the shard, which is a set of
ordered contiguous positive integers.public SequenceNumberRange getSequenceNumberRange()
public void setSequenceNumberRange(SequenceNumberRange sequenceNumberRange)
sequenceNumberRange - The range of possible sequence numbers for the shard.public Shard withSequenceNumberRange(SequenceNumberRange sequenceNumberRange)
Returns a reference to this object so that method calls can be chained together.
sequenceNumberRange - The range of possible sequence numbers for the shard.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object