/* * 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 models.lex.v2-2020-08-07.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.LexModelsV2.Model { /// /// Specifies the time window that utterance statistics are returned for. The time window /// is always relative to the last time that the that utterances were aggregated. For /// example, if the ListAggregatedUtterances operation is called at 1600, /// the time window is set to 1 hour, and the last refresh time was 1530, only utterances /// made between 1430 and 1530 are returned. /// /// /// /// You can choose the time window that statistics should be returned for. /// /// /// public partial class RelativeAggregationDuration { private TimeDimension _timeDimension; private int? _timeValue; /// /// Gets and sets the property TimeDimension. /// /// The type of time period that the timeValue field represents. /// /// [AWSProperty(Required=true)] public TimeDimension TimeDimension { get { return this._timeDimension; } set { this._timeDimension = value; } } // Check to see if TimeDimension property is set internal bool IsSetTimeDimension() { return this._timeDimension != null; } /// /// Gets and sets the property TimeValue. /// /// The period of the time window to gather statistics for. The valid value depends on /// the setting of the timeDimension field. /// /// /// [AWSProperty(Required=true, Min=1, Max=24)] public int TimeValue { get { return this._timeValue.GetValueOrDefault(); } set { this._timeValue = value; } } // Check to see if TimeValue property is set internal bool IsSetTimeValue() { return this._timeValue.HasValue; } } }