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

Contains the timestamp range (start time through end time) of a matched * category.

See Also:

AWS * API Reference

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

The time, in milliseconds, from the beginning of the audio stream to the * start of the category match.

*/ inline long long GetBeginOffsetMillis() const{ return m_beginOffsetMillis; } /** *

The time, in milliseconds, from the beginning of the audio stream to the * start of the category match.

*/ inline bool BeginOffsetMillisHasBeenSet() const { return m_beginOffsetMillisHasBeenSet; } /** *

The time, in milliseconds, from the beginning of the audio stream to the * start of the category match.

*/ inline void SetBeginOffsetMillis(long long value) { m_beginOffsetMillisHasBeenSet = true; m_beginOffsetMillis = value; } /** *

The time, in milliseconds, from the beginning of the audio stream to the * start of the category match.

*/ inline TimestampRange& WithBeginOffsetMillis(long long value) { SetBeginOffsetMillis(value); return *this;} /** *

The time, in milliseconds, from the beginning of the audio stream to the end * of the category match.

*/ inline long long GetEndOffsetMillis() const{ return m_endOffsetMillis; } /** *

The time, in milliseconds, from the beginning of the audio stream to the end * of the category match.

*/ inline bool EndOffsetMillisHasBeenSet() const { return m_endOffsetMillisHasBeenSet; } /** *

The time, in milliseconds, from the beginning of the audio stream to the end * of the category match.

*/ inline void SetEndOffsetMillis(long long value) { m_endOffsetMillisHasBeenSet = true; m_endOffsetMillis = value; } /** *

The time, in milliseconds, from the beginning of the audio stream to the end * of the category match.

*/ inline TimestampRange& WithEndOffsetMillis(long long value) { SetEndOffsetMillis(value); return *this;} private: long long m_beginOffsetMillis; bool m_beginOffsetMillisHasBeenSet = false; long long m_endOffsetMillis; bool m_endOffsetMillisHasBeenSet = false; }; } // namespace Model } // namespace TranscribeStreamingService } // namespace Aws