/* * 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 { /// /// Describes a virtual tape object. /// public partial class Tape { private string _kmsKey; private DateTime? _poolEntryDate; private string _poolId; private double? _progress; private DateTime? _retentionStartDate; private string _tapeARN; private string _tapeBarcode; private DateTime? _tapeCreatedDate; private long? _tapeSizeInBytes; private string _tapeStatus; private long? _tapeUsedInBytes; private string _vtlDevice; private bool? _worm; /// /// Gets and sets the property KMSKey. /// [AWSProperty(Min=7, Max=2048)] public string KMSKey { get { return this._kmsKey; } set { this._kmsKey = value; } } // Check to see if KMSKey property is set internal bool IsSetKMSKey() { return this._kmsKey != null; } /// /// Gets and sets the property PoolEntryDate. /// /// The date that the tape enters a custom tape pool. /// /// public DateTime PoolEntryDate { get { return this._poolEntryDate.GetValueOrDefault(); } set { this._poolEntryDate = value; } } // Check to see if PoolEntryDate property is set internal bool IsSetPoolEntryDate() { return this._poolEntryDate.HasValue; } /// /// Gets and sets the property PoolId. /// /// The ID of the pool that contains tapes that will be archived. The tapes in this pool /// are archived in the S3 storage class that is associated with the pool. When you use /// your backup application to eject the tape, the tape is archived directly into the /// storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool. /// /// [AWSProperty(Min=1, Max=100)] public string PoolId { get { return this._poolId; } set { this._poolId = value; } } // Check to see if PoolId property is set internal bool IsSetPoolId() { return this._poolId != null; } /// /// Gets and sets the property Progress. /// /// For archiving virtual tapes, indicates how much data remains to be uploaded before /// archiving is complete. /// /// /// /// Range: 0 (not started) to 100 (complete). /// /// public double Progress { get { return this._progress.GetValueOrDefault(); } set { this._progress = value; } } // Check to see if Progress property is set internal bool IsSetProgress() { return this._progress.HasValue; } /// /// Gets and sets the property RetentionStartDate. /// /// The date that the tape is first archived with tape retention lock enabled. /// /// public DateTime RetentionStartDate { get { return this._retentionStartDate.GetValueOrDefault(); } set { this._retentionStartDate = value; } } // Check to see if RetentionStartDate property is set internal bool IsSetRetentionStartDate() { return this._retentionStartDate.HasValue; } /// /// Gets and sets the property TapeARN. /// /// The Amazon Resource Name (ARN) of the virtual tape. /// /// [AWSProperty(Min=50, Max=500)] public string TapeARN { get { return this._tapeARN; } set { this._tapeARN = value; } } // Check to see if TapeARN property is set internal bool IsSetTapeARN() { return this._tapeARN != null; } /// /// Gets and sets the property TapeBarcode. /// /// The barcode that identifies a specific virtual tape. /// /// [AWSProperty(Min=5, Max=16)] public string TapeBarcode { get { return this._tapeBarcode; } set { this._tapeBarcode = value; } } // Check to see if TapeBarcode property is set internal bool IsSetTapeBarcode() { return this._tapeBarcode != null; } /// /// Gets and sets the property TapeCreatedDate. /// /// The date the virtual tape was created. /// /// public DateTime TapeCreatedDate { get { return this._tapeCreatedDate.GetValueOrDefault(); } set { this._tapeCreatedDate = value; } } // Check to see if TapeCreatedDate property is set internal bool IsSetTapeCreatedDate() { return this._tapeCreatedDate.HasValue; } /// /// Gets and sets the property TapeSizeInBytes. /// /// The size, in bytes, of the virtual tape capacity. /// /// public long TapeSizeInBytes { get { return this._tapeSizeInBytes.GetValueOrDefault(); } set { this._tapeSizeInBytes = value; } } // Check to see if TapeSizeInBytes property is set internal bool IsSetTapeSizeInBytes() { return this._tapeSizeInBytes.HasValue; } /// /// Gets and sets the property TapeStatus. /// /// The current state of the virtual tape. /// /// public string TapeStatus { get { return this._tapeStatus; } set { this._tapeStatus = value; } } // Check to see if TapeStatus property is set internal bool IsSetTapeStatus() { return this._tapeStatus != null; } /// /// Gets and sets the property TapeUsedInBytes. /// /// The size, in bytes, of data stored on the virtual tape. /// /// /// /// This value is not available for tapes created prior to May 13, 2015. /// /// /// public long TapeUsedInBytes { get { return this._tapeUsedInBytes.GetValueOrDefault(); } set { this._tapeUsedInBytes = value; } } // Check to see if TapeUsedInBytes property is set internal bool IsSetTapeUsedInBytes() { return this._tapeUsedInBytes.HasValue; } /// /// Gets and sets the property VTLDevice. /// /// The virtual tape library (VTL) device that the virtual tape is associated with. /// /// [AWSProperty(Min=50, Max=500)] public string VTLDevice { get { return this._vtlDevice; } set { this._vtlDevice = value; } } // Check to see if VTLDevice property is set internal bool IsSetVTLDevice() { return this._vtlDevice != null; } /// /// Gets and sets the property Worm. /// /// If the tape is archived as write-once-read-many (WORM), this value is true. /// /// public bool Worm { get { return this._worm.GetValueOrDefault(); } set { this._worm = value; } } // Check to see if Worm property is set internal bool IsSetWorm() { return this._worm.HasValue; } } }