public class DescribeStreamRequest extends AmazonWebServiceRequest implements java.io.Serializable
Describes the specified Kinesis data stream.
The information returned includes the stream name, Amazon Resource Name (ARN), creation time, enhanced metric configuration, and shard map. The shard map is an array of shard objects. For each shard object, there is the hash key and sequence number ranges that the shard spans, and the IDs of any earlier shards that played in a role in creating the shard. Every record ingested in the stream is identified by a sequence number, which is assigned when the record is put into the stream.
You can limit the number of shards returned by each call. For more information, see Retrieving Shards from a Stream in the Amazon Kinesis Data Streams Developer Guide.
There are no guarantees about the chronological order shards returned. To process shards in chronological order, use the ID of the parent shard to track the lineage to the oldest shard.
This operation has a limit of 10 transactions per second per account.
Constructor and Description |
---|
DescribeStreamRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getExclusiveStartShardId()
The shard ID of the shard to start with.
|
java.lang.Integer |
getLimit()
The maximum number of shards to return in a single call.
|
java.lang.String |
getStreamName()
The name of the stream to describe.
|
int |
hashCode() |
void |
setExclusiveStartShardId(java.lang.String exclusiveStartShardId)
The shard ID of the shard to start with.
|
void |
setLimit(java.lang.Integer limit)
The maximum number of shards to return in a single call.
|
void |
setStreamName(java.lang.String streamName)
The name of the stream to describe.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeStreamRequest |
withExclusiveStartShardId(java.lang.String exclusiveStartShardId)
The shard ID of the shard to start with.
|
DescribeStreamRequest |
withLimit(java.lang.Integer limit)
The maximum number of shards to return in a single call.
|
DescribeStreamRequest |
withStreamName(java.lang.String streamName)
The name of the stream to describe.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getStreamName()
The name of the stream to describe.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
The name of the stream to describe.
public void setStreamName(java.lang.String streamName)
The name of the stream to describe.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
streamName
- The name of the stream to describe.
public DescribeStreamRequest withStreamName(java.lang.String streamName)
The name of the stream to describe.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
streamName
- The name of the stream to describe.
public java.lang.Integer getLimit()
The maximum number of shards to return in a single call. The default value is 100. If you specify a value greater than 100, at most 100 shards are returned.
Constraints:
Range: 1 - 10000
The maximum number of shards to return in a single call. The default value is 100. If you specify a value greater than 100, at most 100 shards are returned.
public void setLimit(java.lang.Integer limit)
The maximum number of shards to return in a single call. The default value is 100. If you specify a value greater than 100, at most 100 shards are returned.
Constraints:
Range: 1 - 10000
limit
- The maximum number of shards to return in a single call. The default value is 100. If you specify a value greater than 100, at most 100 shards are returned.
public DescribeStreamRequest withLimit(java.lang.Integer limit)
The maximum number of shards to return in a single call. The default value is 100. If you specify a value greater than 100, at most 100 shards are returned.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 10000
limit
- The maximum number of shards to return in a single call. The default value is 100. If you specify a value greater than 100, at most 100 shards are returned.
public java.lang.String getExclusiveStartShardId()
The shard ID of the shard to start with.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
The shard ID of the shard to start with.
public void setExclusiveStartShardId(java.lang.String exclusiveStartShardId)
The shard ID of the shard to start with.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
exclusiveStartShardId
- The shard ID of the shard to start with.
public DescribeStreamRequest withExclusiveStartShardId(java.lang.String exclusiveStartShardId)
The shard ID of the shard to start with.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
exclusiveStartShardId
- The shard ID of the shard to start with.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.