Class SplitShardRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.kinesis.model.SplitShardRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class SplitShardRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the input for
SplitShard
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description SplitShardRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SplitShardRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getNewStartingHashKey()
A hash key value for the starting hash key of one of the child shards created by the split.String
getShardToSplit()
The shard ID of the shard to split.String
getStreamName()
The name of the stream for the shard split.int
hashCode()
void
setNewStartingHashKey(String newStartingHashKey)
A hash key value for the starting hash key of one of the child shards created by the split.void
setShardToSplit(String shardToSplit)
The shard ID of the shard to split.void
setStreamName(String streamName)
The name of the stream for the shard split.String
toString()
Returns a string representation of this object; useful for testing and debugging.SplitShardRequest
withNewStartingHashKey(String newStartingHashKey)
A hash key value for the starting hash key of one of the child shards created by the split.SplitShardRequest
withShardToSplit(String shardToSplit)
The shard ID of the shard to split.SplitShardRequest
withStreamName(String streamName)
The name of the stream for the shard split.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setStreamName
public void setStreamName(String streamName)
The name of the stream for the shard split.
- Parameters:
streamName
- The name of the stream for the shard split.
-
getStreamName
public String getStreamName()
The name of the stream for the shard split.
- Returns:
- The name of the stream for the shard split.
-
withStreamName
public SplitShardRequest withStreamName(String streamName)
The name of the stream for the shard split.
- Parameters:
streamName
- The name of the stream for the shard split.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setShardToSplit
public void setShardToSplit(String shardToSplit)
The shard ID of the shard to split.
- Parameters:
shardToSplit
- The shard ID of the shard to split.
-
getShardToSplit
public String getShardToSplit()
The shard ID of the shard to split.
- Returns:
- The shard ID of the shard to split.
-
withShardToSplit
public SplitShardRequest withShardToSplit(String shardToSplit)
The shard ID of the shard to split.
- Parameters:
shardToSplit
- The shard ID of the shard to split.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNewStartingHashKey
public void setNewStartingHashKey(String newStartingHashKey)
A hash key value for the starting hash key of one of the child shards created by the split. The hash key range for a given shard constitutes a set of ordered contiguous positive integers. The value for
NewStartingHashKey
must be in the range of hash keys being mapped into the shard. TheNewStartingHashKey
hash key value and all higher hash key values in hash key range are distributed to one of the child shards. All the lower hash key values in the range are distributed to the other child shard.- Parameters:
newStartingHashKey
- A hash key value for the starting hash key of one of the child shards created by the split. The hash key range for a given shard constitutes a set of ordered contiguous positive integers. The value forNewStartingHashKey
must be in the range of hash keys being mapped into the shard. TheNewStartingHashKey
hash key value and all higher hash key values in hash key range are distributed to one of the child shards. All the lower hash key values in the range are distributed to the other child shard.
-
getNewStartingHashKey
public String getNewStartingHashKey()
A hash key value for the starting hash key of one of the child shards created by the split. The hash key range for a given shard constitutes a set of ordered contiguous positive integers. The value for
NewStartingHashKey
must be in the range of hash keys being mapped into the shard. TheNewStartingHashKey
hash key value and all higher hash key values in hash key range are distributed to one of the child shards. All the lower hash key values in the range are distributed to the other child shard.- Returns:
- A hash key value for the starting hash key of one of the child
shards created by the split. The hash key range for a given shard
constitutes a set of ordered contiguous positive integers. The
value for
NewStartingHashKey
must be in the range of hash keys being mapped into the shard. TheNewStartingHashKey
hash key value and all higher hash key values in hash key range are distributed to one of the child shards. All the lower hash key values in the range are distributed to the other child shard.
-
withNewStartingHashKey
public SplitShardRequest withNewStartingHashKey(String newStartingHashKey)
A hash key value for the starting hash key of one of the child shards created by the split. The hash key range for a given shard constitutes a set of ordered contiguous positive integers. The value for
NewStartingHashKey
must be in the range of hash keys being mapped into the shard. TheNewStartingHashKey
hash key value and all higher hash key values in hash key range are distributed to one of the child shards. All the lower hash key values in the range are distributed to the other child shard.- Parameters:
newStartingHashKey
- A hash key value for the starting hash key of one of the child shards created by the split. The hash key range for a given shard constitutes a set of ordered contiguous positive integers. The value forNewStartingHashKey
must be in the range of hash keys being mapped into the shard. TheNewStartingHashKey
hash key value and all higher hash key values in hash key range are distributed to one of the child shards. All the lower hash key values in the range are distributed to the other child shard.- 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 SplitShardRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-