/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IVS { namespace Model { /** *

Summary information about a stream session.

See Also:

AWS * API Reference

*/ class StreamSessionSummary { public: AWS_IVS_API StreamSessionSummary(); AWS_IVS_API StreamSessionSummary(Aws::Utils::Json::JsonView jsonValue); AWS_IVS_API StreamSessionSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IVS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_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.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

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.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

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.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

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.

*/ inline StreamSessionSummary& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); 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.

*/ inline StreamSessionSummary& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

If true, this stream encountered a quota breach or failure.

*/ inline bool GetHasErrorEvent() const{ return m_hasErrorEvent; } /** *

If true, this stream encountered a quota breach or failure.

*/ inline bool HasErrorEventHasBeenSet() const { return m_hasErrorEventHasBeenSet; } /** *

If true, this stream encountered a quota breach or failure.

*/ inline void SetHasErrorEvent(bool value) { m_hasErrorEventHasBeenSet = true; m_hasErrorEvent = value; } /** *

If true, this stream encountered a quota breach or failure.

*/ inline StreamSessionSummary& WithHasErrorEvent(bool value) { SetHasErrorEvent(value); return *this;} /** *

Time when the channel went live. This is an ISO 8601 timestamp; note that * this is returned as a string.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

Time when the channel went live. This is an ISO 8601 timestamp; note that * this is returned as a string.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

Time when the channel went live. This is an ISO 8601 timestamp; note that * this is returned as a string.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

Time when the channel went live. This is an ISO 8601 timestamp; note that * this is returned as a string.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

Time when the channel went live. This is an ISO 8601 timestamp; note that * this is returned as a string.

*/ inline StreamSessionSummary& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

Time when the channel went live. This is an ISO 8601 timestamp; note that * this is returned as a string.

*/ inline StreamSessionSummary& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

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

*/ inline const Aws::String& GetStreamId() const{ return m_streamId; } /** *

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

*/ inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; } /** *

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

*/ inline void SetStreamId(const Aws::String& value) { m_streamIdHasBeenSet = true; m_streamId = value; } /** *

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

*/ inline void SetStreamId(Aws::String&& value) { m_streamIdHasBeenSet = true; m_streamId = std::move(value); } /** *

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

*/ inline void SetStreamId(const char* value) { m_streamIdHasBeenSet = true; m_streamId.assign(value); } /** *

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

*/ inline StreamSessionSummary& WithStreamId(const Aws::String& value) { SetStreamId(value); return *this;} /** *

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

*/ inline StreamSessionSummary& WithStreamId(Aws::String&& value) { SetStreamId(std::move(value)); return *this;} /** *

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

*/ inline StreamSessionSummary& WithStreamId(const char* value) { SetStreamId(value); return *this;} private: Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; bool m_hasErrorEvent; bool m_hasErrorEventHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::String m_streamId; bool m_streamIdHasBeenSet = false; }; } // namespace Model } // namespace IVS } // namespace Aws