@Generated(value="software.amazon.awssdk:codegen") public final class Stream extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Stream.Builder,Stream>
Specifies a live video stream that has been ingested and distributed.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Stream.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Stream.Builder |
builder() |
String |
channelArn()
Channel ARN for the stream.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
StreamHealth |
health()
The stream’s health.
|
String |
healthAsString()
The stream’s health.
|
String |
playbackUrl()
URL of the master playlist, required by the video player to play the HLS stream.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Stream.Builder> |
serializableBuilderClass() |
Instant |
startTime()
Time of the stream’s start.
|
StreamState |
state()
The stream’s state.
|
String |
stateAsString()
The stream’s state.
|
String |
streamId()
Unique identifier for a live or previously live stream in the specified channel.
|
Stream.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Long |
viewerCount()
A count of concurrent views of the stream.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String channelArn()
Channel ARN for the stream.
public final StreamHealth health()
The stream’s health.
If the service returns an enum value that is not available in the current SDK version, health will
return StreamHealth.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
healthAsString().
StreamHealthpublic final String healthAsString()
The stream’s health.
If the service returns an enum value that is not available in the current SDK version, health will
return StreamHealth.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
healthAsString().
StreamHealthpublic final String playbackUrl()
URL of the master playlist, required by the video player to play the HLS stream.
public final Instant startTime()
Time of the stream’s start. This is an ISO 8601 timestamp; note that this is returned as a string.
public final 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.
If the service returns an enum value that is not available in the current SDK version, state will return
StreamState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
OFFLINE state, as the API may not return it; instead,
a "NotBroadcasting" error will indicate that the stream is not live.StreamStatepublic final String stateAsString()
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.
If the service returns an enum value that is not available in the current SDK version, state will return
StreamState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
OFFLINE state, as the API may not return it; instead,
a "NotBroadcasting" error will indicate that the stream is not live.StreamStatepublic final String streamId()
Unique identifier for a live or previously live stream in the specified channel.
public final 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
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.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Stream.Builder,Stream>public static Stream.Builder builder()
public static Class<? extends Stream.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.