/*
* 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 panorama-2019-07-24.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.Panorama.Model
{
///
/// A device.
///
public partial class Device
{
private DeviceBrand _brand;
private DateTime? _createdTime;
private string _currentSoftware;
private string _description;
private DeviceAggregatedStatus _deviceAggregatedStatus;
private string _deviceId;
private DateTime? _lastUpdatedTime;
private LatestDeviceJob _latestDeviceJob;
private DateTime? _leaseExpirationTime;
private string _name;
private DeviceStatus _provisioningStatus;
private Dictionary _tags = new Dictionary();
private DeviceType _type;
///
/// Gets and sets the property Brand.
///
/// The device's maker.
///
///
public DeviceBrand Brand
{
get { return this._brand; }
set { this._brand = value; }
}
// Check to see if Brand property is set
internal bool IsSetBrand()
{
return this._brand != null;
}
///
/// Gets and sets the property CreatedTime.
///
/// When the device was created.
///
///
public DateTime CreatedTime
{
get { return this._createdTime.GetValueOrDefault(); }
set { this._createdTime = value; }
}
// Check to see if CreatedTime property is set
internal bool IsSetCreatedTime()
{
return this._createdTime.HasValue;
}
///
/// Gets and sets the property CurrentSoftware.
///
/// A device's current software.
///
///
[AWSProperty(Min=1, Max=255)]
public string CurrentSoftware
{
get { return this._currentSoftware; }
set { this._currentSoftware = value; }
}
// Check to see if CurrentSoftware property is set
internal bool IsSetCurrentSoftware()
{
return this._currentSoftware != null;
}
///
/// Gets and sets the property Description.
///
/// A description for the device.
///
///
[AWSProperty(Min=0, Max=255)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property DeviceAggregatedStatus.
///
/// A device's aggregated status. Including the device's connection status, provisioning
/// status, and lease status.
///
///
public DeviceAggregatedStatus DeviceAggregatedStatus
{
get { return this._deviceAggregatedStatus; }
set { this._deviceAggregatedStatus = value; }
}
// Check to see if DeviceAggregatedStatus property is set
internal bool IsSetDeviceAggregatedStatus()
{
return this._deviceAggregatedStatus != null;
}
///
/// Gets and sets the property DeviceId.
///
/// The device's ID.
///
///
[AWSProperty(Min=1, Max=255)]
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 LastUpdatedTime.
///
/// When the device was updated.
///
///
public DateTime LastUpdatedTime
{
get { return this._lastUpdatedTime.GetValueOrDefault(); }
set { this._lastUpdatedTime = value; }
}
// Check to see if LastUpdatedTime property is set
internal bool IsSetLastUpdatedTime()
{
return this._lastUpdatedTime.HasValue;
}
///
/// Gets and sets the property LatestDeviceJob.
///
/// A device's latest job. Includes the target image version, and the update job status.
///
///
public LatestDeviceJob LatestDeviceJob
{
get { return this._latestDeviceJob; }
set { this._latestDeviceJob = value; }
}
// Check to see if LatestDeviceJob property is set
internal bool IsSetLatestDeviceJob()
{
return this._latestDeviceJob != null;
}
///
/// Gets and sets the property LeaseExpirationTime.
///
/// The device's lease expiration time.
///
///
public DateTime LeaseExpirationTime
{
get { return this._leaseExpirationTime.GetValueOrDefault(); }
set { this._leaseExpirationTime = value; }
}
// Check to see if LeaseExpirationTime property is set
internal bool IsSetLeaseExpirationTime()
{
return this._leaseExpirationTime.HasValue;
}
///
/// Gets and sets the property Name.
///
/// The device's name.
///
///
[AWSProperty(Min=1, Max=255)]
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 ProvisioningStatus.
///
/// The device's provisioning status.
///
///
public DeviceStatus ProvisioningStatus
{
get { return this._provisioningStatus; }
set { this._provisioningStatus = value; }
}
// Check to see if ProvisioningStatus property is set
internal bool IsSetProvisioningStatus()
{
return this._provisioningStatus != null;
}
///
/// Gets and sets the property Tags.
///
/// The device's tags.
///
///
[AWSProperty(Min=0, Max=50)]
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 device's type.
///
///
public DeviceType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}