@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Shard extends Object implements Serializable, Cloneable, StructuredPojo
A uniquely identified group of stream records within a stream.
| Constructor and Description |
|---|
Shard() |
| Modifier and Type | Method and Description |
|---|---|
Shard |
clone() |
boolean |
equals(Object obj) |
String |
getParentShardId()
The shard ID of the current shard's parent.
|
SequenceNumberRange |
getSequenceNumberRange()
The range of possible sequence numbers for the shard.
|
String |
getShardId()
The system-generated identifier for this shard.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setParentShardId(String parentShardId)
The shard ID of the current shard's parent.
|
void |
setSequenceNumberRange(SequenceNumberRange sequenceNumberRange)
The range of possible sequence numbers for the shard.
|
void |
setShardId(String shardId)
The system-generated identifier for this shard.
|
String |
toString()
Returns a string representation of this object.
|
Shard |
withParentShardId(String parentShardId)
The shard ID of the current shard's parent.
|
Shard |
withSequenceNumberRange(SequenceNumberRange sequenceNumberRange)
The range of possible sequence numbers for the shard.
|
Shard |
withShardId(String shardId)
The system-generated identifier for this shard.
|
public void setShardId(String shardId)
The system-generated identifier for this shard.
shardId - The system-generated identifier for this shard.public String getShardId()
The system-generated identifier for this shard.
public Shard withShardId(String shardId)
The system-generated identifier for this shard.
shardId - The system-generated identifier for this 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 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 void setParentShardId(String parentShardId)
The shard ID of the current shard's parent.
parentShardId - The shard ID of the current shard's parent.public String getParentShardId()
The shard ID of the current shard's parent.
public Shard withParentShardId(String parentShardId)
The shard ID of the current shard's parent.
parentShardId - The shard ID of the current shard's parent.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.