/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.ivs.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* 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. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class StreamSession implements Serializable, Cloneable, StructuredPojo { /** ** The properties of the channel at the time of going live. *
*/ private Channel channel; /** *
* 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
.
*
* The properties of the incoming RTMP stream for the stream. *
*/ private IngestConfiguration ingestConfiguration; /** ** The properties of recording the live stream. *
*/ private RecordingConfiguration recordingConfiguration; /** ** Time when the channel went live. This is an ISO 8601 timestamp; note that this is returned as a string. *
*/ private java.util.Date startTime; /** ** Unique identifier for a live or previously live stream in the specified channel. *
*/ private String streamId; /** ** 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. *
*/ private java.util.List* The properties of the channel at the time of going live. *
* * @param channel * The properties of the channel at the time of going live. */ public void setChannel(Channel channel) { this.channel = channel; } /** ** The properties of the channel at the time of going live. *
* * @return The properties of the channel at the time of going live. */ public Channel getChannel() { return this.channel; } /** ** The properties of the channel at the time of going live. *
* * @param channel * The properties of the channel at the time of going live. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamSession withChannel(Channel channel) { setChannel(channel); return this; } /** *
* 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 void setEndTime(java.util.Date endTime) {
this.endTime = 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
.
*
NULL
.
*/
public java.util.Date getEndTime() {
return this.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
.
*
NULL
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamSession withEndTime(java.util.Date endTime) {
setEndTime(endTime);
return this;
}
/**
* * The properties of the incoming RTMP stream for the stream. *
* * @param ingestConfiguration * The properties of the incoming RTMP stream for the stream. */ public void setIngestConfiguration(IngestConfiguration ingestConfiguration) { this.ingestConfiguration = ingestConfiguration; } /** ** The properties of the incoming RTMP stream for the stream. *
* * @return The properties of the incoming RTMP stream for the stream. */ public IngestConfiguration getIngestConfiguration() { return this.ingestConfiguration; } /** ** The properties of the incoming RTMP stream for the stream. *
* * @param ingestConfiguration * The properties of the incoming RTMP stream for the stream. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamSession withIngestConfiguration(IngestConfiguration ingestConfiguration) { setIngestConfiguration(ingestConfiguration); return this; } /** ** The properties of recording the live stream. *
* * @param recordingConfiguration * The properties of recording the live stream. */ public void setRecordingConfiguration(RecordingConfiguration recordingConfiguration) { this.recordingConfiguration = recordingConfiguration; } /** ** The properties of recording the live stream. *
* * @return The properties of recording the live stream. */ public RecordingConfiguration getRecordingConfiguration() { return this.recordingConfiguration; } /** ** The properties of recording the live stream. *
* * @param recordingConfiguration * The properties of recording the live stream. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamSession withRecordingConfiguration(RecordingConfiguration recordingConfiguration) { setRecordingConfiguration(recordingConfiguration); return this; } /** ** Time when the channel went live. This is an ISO 8601 timestamp; note that this is returned as a string. *
* * @param startTime * Time when the channel went live. This is an ISO 8601 timestamp; note that this is returned as a * string. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** ** Time when the channel went live. This is an ISO 8601 timestamp; note that this is returned as a string. *
* * @return Time when the channel went live. This is an ISO 8601 timestamp; note that this is returned as a * string. */ public java.util.Date getStartTime() { return this.startTime; } /** ** Time when the channel went live. This is an ISO 8601 timestamp; note that this is returned as a string. *
* * @param startTime * Time when the channel went live. This is an ISO 8601 timestamp; note that this is returned as a * string. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamSession withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** ** Unique identifier for a live or previously live stream in the specified channel. *
* * @param streamId * Unique identifier for a live or previously live stream in the specified channel. */ public void setStreamId(String streamId) { this.streamId = streamId; } /** ** Unique identifier for a live or previously live stream in the specified channel. *
* * @return Unique identifier for a live or previously live stream in the specified channel. */ public String getStreamId() { return this.streamId; } /** ** Unique identifier for a live or previously live stream in the specified channel. *
* * @param streamId * Unique identifier for a live or previously live stream in the specified channel. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamSession withStreamId(String streamId) { setStreamId(streamId); return this; } /** ** 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. *
* * @return 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 java.util.List* 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. *
* * @param 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 void setTruncatedEvents(java.util.Collection* 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 * {@link #setTruncatedEvents(java.util.Collection)} or {@link #withTruncatedEvents(java.util.Collection)} if you * want to override the existing values. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamSession withTruncatedEvents(StreamEvent... truncatedEvents) { if (this.truncatedEvents == null) { setTruncatedEvents(new java.util.ArrayList* 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamSession withTruncatedEvents(java.util.Collection