@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Stream extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a live video stream that has been ingested and distributed.
| Constructor and Description |
|---|
Stream() |
| Modifier and Type | Method and Description |
|---|---|
Stream |
clone() |
boolean |
equals(Object obj) |
String |
getChannelArn()
Channel ARN for the stream.
|
String |
getHealth()
The stream’s health.
|
String |
getPlaybackUrl()
URL of the master playlist, required by the video player to play the HLS stream.
|
Date |
getStartTime()
Time of the stream’s start.
|
String |
getState()
The stream’s state.
|
String |
getStreamId()
Unique identifier for a live or previously live stream in the specified channel.
|
Long |
getViewerCount()
A count of concurrent views of the stream.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setChannelArn(String channelArn)
Channel ARN for the stream.
|
void |
setHealth(String health)
The stream’s health.
|
void |
setPlaybackUrl(String playbackUrl)
URL of the master playlist, required by the video player to play the HLS stream.
|
void |
setStartTime(Date startTime)
Time of the stream’s start.
|
void |
setState(String state)
The stream’s state.
|
void |
setStreamId(String streamId)
Unique identifier for a live or previously live stream in the specified channel.
|
void |
setViewerCount(Long viewerCount)
A count of concurrent views of the stream.
|
String |
toString()
Returns a string representation of this object.
|
Stream |
withChannelArn(String channelArn)
Channel ARN for the stream.
|
Stream |
withHealth(StreamHealth health)
The stream’s health.
|
Stream |
withHealth(String health)
The stream’s health.
|
Stream |
withPlaybackUrl(String playbackUrl)
URL of the master playlist, required by the video player to play the HLS stream.
|
Stream |
withStartTime(Date startTime)
Time of the stream’s start.
|
Stream |
withState(StreamState state)
The stream’s state.
|
Stream |
withState(String state)
The stream’s state.
|
Stream |
withStreamId(String streamId)
Unique identifier for a live or previously live stream in the specified channel.
|
Stream |
withViewerCount(Long viewerCount)
A count of concurrent views of the stream.
|
public void setChannelArn(String channelArn)
Channel ARN for the stream.
channelArn - Channel ARN for the stream.public String getChannelArn()
Channel ARN for the stream.
public Stream withChannelArn(String channelArn)
Channel ARN for the stream.
channelArn - Channel ARN for the stream.public void setHealth(String health)
The stream’s health.
health - The stream’s health.StreamHealthpublic String getHealth()
The stream’s health.
StreamHealthpublic Stream withHealth(String health)
The stream’s health.
health - The stream’s health.StreamHealthpublic Stream withHealth(StreamHealth health)
The stream’s health.
health - The stream’s health.StreamHealthpublic void setPlaybackUrl(String playbackUrl)
URL of the master playlist, required by the video player to play the HLS stream.
playbackUrl - URL of the master playlist, required by the video player to play the HLS stream.public String getPlaybackUrl()
URL of the master playlist, required by the video player to play the HLS stream.
public Stream withPlaybackUrl(String playbackUrl)
URL of the master playlist, required by the video player to play the HLS stream.
playbackUrl - URL of the master playlist, required by the video player to play the HLS stream.public void setStartTime(Date startTime)
Time of the stream’s start. This is an ISO 8601 timestamp; note that this is returned as a string.
startTime - Time of the stream’s start. This is an ISO 8601 timestamp; note that this is returned as a string.public Date getStartTime()
Time of the stream’s start. This is an ISO 8601 timestamp; note that this is returned as a string.
public Stream withStartTime(Date startTime)
Time of the stream’s start. This is an ISO 8601 timestamp; note that this is returned as a string.
startTime - Time of the stream’s start. This is an ISO 8601 timestamp; note that this is returned as a string.public void setState(String state)
The stream’s state.
state - The stream’s state.StreamStatepublic String getState()
The stream’s state.
StreamStatepublic Stream withState(String state)
The stream’s state.
state - The stream’s state.StreamStatepublic Stream withState(StreamState state)
The stream’s state.
state - The stream’s state.StreamStatepublic void setStreamId(String streamId)
Unique identifier for a live or previously live stream in the specified channel.
streamId - Unique identifier for a live or previously live stream in the specified channel.public String getStreamId()
Unique identifier for a live or previously live stream in the specified channel.
public Stream withStreamId(String streamId)
Unique identifier for a live or previously live stream in the specified channel.
streamId - Unique identifier for a live or previously live stream in the specified channel.public void setViewerCount(Long viewerCount)
A count of concurrent views of the stream. Typically, a new view appears in viewerCount within 15
seconds of when video playback starts and a view is removed from viewerCount within 1 minute of when
video playback ends. A value of -1 indicates that the request timed out; in this case, retry.
viewerCount - A count of concurrent views of the stream. Typically, a new view appears in viewerCount
within 15 seconds of when video playback starts and a view is removed from viewerCount within
1 minute of when video playback ends. A value of -1 indicates that the request timed out; in this case,
retry.public Long getViewerCount()
A count of concurrent views of the stream. Typically, a new view appears in viewerCount within 15
seconds of when video playback starts and a view is removed from viewerCount within 1 minute of when
video playback ends. A value of -1 indicates that the request timed out; in this case, retry.
viewerCount
within 15 seconds of when video playback starts and a view is removed from viewerCount
within 1 minute of when video playback ends. A value of -1 indicates that the request timed out; in this
case, retry.public Stream withViewerCount(Long viewerCount)
A count of concurrent views of the stream. Typically, a new view appears in viewerCount within 15
seconds of when video playback starts and a view is removed from viewerCount within 1 minute of when
video playback ends. A value of -1 indicates that the request timed out; in this case, retry.
viewerCount - A count of concurrent views of the stream. Typically, a new view appears in viewerCount
within 15 seconds of when video playback starts and a view is removed from viewerCount within
1 minute of when video playback ends. A value of -1 indicates that the request timed out; in this case,
retry.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2022. All rights reserved.