public class UpdateStreamRequest extends AmazonWebServiceRequest implements java.io.Serializable
Updates stream metadata, such as the device name and media type.
You must provide the stream name or the Amazon Resource Name (ARN) of the stream.
To make sure that you have the latest version of the stream before updating
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.
UpdateStream
is an asynchronous operation, and takes time to
complete.
Constructor and Description |
---|
UpdateStreamRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCurrentVersion()
The version of the stream whose metadata you want to update.
|
java.lang.String |
getDeviceName()
The name of the device that is writing to the stream.
|
java.lang.String |
getMediaType()
The stream's media type.
|
java.lang.String |
getStreamARN()
The ARN of the stream whose metadata you want to update.
|
java.lang.String |
getStreamName()
The name of the stream whose metadata you want to update.
|
int |
hashCode() |
void |
setCurrentVersion(java.lang.String currentVersion)
The version of the stream whose metadata you want to update.
|
void |
setDeviceName(java.lang.String deviceName)
The name of the device that is writing to the stream.
|
void |
setMediaType(java.lang.String mediaType)
The stream's media type.
|
void |
setStreamARN(java.lang.String streamARN)
The ARN of the stream whose metadata you want to update.
|
void |
setStreamName(java.lang.String streamName)
The name of the stream whose metadata you want to update.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateStreamRequest |
withCurrentVersion(java.lang.String currentVersion)
The version of the stream whose metadata you want to update.
|
UpdateStreamRequest |
withDeviceName(java.lang.String deviceName)
The name of the device that is writing to the stream.
|
UpdateStreamRequest |
withMediaType(java.lang.String mediaType)
The stream's media type.
|
UpdateStreamRequest |
withStreamARN(java.lang.String streamARN)
The ARN of the stream whose metadata you want to update.
|
UpdateStreamRequest |
withStreamName(java.lang.String streamName)
The name of the stream whose metadata you want to update.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getStreamName()
The name of the stream whose metadata you want to update.
The stream name is an identifier for the stream, and must be unique for each account and region.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
The name of the stream whose metadata you want to update.
The stream name is an identifier for the stream, and must be unique for each account and region.
public void setStreamName(java.lang.String streamName)
The name of the stream whose metadata you want to update.
The stream name is an identifier for the stream, and must be unique for each account and region.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
streamName
- The name of the stream whose metadata you want to update.
The stream name is an identifier for the stream, and must be unique for each account and region.
public UpdateStreamRequest withStreamName(java.lang.String streamName)
The name of the stream whose metadata you want to update.
The stream name is an identifier for the stream, and must be unique for each account and region.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
streamName
- The name of the stream whose metadata you want to update.
The stream name is an identifier for the stream, and must be unique for each account and region.
public java.lang.String getStreamARN()
The ARN of the stream whose metadata you want to update.
Constraints:
Length: 1 - 1024
Pattern:
arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+
The ARN of the stream whose metadata you want to update.
public void setStreamARN(java.lang.String streamARN)
The ARN of the stream whose metadata you want to update.
Constraints:
Length: 1 - 1024
Pattern:
arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+
streamARN
- The ARN of the stream whose metadata you want to update.
public UpdateStreamRequest withStreamARN(java.lang.String streamARN)
The ARN of the stream whose metadata you want to update.
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 ARN of the stream whose metadata you want to update.
public java.lang.String getCurrentVersion()
The version of the stream whose metadata you want to update.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9]+
The version of the stream whose metadata you want to update.
public void setCurrentVersion(java.lang.String currentVersion)
The version of the stream whose metadata you want to update.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9]+
currentVersion
- The version of the stream whose metadata you want to update.
public UpdateStreamRequest withCurrentVersion(java.lang.String currentVersion)
The version of the stream whose metadata you want to update.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9]+
currentVersion
- The version of the stream whose metadata you want to update.
public java.lang.String getDeviceName()
The name of the device that is writing to the stream.
In the current implementation, Kinesis Video Streams does not use this name.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
The name of the device that is writing to the stream.
In the current implementation, Kinesis Video Streams does not use this name.
public void setDeviceName(java.lang.String deviceName)
The name of the device that is writing to the stream.
In the current implementation, Kinesis Video Streams does not use this name.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
deviceName
- The name of the device that is writing to the stream.
In the current implementation, Kinesis Video Streams does not use this name.
public UpdateStreamRequest withDeviceName(java.lang.String deviceName)
The name of the device that is writing to the stream.
In the current implementation, Kinesis Video Streams does not use this name.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
deviceName
- The name of the device that is writing to the stream.
In the current implementation, Kinesis Video Streams does not use this name.
public java.lang.String getMediaType()
The stream's media type. Use MediaType
to specify the type
of content that the stream contains to the consumers of the stream. For
more information about media types, see Media Types. If you choose to specify the MediaType
,
see Naming
Requirements.
To play video on the console, you must specify the correct video type.
For example, if the video in the stream is H.264, specify
video/h264
as the MediaType
.
Constraints:
Length: 1 - 128
Pattern: [\w\-\.\+]+/[\w\-\.\+]+(,[\w\-\.\+]+/[\w\-\.\+]+)*
The stream's media type. Use MediaType
to specify
the type of content that the stream contains to the consumers of
the stream. For more information about media types, see Media Types. If you choose to specify the
MediaType
, see Naming
Requirements.
To play video on the console, you must specify the correct video
type. For example, if the video in the stream is H.264, specify
video/h264
as the MediaType
.
public void setMediaType(java.lang.String mediaType)
The stream's media type. Use MediaType
to specify the type
of content that the stream contains to the consumers of the stream. For
more information about media types, see Media Types. If you choose to specify the MediaType
,
see Naming
Requirements.
To play video on the console, you must specify the correct video type.
For example, if the video in the stream is H.264, specify
video/h264
as the MediaType
.
Constraints:
Length: 1 - 128
Pattern: [\w\-\.\+]+/[\w\-\.\+]+(,[\w\-\.\+]+/[\w\-\.\+]+)*
mediaType
-
The stream's media type. Use MediaType
to specify
the type of content that the stream contains to the consumers
of the stream. For more information about media types, see Media Types. If you choose to specify the
MediaType
, see Naming
Requirements.
To play video on the console, you must specify the correct
video type. For example, if the video in the stream is H.264,
specify video/h264
as the MediaType
.
public UpdateStreamRequest withMediaType(java.lang.String mediaType)
The stream's media type. Use MediaType
to specify the type
of content that the stream contains to the consumers of the stream. For
more information about media types, see Media Types. If you choose to specify the MediaType
,
see Naming
Requirements.
To play video on the console, you must specify the correct video type.
For example, if the video in the stream is H.264, specify
video/h264
as the MediaType
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w\-\.\+]+/[\w\-\.\+]+(,[\w\-\.\+]+/[\w\-\.\+]+)*
mediaType
-
The stream's media type. Use MediaType
to specify
the type of content that the stream contains to the consumers
of the stream. For more information about media types, see Media Types. If you choose to specify the
MediaType
, see Naming
Requirements.
To play video on the console, you must specify the correct
video type. For example, if the video in the stream is H.264,
specify video/h264
as the MediaType
.
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.