@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StreamSession extends Object implements Serializable, Cloneable, StructuredPojo
Object that captures the Amazon IVS configuration that the customer provisioned, the ingest configurations that the broadcaster used, and the most recent Amazon IVS stream events it encountered.
Constructor and Description |
---|
StreamSession() |
Modifier and Type | Method and Description |
---|---|
StreamSession |
clone() |
boolean |
equals(Object obj) |
Channel |
getChannel()
The properties of the channel at the time of going live.
|
Date |
getEndTime()
Time when the channel went offline.
|
IngestConfiguration |
getIngestConfiguration()
The properties of the incoming RTMP stream for the stream.
|
RecordingConfiguration |
getRecordingConfiguration()
The properties of recording the live stream.
|
Date |
getStartTime()
Time when the channel went live.
|
String |
getStreamId()
Unique identifier for a live or previously live stream in the specified channel.
|
List<StreamEvent> |
getTruncatedEvents()
List of Amazon IVS events that the stream encountered.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setChannel(Channel channel)
The properties of the channel at the time of going live.
|
void |
setEndTime(Date endTime)
Time when the channel went offline.
|
void |
setIngestConfiguration(IngestConfiguration ingestConfiguration)
The properties of the incoming RTMP stream for the stream.
|
void |
setRecordingConfiguration(RecordingConfiguration recordingConfiguration)
The properties of recording the live stream.
|
void |
setStartTime(Date startTime)
Time when the channel went live.
|
void |
setStreamId(String streamId)
Unique identifier for a live or previously live stream in the specified channel.
|
void |
setTruncatedEvents(Collection<StreamEvent> truncatedEvents)
List of Amazon IVS events that the stream encountered.
|
String |
toString()
Returns a string representation of this object.
|
StreamSession |
withChannel(Channel channel)
The properties of the channel at the time of going live.
|
StreamSession |
withEndTime(Date endTime)
Time when the channel went offline.
|
StreamSession |
withIngestConfiguration(IngestConfiguration ingestConfiguration)
The properties of the incoming RTMP stream for the stream.
|
StreamSession |
withRecordingConfiguration(RecordingConfiguration recordingConfiguration)
The properties of recording the live stream.
|
StreamSession |
withStartTime(Date startTime)
Time when the channel went live.
|
StreamSession |
withStreamId(String streamId)
Unique identifier for a live or previously live stream in the specified channel.
|
StreamSession |
withTruncatedEvents(Collection<StreamEvent> truncatedEvents)
List of Amazon IVS events that the stream encountered.
|
StreamSession |
withTruncatedEvents(StreamEvent... truncatedEvents)
List of Amazon IVS events that the stream encountered.
|
public void setStreamId(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.public String getStreamId()
Unique identifier for a live or previously live stream in the specified channel.
public StreamSession withStreamId(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.public void setStartTime(Date 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.public Date getStartTime()
Time when the channel went live. This is an ISO 8601 timestamp; note that this is returned as a string.
public StreamSession withStartTime(Date 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.public void setEndTime(Date 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
.public Date getEndTime()
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
.
NULL
.public StreamSession withEndTime(Date 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
.public void setChannel(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.public Channel getChannel()
The properties of the channel at the time of going live.
public StreamSession withChannel(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.public void setIngestConfiguration(IngestConfiguration ingestConfiguration)
The properties of the incoming RTMP stream for the stream.
ingestConfiguration
- The properties of the incoming RTMP stream for the stream.public IngestConfiguration getIngestConfiguration()
The properties of the incoming RTMP stream for the stream.
public StreamSession withIngestConfiguration(IngestConfiguration ingestConfiguration)
The properties of the incoming RTMP stream for the stream.
ingestConfiguration
- The properties of the incoming RTMP stream for the stream.public void setRecordingConfiguration(RecordingConfiguration recordingConfiguration)
The properties of recording the live stream.
recordingConfiguration
- The properties of recording the live stream.public RecordingConfiguration getRecordingConfiguration()
The properties of recording the live stream.
public StreamSession withRecordingConfiguration(RecordingConfiguration recordingConfiguration)
The properties of recording the live stream.
recordingConfiguration
- The properties of recording the live stream.public List<StreamEvent> getTruncatedEvents()
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.
public void setTruncatedEvents(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.public StreamSession withTruncatedEvents(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.
NOTE: This method appends the values to the existing list (if any). Use
setTruncatedEvents(java.util.Collection)
or withTruncatedEvents(java.util.Collection)
if you
want to override the existing values.
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.public StreamSession withTruncatedEvents(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.public String toString()
toString
in class Object
Object.toString()
public StreamSession clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.