Class HashKeyRange
- java.lang.Object
-
- com.amazonaws.services.kinesis.model.HashKeyRange
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class HashKeyRange extends Object implements Serializable, Cloneable
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HashKeyRange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HashKeyRange
clone()
boolean
equals(Object obj)
String
getEndingHashKey()
The ending hash key of the hash key range.String
getStartingHashKey()
The starting hash key of the hash key range.int
hashCode()
void
setEndingHashKey(String endingHashKey)
The ending hash key of the hash key range.void
setStartingHashKey(String startingHashKey)
The starting hash key of the hash key range.String
toString()
Returns a string representation of this object; useful for testing and debugging.HashKeyRange
withEndingHashKey(String endingHashKey)
The ending hash key of the hash key range.HashKeyRange
withStartingHashKey(String startingHashKey)
The starting hash key of the hash key range.
-
-
-
Method Detail
-
setStartingHashKey
public void setStartingHashKey(String startingHashKey)
The starting hash key of the hash key range.
- Parameters:
startingHashKey
- The starting hash key of the hash key range.
-
getStartingHashKey
public String getStartingHashKey()
The starting hash key of the hash key range.
- Returns:
- The starting hash key of the hash key range.
-
withStartingHashKey
public HashKeyRange withStartingHashKey(String startingHashKey)
The starting hash key of the hash key range.
- Parameters:
startingHashKey
- The starting hash key of the hash key range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEndingHashKey
public void setEndingHashKey(String endingHashKey)
The ending hash key of the hash key range.
- Parameters:
endingHashKey
- The ending hash key of the hash key range.
-
getEndingHashKey
public String getEndingHashKey()
The ending hash key of the hash key range.
- Returns:
- The ending hash key of the hash key range.
-
withEndingHashKey
public HashKeyRange withEndingHashKey(String endingHashKey)
The ending hash key of the hash key range.
- Parameters:
endingHashKey
- The ending hash key of the hash key range.- 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 HashKeyRange clone()
-
-