public class Shard
extends java.lang.Object
implements java.io.Serializable
A uniquely identified group of data records in a Kinesis data 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 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.
|
public java.lang.String getShardId()
The unique identifier of the shard within the stream.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
The unique identifier of the shard within the stream.
public void setShardId(java.lang.String shardId)
The unique identifier of the shard within the stream.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
shardId
- 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.
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 stream.
public java.lang.String getParentShardId()
The shard ID of the shard's parent.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
The shard ID of the shard's parent.
public void setParentShardId(java.lang.String parentShardId)
The shard ID of the shard's parent.
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)
The shard ID of the shard's parent.
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()
The shard ID of the shard adjacent to the shard's parent.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
The shard ID of the shard adjacent to the shard's parent.
public void setAdjacentParentShardId(java.lang.String adjacentParentShardId)
The shard ID of the shard adjacent to the shard's parent.
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)
The shard ID of the shard adjacent to the shard's parent.
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()
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
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 Shard withHashKeyRange(HashKeyRange hashKeyRange)
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
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()
The range of possible sequence numbers for the shard.
The range of possible sequence numbers for the shard.
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 Shard withSequenceNumberRange(SequenceNumberRange sequenceNumberRange)
The range of possible sequence numbers for the shard.
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.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.