/*
* 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
{
///
/// Information about a dataset.
///
public partial class Dataset
{
private List _actions = new List();
private string _arn;
private List _contentDeliveryRules = new List();
private DateTime? _creationTime;
private DateTime? _lastUpdateTime;
private List _lateDataRules = new List();
private string _name;
private RetentionPeriod _retentionPeriod;
private DatasetStatus _status;
private List _triggers = new List();
private VersioningConfiguration _versioningConfiguration;
///
/// Gets and sets the property Actions.
///
/// The DatasetAction
objects that automatically create the dataset contents.
///
///
[AWSProperty(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 Arn.
///
/// The ARN of the dataset.
///
///
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
///
/// 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 CreationTime.
///
/// When the dataset was created.
///
///
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
///
/// Gets and sets the property LastUpdateTime.
///
/// The last time the dataset was updated.
///
///
public DateTime LastUpdateTime
{
get { return this._lastUpdateTime.GetValueOrDefault(); }
set { this._lastUpdateTime = value; }
}
// Check to see if LastUpdateTime property is set
internal bool IsSetLastUpdateTime()
{
return this._lastUpdateTime.HasValue;
}
///
/// 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 Name.
///
/// The name of the dataset.
///
///
[AWSProperty(Min=1, Max=128)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property RetentionPeriod.
///
/// Optional. How long, in days, message data is 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 Status.
///
/// The status of the dataset.
///
///
public DatasetStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property Triggers.
///
/// The DatasetTrigger
objects that specify when the dataset is automatically
/// updated.
///
///
[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;
}
}
}