Interface StreamSession.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<StreamSession.Builder,StreamSession>,SdkBuilder<StreamSession.Builder,StreamSession>,SdkPojo
- Enclosing class:
- StreamSession
public static interface StreamSession.Builder extends SdkPojo, CopyableBuilder<StreamSession.Builder,StreamSession>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StreamSession.Builderchannel(Consumer<Channel.Builder> channel)The properties of the channel at the time of going live.StreamSession.Builderchannel(Channel channel)The properties of the channel at the time of going live.StreamSession.BuilderendTime(Instant endTime)Time when the channel went offline.default StreamSession.BuilderingestConfiguration(Consumer<IngestConfiguration.Builder> ingestConfiguration)The properties of the incoming RTMP stream for the stream.StreamSession.BuilderingestConfiguration(IngestConfiguration ingestConfiguration)The properties of the incoming RTMP stream for the stream.default StreamSession.BuilderrecordingConfiguration(Consumer<RecordingConfiguration.Builder> recordingConfiguration)The properties of recording the live stream.StreamSession.BuilderrecordingConfiguration(RecordingConfiguration recordingConfiguration)The properties of recording the live stream.StreamSession.BuilderstartTime(Instant startTime)Time when the channel went live.StreamSession.BuilderstreamId(String streamId)Unique identifier for a live or previously live stream in the specified channel.StreamSession.BuildertruncatedEvents(Collection<StreamEvent> truncatedEvents)List of Amazon IVS events that the stream encountered.StreamSession.BuildertruncatedEvents(Consumer<StreamEvent.Builder>... truncatedEvents)List of Amazon IVS events that the stream encountered.StreamSession.BuildertruncatedEvents(StreamEvent... truncatedEvents)List of Amazon IVS events that the stream encountered.-
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
-
channel
StreamSession.Builder channel(Channel channel)
The properties of the channel at the time of going live.
- Parameters:
channel- The properties of the channel at the time of going live.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
channel
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.Builderavoiding the need to create one manually viaChannel.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tochannel(Channel).- Parameters:
channel- a consumer that will call methods onChannel.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
channel(Channel)
-
endTime
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.- Parameters:
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 isNULL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ingestConfiguration
StreamSession.Builder ingestConfiguration(IngestConfiguration ingestConfiguration)
The properties of the incoming RTMP stream for the stream.
- Parameters:
ingestConfiguration- The properties of the incoming RTMP stream for the stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ingestConfiguration
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.Builderavoiding the need to create one manually viaIngestConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toingestConfiguration(IngestConfiguration).- Parameters:
ingestConfiguration- a consumer that will call methods onIngestConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ingestConfiguration(IngestConfiguration)
-
recordingConfiguration
StreamSession.Builder recordingConfiguration(RecordingConfiguration recordingConfiguration)
The properties of recording the live stream.
- Parameters:
recordingConfiguration- The properties of recording the live stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recordingConfiguration
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.Builderavoiding the need to create one manually viaRecordingConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecordingConfiguration(RecordingConfiguration).- Parameters:
recordingConfiguration- a consumer that will call methods onRecordingConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
recordingConfiguration(RecordingConfiguration)
-
startTime
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.
- Parameters:
startTime- Time when the channel went live. 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.
-
streamId
StreamSession.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.
-
truncatedEvents
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
truncatedEvents
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
truncatedEvents
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.Builderavoiding the need to create one manually viaStreamEvent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#truncatedEvents(List.) - Parameters:
truncatedEvents- a consumer that will call methods onStreamEvent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#truncatedEvents(java.util.Collection)
-
-