/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the transcribe-2017-10-26.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.TranscribeService.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 . /// /// public partial class AbsoluteTimeRange { private long? _endTime; private long? _first; private long? _last; private long? _startTime; /// /// Gets and sets the property 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. /// /// [AWSProperty(Min=0, Max=14400000)] public long EndTime { get { return this._endTime.GetValueOrDefault(); } set { this._endTime = value; } } // Check to see if EndTime property is set internal bool IsSetEndTime() { return this._endTime.HasValue; } /// /// Gets and sets the property 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. /// /// [AWSProperty(Min=0, Max=14400000)] public long First { get { return this._first.GetValueOrDefault(); } set { this._first = value; } } // Check to see if First property is set internal bool IsSetFirst() { return this._first.HasValue; } /// /// Gets and sets the property 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. /// /// [AWSProperty(Min=0, Max=14400000)] public long Last { get { return this._last.GetValueOrDefault(); } set { this._last = value; } } // Check to see if Last property is set internal bool IsSetLast() { return this._last.HasValue; } /// /// Gets and sets the property 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. /// /// [AWSProperty(Min=0, Max=14400000)] public long StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } } }