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 SplitShardRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetNewStartingHashKey()A hash key value for the starting hash key of one of the child shards created by the split.StringgetShardToSplit()The shard ID of the shard to split.StringgetStreamName()The name of the stream for the shard split.inthashCode()voidsetNewStartingHashKey(String newStartingHashKey)A hash key value for the starting hash key of one of the child shards created by the split.voidsetShardToSplit(String shardToSplit)The shard ID of the shard to split.voidsetStreamName(String streamName)The name of the stream for the shard split.StringtoString()Returns a string representation of this object; useful for testing and debugging.SplitShardRequestwithNewStartingHashKey(String newStartingHashKey)A hash key value for the starting hash key of one of the child shards created by the split.SplitShardRequestwithShardToSplit(String shardToSplit)The shard ID of the shard to split.SplitShardRequestwithStreamName(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
NewStartingHashKeymust be in the range of hash keys being mapped into the shard. TheNewStartingHashKeyhash 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 forNewStartingHashKeymust be in the range of hash keys being mapped into the shard. TheNewStartingHashKeyhash 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
NewStartingHashKeymust be in the range of hash keys being mapped into the shard. TheNewStartingHashKeyhash 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
NewStartingHashKeymust be in the range of hash keys being mapped into the shard. TheNewStartingHashKeyhash 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
NewStartingHashKeymust be in the range of hash keys being mapped into the shard. TheNewStartingHashKeyhash 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 forNewStartingHashKeymust be in the range of hash keys being mapped into the shard. TheNewStartingHashKeyhash 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SplitShardRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-