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:
  • Constructor Details

    • SequenceNumberRange

      public SequenceNumberRange()
  • Method Details

    • 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 of null.
    • 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 of null.
      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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public SequenceNumberRange clone()
      Overrides:
      clone in class Object