/*
 * 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 iotanalytics-2017-11-27.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.IoTAnalytics.Model
{
    /// 
    /// Container for the parameters to the CreateDataset operation.
    /// Used to create a dataset. A dataset stores data retrieved from a data store by applying
    /// a queryAction (a SQL query) or a containerAction (executing
    /// a containerized application). This operation creates the skeleton of a dataset. The
    /// dataset can be populated manually by calling CreateDatasetContent or
    /// automatically according to a trigger you specify.
    /// 
    public partial class CreateDatasetRequest : AmazonIoTAnalyticsRequest
    {
        private List _actions = new List();
        private List _contentDeliveryRules = new List();
        private string _datasetName;
        private List _lateDataRules = new List();
        private RetentionPeriod _retentionPeriod;
        private List _tags = new List();
        private List _triggers = new List();
        private VersioningConfiguration _versioningConfiguration;
        /// 
        /// Gets and sets the property Actions. 
        /// 
        /// A list of actions that create the dataset contents.
        /// 
        /// 
        [AWSProperty(Required=true, Min=1, Max=1)]
        public List Actions
        {
            get { return this._actions; }
            set { this._actions = value; }
        }
        // Check to see if Actions property is set
        internal bool IsSetActions()
        {
            return this._actions != null && this._actions.Count > 0; 
        }
        /// 
        /// Gets and sets the property ContentDeliveryRules. 
        /// 
        /// When dataset contents are created, they are delivered to destinations specified here.
        /// 
        /// 
        [AWSProperty(Min=0, Max=20)]
        public List ContentDeliveryRules
        {
            get { return this._contentDeliveryRules; }
            set { this._contentDeliveryRules = value; }
        }
        // Check to see if ContentDeliveryRules property is set
        internal bool IsSetContentDeliveryRules()
        {
            return this._contentDeliveryRules != null && this._contentDeliveryRules.Count > 0; 
        }
        /// 
        /// Gets and sets the property DatasetName. 
        /// 
        /// The name of the dataset.
        /// 
        /// 
        [AWSProperty(Required=true, Min=1, Max=128)]
        public string DatasetName
        {
            get { return this._datasetName; }
            set { this._datasetName = value; }
        }
        // Check to see if DatasetName property is set
        internal bool IsSetDatasetName()
        {
            return this._datasetName != null;
        }
        /// 
        /// Gets and sets the property LateDataRules. 
        /// 
        /// A list of data rules that send notifications to CloudWatch, when data arrives late.
        /// To specify lateDataRules, the dataset must use a DeltaTimer
        /// filter.
        /// 
        /// 
        [AWSProperty(Min=1, Max=1)]
        public List LateDataRules
        {
            get { return this._lateDataRules; }
            set { this._lateDataRules = value; }
        }
        // Check to see if LateDataRules property is set
        internal bool IsSetLateDataRules()
        {
            return this._lateDataRules != null && this._lateDataRules.Count > 0; 
        }
        /// 
        /// Gets and sets the property RetentionPeriod. 
        /// 
        /// Optional. How long, in days, versions of dataset contents are kept for the dataset.
        /// If not specified or set to null, versions of dataset contents are retained
        /// for at most 90 days. The number of versions of dataset contents retained is determined
        /// by the versioningConfiguration parameter. For more information, see 
        /// Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics User
        /// Guide.
        /// 
        /// 
        public RetentionPeriod RetentionPeriod
        {
            get { return this._retentionPeriod; }
            set { this._retentionPeriod = value; }
        }
        // Check to see if RetentionPeriod property is set
        internal bool IsSetRetentionPeriod()
        {
            return this._retentionPeriod != null;
        }
        /// 
        /// Gets and sets the property Tags. 
        /// 
        /// Metadata which can be used to manage the dataset.
        /// 
        /// 
        [AWSProperty(Min=1, Max=50)]
        public List Tags
        {
            get { return this._tags; }
            set { this._tags = value; }
        }
        // Check to see if Tags property is set
        internal bool IsSetTags()
        {
            return this._tags != null && this._tags.Count > 0; 
        }
        /// 
        /// Gets and sets the property Triggers. 
        /// 
        /// A list of triggers. A trigger causes dataset contents to be populated at a specified
        /// time interval or when another dataset's contents are created. The list of triggers
        /// can be empty or contain up to five DataSetTrigger objects.
        /// 
        /// 
        [AWSProperty(Min=0, Max=5)]
        public List Triggers
        {
            get { return this._triggers; }
            set { this._triggers = value; }
        }
        // Check to see if Triggers property is set
        internal bool IsSetTriggers()
        {
            return this._triggers != null && this._triggers.Count > 0; 
        }
        /// 
        /// Gets and sets the property VersioningConfiguration. 
        /// 
        /// Optional. How many versions of dataset contents are kept. If not specified or set
        /// to null, only the latest version plus the latest succeeded version (if they are different)
        /// are kept for the time period specified by the retentionPeriod parameter.
        /// For more information, see Keeping
        /// Multiple Versions of IoT Analytics datasets in the IoT Analytics User Guide.
        /// 
        /// 
        public VersioningConfiguration VersioningConfiguration
        {
            get { return this._versioningConfiguration; }
            set { this._versioningConfiguration = value; }
        }
        // Check to see if VersioningConfiguration property is set
        internal bool IsSetVersioningConfiguration()
        {
            return this._versioningConfiguration != null;
        }
    }
}