/** * 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 TranscribeService { namespace Model { /** *

A time range, in milliseconds, between two points in your media file.

*

You can use StartTime and EndTime to search a * custom segment. For example, setting StartTime to 10000 and * EndTime to 50000 only searches for your specified criteria in the * audio contained between the 10,000 millisecond mark and the 50,000 millisecond * mark of your media file. You must use StartTime and * EndTime as a set; that is, if you include one, you must include * both.

You can use also First to search from the start of the * audio until the time that you specify, or Last to search from the * time that you specify until the end of the audio. For example, setting * First to 50000 only searches for your specified criteria in the * audio contained between the start of the media file to the 50,000 millisecond * mark. You can use First and Last independently of each * other.

If you prefer to use percentage instead of milliseconds, see * .

See Also:

AWS * API Reference

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

The time, in milliseconds, when Amazon Transcribe starts searching for the * specified criteria in your audio. If you include StartTime in your * request, you must also include EndTime.

*/ inline long long GetStartTime() const{ return m_startTime; } /** *

The time, in milliseconds, when Amazon Transcribe starts searching for the * specified criteria in your audio. If you include StartTime in your * request, you must also include EndTime.

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

The time, in milliseconds, when Amazon Transcribe starts searching for the * specified criteria in your audio. If you include StartTime in your * request, you must also include EndTime.

*/ inline void SetStartTime(long long value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The time, in milliseconds, when Amazon Transcribe starts searching for the * specified criteria in your audio. If you include StartTime in your * request, you must also include EndTime.

*/ inline AbsoluteTimeRange& WithStartTime(long long value) { SetStartTime(value); return *this;} /** *

The time, in milliseconds, when Amazon Transcribe stops searching for the * specified criteria in your audio. If you include EndTime in your * request, you must also include StartTime.

*/ inline long long GetEndTime() const{ return m_endTime; } /** *

The time, in milliseconds, when Amazon Transcribe stops searching for the * specified criteria in your audio. If you include EndTime in your * request, you must also include StartTime.

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

The time, in milliseconds, when Amazon Transcribe stops searching for the * specified criteria in your audio. If you include EndTime in your * request, you must also include StartTime.

*/ inline void SetEndTime(long long value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The time, in milliseconds, when Amazon Transcribe stops searching for the * specified criteria in your audio. If you include EndTime in your * request, you must also include StartTime.

*/ inline AbsoluteTimeRange& WithEndTime(long long value) { SetEndTime(value); return *this;} /** *

The time, in milliseconds, from the start of your media file until the * specified value. Amazon Transcribe searches for your specified criteria in this * time segment.

*/ inline long long GetFirst() const{ return m_first; } /** *

The time, in milliseconds, from the start of your media file until the * specified value. Amazon Transcribe searches for your specified criteria in this * time segment.

*/ inline bool FirstHasBeenSet() const { return m_firstHasBeenSet; } /** *

The time, in milliseconds, from the start of your media file until the * specified value. Amazon Transcribe searches for your specified criteria in this * time segment.

*/ inline void SetFirst(long long value) { m_firstHasBeenSet = true; m_first = value; } /** *

The time, in milliseconds, from the start of your media file until the * specified value. Amazon Transcribe searches for your specified criteria in this * time segment.

*/ inline AbsoluteTimeRange& WithFirst(long long value) { SetFirst(value); return *this;} /** *

The time, in milliseconds, from the specified value until the end of your * media file. Amazon Transcribe searches for your specified criteria in this time * segment.

*/ inline long long GetLast() const{ return m_last; } /** *

The time, in milliseconds, from the specified value until the end of your * media file. Amazon Transcribe searches for your specified criteria in this time * segment.

*/ inline bool LastHasBeenSet() const { return m_lastHasBeenSet; } /** *

The time, in milliseconds, from the specified value until the end of your * media file. Amazon Transcribe searches for your specified criteria in this time * segment.

*/ inline void SetLast(long long value) { m_lastHasBeenSet = true; m_last = value; } /** *

The time, in milliseconds, from the specified value until the end of your * media file. Amazon Transcribe searches for your specified criteria in this time * segment.

*/ inline AbsoluteTimeRange& WithLast(long long value) { SetLast(value); return *this;} private: long long m_startTime; bool m_startTimeHasBeenSet = false; long long m_endTime; bool m_endTimeHasBeenSet = false; long long m_first; bool m_firstHasBeenSet = false; long long m_last; bool m_lastHasBeenSet = false; }; } // namespace Model } // namespace TranscribeService } // namespace Aws