/*
* 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 kinesis-video-archived-media-2017-09-30.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.KinesisVideoArchivedMedia.Model
{
///
/// Describes the timestamp range and timestamp origin of a range of fragments.
///
///
///
/// Only fragments with a start timestamp greater than or equal to the given start time
/// and less than or equal to the end time are returned. For example, if a stream contains
/// fragments with the following start timestamps:
///
/// -
///
/// 00:00:00
///
///
-
///
/// 00:00:02
///
///
-
///
/// 00:00:04
///
///
-
///
/// 00:00:06
///
///
///
/// A fragment selector range with a start time of 00:00:01 and end time of 00:00:04
/// would return the fragments with start times of 00:00:02 and 00:00:04.
///
///
public partial class FragmentSelector
{
private FragmentSelectorType _fragmentSelectorType;
private TimestampRange _timestampRange;
///
/// Gets and sets the property FragmentSelectorType.
///
/// The origin of the timestamps to use (Server or Producer).
///
///
[AWSProperty(Required=true)]
public FragmentSelectorType FragmentSelectorType
{
get { return this._fragmentSelectorType; }
set { this._fragmentSelectorType = value; }
}
// Check to see if FragmentSelectorType property is set
internal bool IsSetFragmentSelectorType()
{
return this._fragmentSelectorType != null;
}
///
/// Gets and sets the property TimestampRange.
///
/// The range of timestamps to return.
///
///
[AWSProperty(Required=true)]
public TimestampRange TimestampRange
{
get { return this._timestampRange; }
set { this._timestampRange = value; }
}
// Check to see if TimestampRange property is set
internal bool IsSetTimestampRange()
{
return this._timestampRange != null;
}
}
}