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 SequenceNumberRange
clone()
boolean
equals(Object obj)
String
getEndingSequenceNumber()
The ending sequence number for the range.String
getStartingSequenceNumber()
The starting sequence number for the range.int
hashCode()
void
setEndingSequenceNumber(String endingSequenceNumber)
The ending sequence number for the range.void
setStartingSequenceNumber(String startingSequenceNumber)
The starting sequence number for the range.String
toString()
Returns a string representation of this object; useful for testing and debugging.SequenceNumberRange
withEndingSequenceNumber(String endingSequenceNumber)
The ending sequence number for the range.SequenceNumberRange
withStartingSequenceNumber(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SequenceNumberRange clone()
-
-