/* * 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 { /// <summary> /// This is the response object from the DescribeDevice operation. /// </summary> public partial class DescribeDeviceResponse : AmazonWebServiceResponse { private List<AlternateSoftwareMetadata> _alternateSoftwares = new List<AlternateSoftwareMetadata>(); private string _arn; private DeviceBrand _brand; private DateTime? _createdTime; private NetworkStatus _currentNetworkingStatus; private string _currentSoftware; private string _description; private DeviceAggregatedStatus _deviceAggregatedStatus; private DeviceConnectionStatus _deviceConnectionStatus; private string _deviceId; private string _latestAlternateSoftware; private LatestDeviceJob _latestDeviceJob; private string _latestSoftware; private DateTime? _leaseExpirationTime; private string _name; private NetworkPayload _networkingConfiguration; private DeviceStatus _provisioningStatus; private string _serialNumber; private Dictionary<string, string> _tags = new Dictionary<string, string>(); private DeviceType _type; /// <summary> /// Gets and sets the property AlternateSoftwares. /// <para> /// Beta software releases available for the device. /// </para> /// </summary> public List<AlternateSoftwareMetadata> AlternateSoftwares { get { return this._alternateSoftwares; } set { this._alternateSoftwares = value; } } // Check to see if AlternateSoftwares property is set internal bool IsSetAlternateSoftwares() { return this._alternateSoftwares != null && this._alternateSoftwares.Count > 0; } /// <summary> /// Gets and sets the property Arn. /// <para> /// The device's ARN. /// </para> /// </summary> [AWSProperty(Min=1, Max=255)] 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; } /// <summary> /// Gets and sets the property Brand. /// <para> /// The device's maker. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property CreatedTime. /// <para> /// When the device was created. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property CurrentNetworkingStatus. /// <para> /// The device's networking status. /// </para> /// </summary> public NetworkStatus CurrentNetworkingStatus { get { return this._currentNetworkingStatus; } set { this._currentNetworkingStatus = value; } } // Check to see if CurrentNetworkingStatus property is set internal bool IsSetCurrentNetworkingStatus() { return this._currentNetworkingStatus != null; } /// <summary> /// Gets and sets the property CurrentSoftware. /// <para> /// The device's current software version. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property Description. /// <para> /// The device's description. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property DeviceAggregatedStatus. /// <para> /// A device's aggregated status. Including the device's connection status, provisioning /// status, and lease status. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property DeviceConnectionStatus. /// <para> /// The device's connection status. /// </para> /// </summary> public DeviceConnectionStatus DeviceConnectionStatus { get { return this._deviceConnectionStatus; } set { this._deviceConnectionStatus = value; } } // Check to see if DeviceConnectionStatus property is set internal bool IsSetDeviceConnectionStatus() { return this._deviceConnectionStatus != null; } /// <summary> /// Gets and sets the property DeviceId. /// <para> /// The device's ID. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property LatestAlternateSoftware. /// <para> /// The most recent beta software release. /// </para> /// </summary> [AWSProperty(Min=1, Max=255)] public string LatestAlternateSoftware { get { return this._latestAlternateSoftware; } set { this._latestAlternateSoftware = value; } } // Check to see if LatestAlternateSoftware property is set internal bool IsSetLatestAlternateSoftware() { return this._latestAlternateSoftware != null; } /// <summary> /// Gets and sets the property LatestDeviceJob. /// <para> /// A device's latest job. Includes the target image version, and the job status. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property LatestSoftware. /// <para> /// The latest software version available for the device. /// </para> /// </summary> [AWSProperty(Min=1, Max=255)] public string LatestSoftware { get { return this._latestSoftware; } set { this._latestSoftware = value; } } // Check to see if LatestSoftware property is set internal bool IsSetLatestSoftware() { return this._latestSoftware != null; } /// <summary> /// Gets and sets the property LeaseExpirationTime. /// <para> /// The device's lease expiration time. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property Name. /// <para> /// The device's name. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property NetworkingConfiguration. /// <para> /// The device's networking configuration. /// </para> /// </summary> public NetworkPayload NetworkingConfiguration { get { return this._networkingConfiguration; } set { this._networkingConfiguration = value; } } // Check to see if NetworkingConfiguration property is set internal bool IsSetNetworkingConfiguration() { return this._networkingConfiguration != null; } /// <summary> /// Gets and sets the property ProvisioningStatus. /// <para> /// The device's provisioning status. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property SerialNumber. /// <para> /// The device's serial number. /// </para> /// </summary> public string SerialNumber { get { return this._serialNumber; } set { this._serialNumber = value; } } // Check to see if SerialNumber property is set internal bool IsSetSerialNumber() { return this._serialNumber != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The device's tags. /// </para> /// </summary> [AWSProperty(Min=0, Max=50)] public Dictionary<string, string> 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; } /// <summary> /// Gets and sets the property Type. /// <para> /// The device's type. /// </para> /// </summary> 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; } } }