@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()
ISO-8601 formatted timestamp of the stream’s start.
|
String |
getState()
The stream’s state.
|
Long |
getViewerCount()
Number of current viewers 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)
ISO-8601 formatted timestamp of the stream’s start.
|
void |
setState(String state)
The stream’s state.
|
void |
setViewerCount(Long viewerCount)
Number of current viewers 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)
ISO-8601 formatted timestamp of the stream’s start.
|
Stream |
withState(StreamState state)
The stream’s state.
|
Stream |
withState(String state)
The stream’s state.
|
Stream |
withViewerCount(Long viewerCount)
Number of current viewers 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 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)
ISO-8601 formatted timestamp of the stream’s start.
startTime - ISO-8601 formatted timestamp of the stream’s start.public Date getStartTime()
ISO-8601 formatted timestamp of the stream’s start.
public Stream withStartTime(Date startTime)
ISO-8601 formatted timestamp of the stream’s start.
startTime - ISO-8601 formatted timestamp of the stream’s start.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 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 setViewerCount(Long viewerCount)
Number of current viewers of the stream. A value of -1 indicates that the request timed out; in this case, retry.
viewerCount - Number of current viewers of the stream. A value of -1 indicates that the request timed out; in this case,
retry.public Long getViewerCount()
Number of current viewers of the stream. A value of -1 indicates that the request timed out; in this case, retry.
public Stream withViewerCount(Long viewerCount)
Number of current viewers of the stream. A value of -1 indicates that the request timed out; in this case, retry.
viewerCount - Number of current viewers of the stream. 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 © 2021. All rights reserved.