public class DeleteStreamRequest extends AmazonWebServiceRequest implements java.io.Serializable
Deletes a Kinesis video stream and the data contained in the stream.
This method marks the stream for deletion, and makes the data in the stream inaccessible immediately.
To ensure that you have the latest version of the stream before deleting it,
you can specify the stream version. Kinesis Video Streams assigns a version
to each stream. When you update a stream, Kinesis Video Streams assigns a new
version number. To get the latest stream version, use the
DescribeStream
API.
This operation requires permission for the
KinesisVideo:DeleteStream
action.
Constructor and Description |
---|
DeleteStreamRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCurrentVersion()
Optional: The version of the stream that you want to delete.
|
java.lang.String |
getStreamARN()
The Amazon Resource Name (ARN) of the stream that you want to delete.
|
int |
hashCode() |
void |
setCurrentVersion(java.lang.String currentVersion)
Optional: The version of the stream that you want to delete.
|
void |
setStreamARN(java.lang.String streamARN)
The Amazon Resource Name (ARN) of the stream that you want to delete.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteStreamRequest |
withCurrentVersion(java.lang.String currentVersion)
Optional: The version of the stream that you want to delete.
|
DeleteStreamRequest |
withStreamARN(java.lang.String streamARN)
The Amazon Resource Name (ARN) of the stream that you want to delete.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getStreamARN()
The Amazon Resource Name (ARN) of the stream that you want to delete.
Constraints:
Length: 1 - 1024
Pattern:
arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+
The Amazon Resource Name (ARN) of the stream that you want to delete.
public void setStreamARN(java.lang.String streamARN)
The Amazon Resource Name (ARN) of the stream that you want to delete.
Constraints:
Length: 1 - 1024
Pattern:
arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+
streamARN
- The Amazon Resource Name (ARN) of the stream that you want to delete.
public DeleteStreamRequest withStreamARN(java.lang.String streamARN)
The Amazon Resource Name (ARN) of the stream that you want to delete.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
Pattern:
arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+
streamARN
- The Amazon Resource Name (ARN) of the stream that you want to delete.
public java.lang.String getCurrentVersion()
Optional: The version of the stream that you want to delete.
Specify the version as a safeguard to ensure that your are deleting the
correct stream. To get the stream version, use the
DescribeStream
API.
If not specified, only the CreationTime
is checked before
deleting the stream.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9]+
Optional: The version of the stream that you want to delete.
Specify the version as a safeguard to ensure that your are
deleting the correct stream. To get the stream version, use the
DescribeStream
API.
If not specified, only the CreationTime
is checked
before deleting the stream.
public void setCurrentVersion(java.lang.String currentVersion)
Optional: The version of the stream that you want to delete.
Specify the version as a safeguard to ensure that your are deleting the
correct stream. To get the stream version, use the
DescribeStream
API.
If not specified, only the CreationTime
is checked before
deleting the stream.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9]+
currentVersion
- Optional: The version of the stream that you want to delete.
Specify the version as a safeguard to ensure that your are
deleting the correct stream. To get the stream version, use
the DescribeStream
API.
If not specified, only the CreationTime
is
checked before deleting the stream.
public DeleteStreamRequest withCurrentVersion(java.lang.String currentVersion)
Optional: The version of the stream that you want to delete.
Specify the version as a safeguard to ensure that your are deleting the
correct stream. To get the stream version, use the
DescribeStream
API.
If not specified, only the CreationTime
is checked before
deleting the stream.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9]+
currentVersion
- Optional: The version of the stream that you want to delete.
Specify the version as a safeguard to ensure that your are
deleting the correct stream. To get the stream version, use
the DescribeStream
API.
If not specified, only the CreationTime
is
checked before deleting the stream.
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.