public static interface StreamSession.Builder extends SdkPojo, CopyableBuilder<StreamSession.Builder,StreamSession>
| Modifier and Type | Method and Description |
|---|---|
StreamSession.Builder |
channel(Channel channel)
The properties of the channel at the time of going live.
|
default StreamSession.Builder |
channel(Consumer<Channel.Builder> channel)
The properties of the channel at the time of going live.
|
StreamSession.Builder |
endTime(Instant endTime)
Time when the channel went offline.
|
default StreamSession.Builder |
ingestConfiguration(Consumer<IngestConfiguration.Builder> ingestConfiguration)
The properties of the incoming RTMP stream for the stream.
|
StreamSession.Builder |
ingestConfiguration(IngestConfiguration ingestConfiguration)
The properties of the incoming RTMP stream for the stream.
|
default StreamSession.Builder |
recordingConfiguration(Consumer<RecordingConfiguration.Builder> recordingConfiguration)
The properties of recording the live stream.
|
StreamSession.Builder |
recordingConfiguration(RecordingConfiguration recordingConfiguration)
The properties of recording the live stream.
|
StreamSession.Builder |
startTime(Instant startTime)
Time when the channel went live.
|
StreamSession.Builder |
streamId(String streamId)
Unique identifier for a live or previously live stream in the specified channel.
|
StreamSession.Builder |
truncatedEvents(Collection<StreamEvent> truncatedEvents)
List of Amazon IVS events that the stream encountered.
|
StreamSession.Builder |
truncatedEvents(Consumer<StreamEvent.Builder>... truncatedEvents)
List of Amazon IVS events that the stream encountered.
|
StreamSession.Builder |
truncatedEvents(StreamEvent... truncatedEvents)
List of Amazon IVS events that the stream encountered.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildStreamSession.Builder channel(Channel channel)
The properties of the channel at the time of going live.
channel - The properties of the channel at the time of going live.default StreamSession.Builder channel(Consumer<Channel.Builder> channel)
The properties of the channel at the time of going live.
This is a convenience method that creates an instance of theChannel.Builder avoiding the need to
create one manually via Channel.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to channel(Channel).
channel - a consumer that will call methods on Channel.Builderchannel(Channel)StreamSession.Builder endTime(Instant endTime)
Time when the channel went offline. This is an ISO 8601 timestamp; note that this is returned as a
string. For live streams, this is NULL.
endTime - Time when the channel went offline. This is an ISO 8601 timestamp; note that this is returned as a
string. For live streams, this is NULL.StreamSession.Builder ingestConfiguration(IngestConfiguration ingestConfiguration)
The properties of the incoming RTMP stream for the stream.
ingestConfiguration - The properties of the incoming RTMP stream for the stream.default StreamSession.Builder ingestConfiguration(Consumer<IngestConfiguration.Builder> ingestConfiguration)
The properties of the incoming RTMP stream for the stream.
This is a convenience method that creates an instance of theIngestConfiguration.Builder avoiding the
need to create one manually via IngestConfiguration.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to ingestConfiguration(IngestConfiguration).
ingestConfiguration - a consumer that will call methods on IngestConfiguration.BuilderingestConfiguration(IngestConfiguration)StreamSession.Builder recordingConfiguration(RecordingConfiguration recordingConfiguration)
The properties of recording the live stream.
recordingConfiguration - The properties of recording the live stream.default StreamSession.Builder recordingConfiguration(Consumer<RecordingConfiguration.Builder> recordingConfiguration)
The properties of recording the live stream.
This is a convenience method that creates an instance of theRecordingConfiguration.Builder avoiding
the need to create one manually via RecordingConfiguration.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to recordingConfiguration(RecordingConfiguration).
recordingConfiguration - a consumer that will call methods on RecordingConfiguration.BuilderrecordingConfiguration(RecordingConfiguration)StreamSession.Builder startTime(Instant startTime)
Time when the channel went live. This is an ISO 8601 timestamp; note that this is returned as a string.
startTime - Time when the channel went live. This is an ISO 8601 timestamp; note that this is returned as a
string.StreamSession.Builder streamId(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.StreamSession.Builder truncatedEvents(Collection<StreamEvent> truncatedEvents)
List of Amazon IVS events that the stream encountered. The list is sorted by most recent events and contains up to 500 events. For Amazon IVS events, see Using Amazon EventBridge with Amazon IVS.
truncatedEvents - List of Amazon IVS events that the stream encountered. The list is sorted by most recent events and
contains up to 500 events. For Amazon IVS events, see Using Amazon EventBridge with
Amazon IVS.StreamSession.Builder truncatedEvents(StreamEvent... truncatedEvents)
List of Amazon IVS events that the stream encountered. The list is sorted by most recent events and contains up to 500 events. For Amazon IVS events, see Using Amazon EventBridge with Amazon IVS.
truncatedEvents - List of Amazon IVS events that the stream encountered. The list is sorted by most recent events and
contains up to 500 events. For Amazon IVS events, see Using Amazon EventBridge with
Amazon IVS.StreamSession.Builder truncatedEvents(Consumer<StreamEvent.Builder>... truncatedEvents)
List of Amazon IVS events that the stream encountered. The list is sorted by most recent events and contains up to 500 events. For Amazon IVS events, see Using Amazon EventBridge with Amazon IVS.
This is a convenience method that creates an instance of theStreamEvent.Builder avoiding the need to create one
manually via StreamEvent.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #truncatedEvents(List.
truncatedEvents - a consumer that will call methods on
StreamEvent.Builder#truncatedEvents(java.util.Collection) Copyright © 2023. All rights reserved.