/*
* 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 storagegateway-2013-06-30.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.StorageGateway.Model
{
///
/// Represents a gateway's local disk.
///
public partial class Disk
{
private string _diskAllocationResource;
private string _diskAllocationType;
private List _diskAttributeList = new List();
private string _diskId;
private string _diskNode;
private string _diskPath;
private long? _diskSizeInBytes;
private string _diskStatus;
///
/// Gets and sets the property DiskAllocationResource.
///
/// The iSCSI qualified name (IQN) that is defined for a disk. This field is not included
/// in the response if the local disk is not defined as an iSCSI target. The format of
/// this field is targetIqn::LUNNumber::region-volumeId.
///
///
public string DiskAllocationResource
{
get { return this._diskAllocationResource; }
set { this._diskAllocationResource = value; }
}
// Check to see if DiskAllocationResource property is set
internal bool IsSetDiskAllocationResource()
{
return this._diskAllocationResource != null;
}
///
/// Gets and sets the property DiskAllocationType.
///
[AWSProperty(Min=3, Max=100)]
public string DiskAllocationType
{
get { return this._diskAllocationType; }
set { this._diskAllocationType = value; }
}
// Check to see if DiskAllocationType property is set
internal bool IsSetDiskAllocationType()
{
return this._diskAllocationType != null;
}
///
/// Gets and sets the property DiskAttributeList.
///
[AWSProperty(Min=0, Max=10)]
public List DiskAttributeList
{
get { return this._diskAttributeList; }
set { this._diskAttributeList = value; }
}
// Check to see if DiskAttributeList property is set
internal bool IsSetDiskAttributeList()
{
return this._diskAttributeList != null && this._diskAttributeList.Count > 0;
}
///
/// Gets and sets the property DiskId.
///
/// The unique device ID or other distinguishing data that identifies a local disk.
///
///
[AWSProperty(Min=1, Max=300)]
public string DiskId
{
get { return this._diskId; }
set { this._diskId = value; }
}
// Check to see if DiskId property is set
internal bool IsSetDiskId()
{
return this._diskId != null;
}
///
/// Gets and sets the property DiskNode.
///
/// The device node of a local disk as assigned by the virtualization environment.
///
///
public string DiskNode
{
get { return this._diskNode; }
set { this._diskNode = value; }
}
// Check to see if DiskNode property is set
internal bool IsSetDiskNode()
{
return this._diskNode != null;
}
///
/// Gets and sets the property DiskPath.
///
/// The path of a local disk in the gateway virtual machine (VM).
///
///
public string DiskPath
{
get { return this._diskPath; }
set { this._diskPath = value; }
}
// Check to see if DiskPath property is set
internal bool IsSetDiskPath()
{
return this._diskPath != null;
}
///
/// Gets and sets the property DiskSizeInBytes.
///
/// The local disk size in bytes.
///
///
public long DiskSizeInBytes
{
get { return this._diskSizeInBytes.GetValueOrDefault(); }
set { this._diskSizeInBytes = value; }
}
// Check to see if DiskSizeInBytes property is set
internal bool IsSetDiskSizeInBytes()
{
return this._diskSizeInBytes.HasValue;
}
///
/// Gets and sets the property DiskStatus.
///
/// A value that represents the status of a local disk.
///
///
public string DiskStatus
{
get { return this._diskStatus; }
set { this._diskStatus = value; }
}
// Check to see if DiskStatus property is set
internal bool IsSetDiskStatus()
{
return this._diskStatus != null;
}
}
}