Class Shard
- java.lang.Object
-
- com.amazonaws.services.kinesis.model.Shard
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Shard extends Object implements Serializable, Cloneable
A uniquely identified group of data records in an Amazon Kinesis stream.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Shard()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Shard
clone()
boolean
equals(Object obj)
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.String
getParentShardId()
The shard ID of the shard's parent.SequenceNumberRange
getSequenceNumberRange()
The range of possible sequence numbers for the shard.String
getShardId()
The unique identifier of the shard within the stream.int
hashCode()
void
setAdjacentParentShardId(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(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(String shardId)
The unique identifier of the shard within the stream.String
toString()
Returns a string representation of this object; useful for testing and debugging.Shard
withAdjacentParentShardId(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(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(String shardId)
The unique identifier of the shard within the stream.
-
-
-
Method Detail
-
setShardId
public void setShardId(String shardId)
The unique identifier of the shard within the stream.
- Parameters:
shardId
- The unique identifier of the shard within the stream.
-
getShardId
public String getShardId()
The unique identifier of the shard within the stream.
- Returns:
- The unique identifier of the shard within the stream.
-
withShardId
public Shard withShardId(String shardId)
The unique identifier of the shard within the stream.
- Parameters:
shardId
- The unique identifier of the shard within the stream.- 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 shard's parent.
- Parameters:
parentShardId
- The shard ID of the shard's parent.
-
getParentShardId
public String getParentShardId()
The shard ID of the shard's parent.
- Returns:
- The shard ID of the shard's parent.
-
withParentShardId
public Shard withParentShardId(String parentShardId)
The shard ID of the shard's parent.
- Parameters:
parentShardId
- The shard ID of the shard's parent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAdjacentParentShardId
public void setAdjacentParentShardId(String adjacentParentShardId)
The shard ID of the shard adjacent to the shard's parent.
- Parameters:
adjacentParentShardId
- The shard ID of the shard adjacent to the shard's parent.
-
getAdjacentParentShardId
public String getAdjacentParentShardId()
The shard ID of the shard adjacent to the shard's parent.
- Returns:
- The shard ID of the shard adjacent to the shard's parent.
-
withAdjacentParentShardId
public Shard withAdjacentParentShardId(String adjacentParentShardId)
The shard ID of the shard adjacent to the shard's parent.
- Parameters:
adjacentParentShardId
- The shard ID of the shard adjacent to the shard's parent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHashKeyRange
public void setHashKeyRange(HashKeyRange hashKeyRange)
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
- Parameters:
hashKeyRange
- The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
-
getHashKeyRange
public HashKeyRange getHashKeyRange()
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
- Returns:
- The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
-
withHashKeyRange
public Shard withHashKeyRange(HashKeyRange hashKeyRange)
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
- Parameters:
hashKeyRange
- The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.- 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.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-