Class SequenceNumberRange
- java.lang.Object
-
- com.amazonaws.services.kinesis.model.SequenceNumberRange
-
- All Implemented Interfaces:
Serializable,Cloneable
public class SequenceNumberRange extends Object implements Serializable, Cloneable
The range of possible sequence numbers for the shard.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SequenceNumberRange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SequenceNumberRangeclone()booleanequals(Object obj)StringgetEndingSequenceNumber()The ending sequence number for the range.StringgetStartingSequenceNumber()The starting sequence number for the range.inthashCode()voidsetEndingSequenceNumber(String endingSequenceNumber)The ending sequence number for the range.voidsetStartingSequenceNumber(String startingSequenceNumber)The starting sequence number for the range.StringtoString()Returns a string representation of this object; useful for testing and debugging.SequenceNumberRangewithEndingSequenceNumber(String endingSequenceNumber)The ending sequence number for the range.SequenceNumberRangewithStartingSequenceNumber(String startingSequenceNumber)The starting sequence number for the range.
-
-
-
Method Detail
-
setStartingSequenceNumber
public void setStartingSequenceNumber(String startingSequenceNumber)
The starting sequence number for the range.
- Parameters:
startingSequenceNumber- The starting sequence number for the range.
-
getStartingSequenceNumber
public String getStartingSequenceNumber()
The starting sequence number for the range.
- Returns:
- The starting sequence number for the range.
-
withStartingSequenceNumber
public SequenceNumberRange withStartingSequenceNumber(String startingSequenceNumber)
The starting sequence number for the range.
- Parameters:
startingSequenceNumber- The starting sequence number for the range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEndingSequenceNumber
public void setEndingSequenceNumber(String endingSequenceNumber)
The ending sequence number for the range. Shards that are in the OPEN state have an ending sequence number of
null.- Parameters:
endingSequenceNumber- The ending sequence number for the range. Shards that are in the OPEN state have an ending sequence number ofnull.
-
getEndingSequenceNumber
public String getEndingSequenceNumber()
The ending sequence number for the range. Shards that are in the OPEN state have an ending sequence number of
null.- Returns:
- The ending sequence number for the range. Shards that are in the
OPEN state have an ending sequence number of
null.
-
withEndingSequenceNumber
public SequenceNumberRange withEndingSequenceNumber(String endingSequenceNumber)
The ending sequence number for the range. Shards that are in the OPEN state have an ending sequence number of
null.- Parameters:
endingSequenceNumber- The ending sequence number for the range. Shards that are in the OPEN state have an ending sequence number ofnull.- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SequenceNumberRange clone()
-
-