@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Shard extends Object implements Serializable, Cloneable, StructuredPojo
A uniquely identified group of data records in a Kinesis data stream.
Constructor and Description |
---|
Shard() |
Modifier and Type | Method and 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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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.
|
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.
|
public void setShardId(String shardId)
The unique identifier of the shard within the stream.
shardId
- The unique identifier of the shard within the stream.public String getShardId()
The unique identifier of the shard within the stream.
public Shard withShardId(String shardId)
The unique identifier of the shard within the stream.
shardId
- The unique identifier of the shard within the stream.public void setParentShardId(String parentShardId)
The shard ID of the shard's parent.
parentShardId
- The shard ID of the shard's parent.public String getParentShardId()
The shard ID of the shard's parent.
public Shard withParentShardId(String parentShardId)
The shard ID of the shard's parent.
parentShardId
- The shard ID of the shard's parent.public void setAdjacentParentShardId(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 String getAdjacentParentShardId()
The shard ID of the shard adjacent to the shard's parent.
public Shard withAdjacentParentShardId(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 String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.