@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()
ISO-8601 formatted timestamp of the stream’s start.
|
StreamState |
state()
The stream’s state.
|
String |
stateAsString()
The stream’s state.
|
Stream.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Long |
viewerCount()
Number of current viewers of the stream.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String channelArn()
Channel ARN for the stream.
public final String playbackUrl()
URL of the master playlist, required by the video player to play the HLS stream.
public final Instant startTime()
ISO-8601 formatted timestamp of the stream’s start.
public final StreamState state()
The stream’s state.
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().
StreamStatepublic final String stateAsString()
The stream’s state.
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().
StreamStatepublic 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 Long viewerCount()
Number of current viewers of the stream. 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 © 2021. All rights reserved.