/*
 * 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
{
    /// <summary>
    /// An object containing the results for the utterance metrics you requested and the bin
    /// and/or group(s) they refer to, if applicable.
    /// </summary>
    public partial class AnalyticsUtteranceResult
    {
        private List<AnalyticsUtteranceAttributeResult> _attributeResults = new List<AnalyticsUtteranceAttributeResult>();
        private List<AnalyticsBinKey> _binKeys = new List<AnalyticsBinKey>();
        private List<AnalyticsUtteranceGroupByKey> _groupByKeys = new List<AnalyticsUtteranceGroupByKey>();
        private List<AnalyticsUtteranceMetricResult> _metricsResults = new List<AnalyticsUtteranceMetricResult>();

        /// <summary>
        /// Gets and sets the property AttributeResults. 
        /// <para>
        /// A list of objects containing information about the last used intent at the time of
        /// an utterance.
        /// </para>
        /// </summary>
        public List<AnalyticsUtteranceAttributeResult> AttributeResults
        {
            get { return this._attributeResults; }
            set { this._attributeResults = value; }
        }

        // Check to see if AttributeResults property is set
        internal bool IsSetAttributeResults()
        {
            return this._attributeResults != null && this._attributeResults.Count > 0; 
        }

        /// <summary>
        /// Gets and sets the property BinKeys. 
        /// <para>
        /// A list of objects containing the criteria you requested for binning results and the
        /// values of the bins.
        /// </para>
        /// </summary>
        [AWSProperty(Min=1, Max=1)]
        public List<AnalyticsBinKey> BinKeys
        {
            get { return this._binKeys; }
            set { this._binKeys = value; }
        }

        // Check to see if BinKeys property is set
        internal bool IsSetBinKeys()
        {
            return this._binKeys != null && this._binKeys.Count > 0; 
        }

        /// <summary>
        /// Gets and sets the property GroupByKeys. 
        /// <para>
        /// A list of objects containing the criteria you requested for grouping results and the
        /// values of the bins.
        /// </para>
        /// </summary>
        public List<AnalyticsUtteranceGroupByKey> GroupByKeys
        {
            get { return this._groupByKeys; }
            set { this._groupByKeys = value; }
        }

        // Check to see if GroupByKeys property is set
        internal bool IsSetGroupByKeys()
        {
            return this._groupByKeys != null && this._groupByKeys.Count > 0; 
        }

        /// <summary>
        /// Gets and sets the property MetricsResults. 
        /// <para>
        /// A list of objects, each of which contains a metric you want to list, the statistic
        /// for the metric you want to return, and the method by which to organize the results.
        /// </para>
        /// </summary>
        public List<AnalyticsUtteranceMetricResult> MetricsResults
        {
            get { return this._metricsResults; }
            set { this._metricsResults = value; }
        }

        // Check to see if MetricsResults property is set
        internal bool IsSetMetricsResults()
        {
            return this._metricsResults != null && this._metricsResults.Count > 0; 
        }

    }
}