public class ListStreamsRequest extends AmazonWebServiceRequest implements java.io.Serializable
Lists your Kinesis data streams.
The number of streams may be too large to return from a single call to
ListStreams. You can limit the number of returned streams using
the Limit parameter. If you do not specify a value for the
Limit parameter, Kinesis Data Streams uses the default limit,
which is currently 10.
You can detect if there are more streams available to list by using the
HasMoreStreams flag from the returned output. If there are more
streams available, you can request more streams by using the name of the last
stream returned by the ListStreams request in the
ExclusiveStartStreamName parameter in a subsequent request to
ListStreams. The group of stream names returned by the
subsequent request is then added to the list. You can continue this process
until all the stream names have been collected in the list.
ListStreams has a limit of five transactions per second per account.
| Constructor and Description |
|---|
ListStreamsRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getExclusiveStartStreamName()
The name of the stream to start the list with.
|
java.lang.Integer |
getLimit()
The maximum number of streams to list.
|
int |
hashCode() |
void |
setExclusiveStartStreamName(java.lang.String exclusiveStartStreamName)
The name of the stream to start the list with.
|
void |
setLimit(java.lang.Integer limit)
The maximum number of streams to list.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListStreamsRequest |
withExclusiveStartStreamName(java.lang.String exclusiveStartStreamName)
The name of the stream to start the list with.
|
ListStreamsRequest |
withLimit(java.lang.Integer limit)
The maximum number of streams to list.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.Integer getLimit()
The maximum number of streams to list.
Constraints:
Range: 1 - 10000
The maximum number of streams to list.
public void setLimit(java.lang.Integer limit)
The maximum number of streams to list.
Constraints:
Range: 1 - 10000
limit - The maximum number of streams to list.
public ListStreamsRequest withLimit(java.lang.Integer limit)
The maximum number of streams to list.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 10000
limit - The maximum number of streams to list.
public java.lang.String getExclusiveStartStreamName()
The name of the stream to start the list with.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
The name of the stream to start the list with.
public void setExclusiveStartStreamName(java.lang.String exclusiveStartStreamName)
The name of the stream to start the list with.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
exclusiveStartStreamName - The name of the stream to start the list with.
public ListStreamsRequest withExclusiveStartStreamName(java.lang.String exclusiveStartStreamName)
The name of the stream to start the list with.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
exclusiveStartStreamName - The name of the stream to start the list with.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.