public class DeleteStreamRequest extends AmazonWebServiceRequest implements java.io.Serializable
Deletes a Kinesis data stream and all its shards and data. You must shut down
any applications that are operating on the stream before you delete the
stream. If an application attempts to operate on a deleted stream, it
receives the exception ResourceNotFoundException
.
If the stream is in the ACTIVE
state, you can delete it. After a
DeleteStream
request, the specified stream is in the
DELETING
state until Kinesis Data Streams completes the
deletion.
Note: Kinesis Data Streams might continue to accept data read and
write operations, such as PutRecord, PutRecords, and
GetRecords, on a stream in the DELETING
state until the
stream deletion is complete.
When you delete a stream, any shards in that stream are also deleted, and any tags are dissociated from the stream.
You can use the DescribeStream operation to check the state of the
stream, which is returned in StreamStatus
.
DeleteStream has a limit of five transactions per second per account.
Constructor and Description |
---|
DeleteStreamRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getStreamName()
The name of the stream to delete.
|
int |
hashCode() |
void |
setStreamName(java.lang.String streamName)
The name of the stream to delete.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteStreamRequest |
withStreamName(java.lang.String streamName)
The name of the stream to delete.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getStreamName()
The name of the stream to delete.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
The name of the stream to delete.
public void setStreamName(java.lang.String streamName)
The name of the stream to delete.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
streamName
- The name of the stream to delete.
public DeleteStreamRequest withStreamName(java.lang.String streamName)
The name of the stream to delete.
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 delete.
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.