@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StreamSummary extends Object implements Serializable, Cloneable, StructuredPojo
Summary information about a stream.
| Constructor and Description |
|---|
StreamSummary() |
| Modifier and Type | Method and Description |
|---|---|
StreamSummary |
clone() |
boolean |
equals(Object obj) |
String |
getChannelArn()
Channel ARN for the stream.
|
String |
getHealth()
The stream’s health.
|
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)
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 |
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.
|
StreamSummary |
withChannelArn(String channelArn)
Channel ARN for the stream.
|
StreamSummary |
withHealth(StreamHealth health)
The stream’s health.
|
StreamSummary |
withHealth(String health)
The stream’s health.
|
StreamSummary |
withStartTime(Date startTime)
Time of the stream’s start.
|
StreamSummary |
withState(StreamState state)
The stream’s state.
|
StreamSummary |
withState(String state)
The stream’s state.
|
StreamSummary |
withStreamId(String streamId)
Unique identifier for a live or previously live stream in the specified channel.
|
StreamSummary |
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 StreamSummary withChannelArn(String channelArn)
Channel ARN for the stream.
channelArn - Channel ARN for the stream.public 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 StreamSummary 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 setState(String state)
The stream’s state. Do not rely on the OFFLINE state, as the API may not return it; instead, a
"NotBroadcasting" error will indicate that the stream is not live.
state - The stream’s state. Do not rely on the OFFLINE state, as the API may not return it; instead,
a "NotBroadcasting" error will indicate that the stream is not live.StreamStatepublic String getState()
The stream’s state. Do not rely on the OFFLINE state, as the API may not return it; instead, a
"NotBroadcasting" error will indicate that the stream is not live.
OFFLINE state, as the API may not return it; instead,
a "NotBroadcasting" error will indicate that the stream is not live.StreamStatepublic StreamSummary withState(String state)
The stream’s state. Do not rely on the OFFLINE state, as the API may not return it; instead, a
"NotBroadcasting" error will indicate that the stream is not live.
state - The stream’s state. Do not rely on the OFFLINE state, as the API may not return it; instead,
a "NotBroadcasting" error will indicate that the stream is not live.StreamStatepublic StreamSummary withState(StreamState state)
The stream’s state. Do not rely on the OFFLINE state, as the API may not return it; instead, a
"NotBroadcasting" error will indicate that the stream is not live.
state - The stream’s state. Do not rely on the OFFLINE state, as the API may not return it; instead,
a "NotBroadcasting" error will indicate that the stream is not live.StreamStatepublic void setHealth(String health)
The stream’s health.
health - The stream’s health.StreamHealthpublic String getHealth()
The stream’s health.
StreamHealthpublic StreamSummary withHealth(String health)
The stream’s health.
health - The stream’s health.StreamHealthpublic StreamSummary withHealth(StreamHealth health)
The stream’s health.
health - The stream’s health.StreamHealthpublic 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 StreamSummary 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 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 StreamSummary 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 String toString()
toString in class ObjectObject.toString()public StreamSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.