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

The range of timestamps for which to return fragments.

See * Also:

AWS * API Reference

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

The starting timestamp in the range of timestamps for which to return * fragments.

*/ inline const Aws::Utils::DateTime& GetStartTimestamp() const{ return m_startTimestamp; } /** *

The starting timestamp in the range of timestamps for which to return * fragments.

*/ inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; } /** *

The starting timestamp in the range of timestamps for which to return * fragments.

*/ inline void SetStartTimestamp(const Aws::Utils::DateTime& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = value; } /** *

The starting timestamp in the range of timestamps for which to return * fragments.

*/ inline void SetStartTimestamp(Aws::Utils::DateTime&& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = std::move(value); } /** *

The starting timestamp in the range of timestamps for which to return * fragments.

*/ inline TimestampRange& WithStartTimestamp(const Aws::Utils::DateTime& value) { SetStartTimestamp(value); return *this;} /** *

The starting timestamp in the range of timestamps for which to return * fragments.

*/ inline TimestampRange& WithStartTimestamp(Aws::Utils::DateTime&& value) { SetStartTimestamp(std::move(value)); return *this;} /** *

The ending timestamp in the range of timestamps for which to return * fragments.

*/ inline const Aws::Utils::DateTime& GetEndTimestamp() const{ return m_endTimestamp; } /** *

The ending timestamp in the range of timestamps for which to return * fragments.

*/ inline bool EndTimestampHasBeenSet() const { return m_endTimestampHasBeenSet; } /** *

The ending timestamp in the range of timestamps for which to return * fragments.

*/ inline void SetEndTimestamp(const Aws::Utils::DateTime& value) { m_endTimestampHasBeenSet = true; m_endTimestamp = value; } /** *

The ending timestamp in the range of timestamps for which to return * fragments.

*/ inline void SetEndTimestamp(Aws::Utils::DateTime&& value) { m_endTimestampHasBeenSet = true; m_endTimestamp = std::move(value); } /** *

The ending timestamp in the range of timestamps for which to return * fragments.

*/ inline TimestampRange& WithEndTimestamp(const Aws::Utils::DateTime& value) { SetEndTimestamp(value); return *this;} /** *

The ending timestamp in the range of timestamps for which to return * fragments.

*/ inline TimestampRange& WithEndTimestamp(Aws::Utils::DateTime&& value) { SetEndTimestamp(std::move(value)); return *this;} private: Aws::Utils::DateTime m_startTimestamp; bool m_startTimestampHasBeenSet = false; Aws::Utils::DateTime m_endTimestamp; bool m_endTimestampHasBeenSet = false; }; } // namespace Model } // namespace KinesisVideoArchivedMedia } // namespace Aws