@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 video master manifest, 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)
Marshalls this structured data using the given
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 video master manifest, 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 video master manifest, 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 video master manifest, required by the video player to play the HLS stream.
playbackUrl
- URL of the video master manifest, required by the video player to play the HLS stream.public String getPlaybackUrl()
URL of the video master manifest, required by the video player to play the HLS stream.
public Stream withPlaybackUrl(String playbackUrl)
URL of the video master manifest, required by the video player to play the HLS stream.
playbackUrl
- URL of the video master manifest, 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.StreamState
public String getState()
The stream’s state.
StreamState
public Stream withState(String state)
The stream’s state.
state
- The stream’s state.StreamState
public Stream withState(StreamState state)
The stream’s state.
state
- The stream’s state.StreamState
public void setHealth(String health)
The stream’s health.
health
- The stream’s health.StreamHealth
public String getHealth()
The stream’s health.
StreamHealth
public Stream withHealth(String health)
The stream’s health.
health
- The stream’s health.StreamHealth
public Stream withHealth(StreamHealth health)
The stream’s health.
health
- The stream’s health.StreamHealth
public void setViewerCount(Long viewerCount)
Number of current viewers of the stream.
viewerCount
- Number of current viewers of the stream.public Long getViewerCount()
Number of current viewers of the stream.
public Stream withViewerCount(Long viewerCount)
Number of current viewers of the stream.
viewerCount
- Number of current viewers of the stream.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.