/* * 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 { /// /// Lists iSCSI information about a volume. /// public partial class VolumeiSCSIAttributes { private bool? _chapEnabled; private int? _lunNumber; private string _networkInterfaceId; private int? _networkInterfacePort; private string _targetARN; /// /// Gets and sets the property ChapEnabled. /// /// Indicates whether mutual CHAP is enabled for the iSCSI target. /// /// public bool ChapEnabled { get { return this._chapEnabled.GetValueOrDefault(); } set { this._chapEnabled = value; } } // Check to see if ChapEnabled property is set internal bool IsSetChapEnabled() { return this._chapEnabled.HasValue; } /// /// Gets and sets the property LunNumber. /// /// The logical disk number. /// /// [AWSProperty(Min=1)] public int LunNumber { get { return this._lunNumber.GetValueOrDefault(); } set { this._lunNumber = value; } } // Check to see if LunNumber property is set internal bool IsSetLunNumber() { return this._lunNumber.HasValue; } /// /// Gets and sets the property NetworkInterfaceId. /// /// The network interface identifier. /// /// public string NetworkInterfaceId { get { return this._networkInterfaceId; } set { this._networkInterfaceId = value; } } // Check to see if NetworkInterfaceId property is set internal bool IsSetNetworkInterfaceId() { return this._networkInterfaceId != null; } /// /// Gets and sets the property NetworkInterfacePort. /// /// The port used to communicate with iSCSI targets. /// /// public int NetworkInterfacePort { get { return this._networkInterfacePort.GetValueOrDefault(); } set { this._networkInterfacePort = value; } } // Check to see if NetworkInterfacePort property is set internal bool IsSetNetworkInterfacePort() { return this._networkInterfacePort.HasValue; } /// /// Gets and sets the property TargetARN. /// /// The Amazon Resource Name (ARN) of the volume target. /// /// [AWSProperty(Min=50, Max=800)] public string TargetARN { get { return this._targetARN; } set { this._targetARN = value; } } // Check to see if TargetARN property is set internal bool IsSetTargetARN() { return this._targetARN != null; } } }