/*
* 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 iot1click-devices-2018-05-14.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.IoT1ClickDevicesService.Model
{
///
///
///
public partial class DeviceDescription
{
private string _arn;
private Dictionary _attributes = new Dictionary();
private string _deviceId;
private bool? _enabled;
private double? _remainingLife;
private Dictionary _tags = new Dictionary();
private string _type;
///
/// Gets and sets the property Arn.
///
/// The ARN of the device.
///
///
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 Attributes.
///
/// An array of zero or more elements of DeviceAttribute objects providing user specified
/// device attributes.
///
///
public Dictionary Attributes
{
get { return this._attributes; }
set { this._attributes = value; }
}
// Check to see if Attributes property is set
internal bool IsSetAttributes()
{
return this._attributes != null && this._attributes.Count > 0;
}
///
/// Gets and sets the property DeviceId.
///
/// The unique identifier of the device.
///
///
public string DeviceId
{
get { return this._deviceId; }
set { this._deviceId = value; }
}
// Check to see if DeviceId property is set
internal bool IsSetDeviceId()
{
return this._deviceId != null;
}
///
/// Gets and sets the property Enabled.
///
/// A Boolean value indicating whether or not the device is enabled.
///
///
public bool Enabled
{
get { return this._enabled.GetValueOrDefault(); }
set { this._enabled = value; }
}
// Check to see if Enabled property is set
internal bool IsSetEnabled()
{
return this._enabled.HasValue;
}
///
/// Gets and sets the property RemainingLife.
///
/// A value between 0 and 1 inclusive, representing the fraction of life remaining for
/// the device.
///
///
public double RemainingLife
{
get { return this._remainingLife.GetValueOrDefault(); }
set { this._remainingLife = value; }
}
// Check to see if RemainingLife property is set
internal bool IsSetRemainingLife()
{
return this._remainingLife.HasValue;
}
///
/// Gets and sets the property Tags.
///
/// The tags currently associated with the AWS IoT 1-Click device.
///
///
public Dictionary 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 Type.
///
/// The type of the device, such as "button".
///
///
public string Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}