Class StreamSummary

    • Method Detail

      • channelArn

        public final String channelArn()

        Channel ARN for the stream.

        Returns:
        Channel ARN for the stream.
      • startTime

        public final Instant startTime()

        Time of the stream’s start. This is an ISO 8601 timestamp; note that this is returned as a string.

        Returns:
        Time of the stream’s start. This is an ISO 8601 timestamp; note that this is returned as a string.
      • state

        public final StreamState state()

        The stream’s state. Do not rely on the OFFLINE state, as the API may not return it; instead, a "NotBroadcasting" error will indicate that the stream is not live.

        If the service returns an enum value that is not available in the current SDK version, state will return StreamState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from stateAsString().

        Returns:
        The stream’s state. Do not rely on the OFFLINE state, as the API may not return it; instead, a "NotBroadcasting" error will indicate that the stream is not live.
        See Also:
        StreamState
      • stateAsString

        public final String stateAsString()

        The stream’s state. Do not rely on the OFFLINE state, as the API may not return it; instead, a "NotBroadcasting" error will indicate that the stream is not live.

        If the service returns an enum value that is not available in the current SDK version, state will return StreamState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from stateAsString().

        Returns:
        The stream’s state. Do not rely on the OFFLINE state, as the API may not return it; instead, a "NotBroadcasting" error will indicate that the stream is not live.
        See Also:
        StreamState
      • streamId

        public final String streamId()

        Unique identifier for a live or previously live stream in the specified channel.

        Returns:
        Unique identifier for a live or previously live stream in the specified channel.
      • viewerCount

        public final Long viewerCount()

        A count of concurrent views of the stream. Typically, a new view appears in viewerCount within 15 seconds of when video playback starts and a view is removed from viewerCount within 1 minute of when video playback ends. A value of -1 indicates that the request timed out; in this case, retry.

        Returns:
        A count of concurrent views of the stream. Typically, a new view appears in viewerCount within 15 seconds of when video playback starts and a view is removed from viewerCount within 1 minute of when video playback ends. A value of -1 indicates that the request timed out; in this case, retry.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)