Interface Stream.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Stream.Builder,Stream>,SdkBuilder<Stream.Builder,Stream>,SdkPojo
- Enclosing class:
- Stream
public static interface Stream.Builder extends SdkPojo, CopyableBuilder<Stream.Builder,Stream>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stream.BuilderchannelArn(String channelArn)Channel ARN for the stream.Stream.Builderhealth(String health)The stream’s health.Stream.Builderhealth(StreamHealth health)The stream’s health.Stream.BuilderplaybackUrl(String playbackUrl)URL of the master playlist, required by the video player to play the HLS stream.Stream.BuilderstartTime(Instant startTime)Time of the stream’s start.Stream.Builderstate(String state)The stream’s state.Stream.Builderstate(StreamState state)The stream’s state.Stream.BuilderstreamId(String streamId)Unique identifier for a live or previously live stream in the specified channel.Stream.BuilderviewerCount(Long viewerCount)A count of concurrent views of the stream.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
channelArn
Stream.Builder channelArn(String channelArn)
Channel ARN for the stream.
- Parameters:
channelArn- Channel ARN for the stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
health
Stream.Builder health(String health)
The stream’s health.
- Parameters:
health- The stream’s health.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StreamHealth,StreamHealth
-
health
Stream.Builder health(StreamHealth health)
The stream’s health.
- Parameters:
health- The stream’s health.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StreamHealth,StreamHealth
-
playbackUrl
Stream.Builder playbackUrl(String playbackUrl)
URL of the master playlist, required by the video player to play the HLS stream.
- Parameters:
playbackUrl- URL of the master playlist, required by the video player to play the HLS stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
Stream.Builder startTime(Instant startTime)
Time of the stream’s start. This is an ISO 8601 timestamp; note that this is returned as a string.
- Parameters:
startTime- Time of the stream’s start. This is an ISO 8601 timestamp; note that this is returned as a string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
Stream.Builder state(String state)
The stream’s state. Do not rely on the
OFFLINEstate, as the API may not return it; instead, a "NotBroadcasting" error will indicate that the stream is not live.- Parameters:
state- The stream’s state. Do not rely on theOFFLINEstate, as the API may not return it; instead, a "NotBroadcasting" error will indicate that the stream is not live.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StreamState,StreamState
-
state
Stream.Builder state(StreamState state)
The stream’s state. Do not rely on the
OFFLINEstate, as the API may not return it; instead, a "NotBroadcasting" error will indicate that the stream is not live.- Parameters:
state- The stream’s state. Do not rely on theOFFLINEstate, as the API may not return it; instead, a "NotBroadcasting" error will indicate that the stream is not live.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StreamState,StreamState
-
streamId
Stream.Builder streamId(String streamId)
Unique identifier for a live or previously live stream in the specified channel.
- Parameters:
streamId- Unique identifier for a live or previously live stream in the specified channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
viewerCount
Stream.Builder viewerCount(Long viewerCount)
A count of concurrent views of the stream. Typically, a new view appears in
viewerCountwithin 15 seconds of when video playback starts and a view is removed fromviewerCountwithin 1 minute of when video playback ends. A value of -1 indicates that the request timed out; in this case, retry.- Parameters:
viewerCount- A count of concurrent views of the stream. Typically, a new view appears inviewerCountwithin 15 seconds of when video playback starts and a view is removed fromviewerCountwithin 1 minute of when video playback ends. A value of -1 indicates that the request timed out; in this case, retry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-