/*
* 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
{
///
/// A collection of data from an MQTT topic. Channels archive the raw, unprocessed messages
/// before publishing the data to a pipeline.
///
public partial class Channel
{
private string _arn;
private DateTime? _creationTime;
private DateTime? _lastMessageArrivalTime;
private DateTime? _lastUpdateTime;
private string _name;
private RetentionPeriod _retentionPeriod;
private ChannelStatus _status;
private ChannelStorage _storage;
///
/// Gets and sets the property Arn.
///
/// The ARN of the channel.
///
///
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 CreationTime.
///
/// When the channel 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 LastMessageArrivalTime.
///
/// The last time when a new message arrived in the channel.
///
///
///
/// IoT Analytics updates this value at most once per minute for one channel. Hence, the
/// lastMessageArrivalTime
value is an approximation.
///
///
///
/// This feature only applies to messages that arrived in the data store after October
/// 23, 2020.
///
///
public DateTime LastMessageArrivalTime
{
get { return this._lastMessageArrivalTime.GetValueOrDefault(); }
set { this._lastMessageArrivalTime = value; }
}
// Check to see if LastMessageArrivalTime property is set
internal bool IsSetLastMessageArrivalTime()
{
return this._lastMessageArrivalTime.HasValue;
}
///
/// Gets and sets the property LastUpdateTime.
///
/// When the channel was last 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 Name.
///
/// The name of the channel.
///
///
[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.
///
/// How long, in days, message data is kept for the channel.
///
///
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 channel.
///
///
public ChannelStatus 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 Storage.
///
/// Where channel data is stored. You can choose one of serviceManagedS3
/// or customerManagedS3
storage. If not specified, the default is serviceManagedS3
.
/// You can't change this storage option after the channel is created.
///
///
public ChannelStorage Storage
{
get { return this._storage; }
set { this._storage = value; }
}
// Check to see if Storage property is set
internal bool IsSetStorage()
{
return this._storage != null;
}
}
}