/* * 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 UpdateDataset operation. /// Updates the settings of a dataset. /// public partial class UpdateDatasetRequest : AmazonIoTAnalyticsRequest { private List _actions = new List(); private List _contentDeliveryRules = new List(); private string _datasetName; private List _lateDataRules = new List(); private RetentionPeriod _retentionPeriod; private List _triggers = new List(); private VersioningConfiguration _versioningConfiguration; /// /// Gets and sets the property Actions. /// /// A list of DatasetAction objects. /// /// [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 to update. /// /// [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. /// /// How long, in days, dataset contents are kept for the dataset. /// /// 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 Triggers. /// /// A list of DatasetTrigger objects. The list can be empty or can 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; } } }