using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; namespace Amazon.S3.Model { public class RestoreStatus { private bool? _isRestoreInProgress; private DateTime? _restoreExpiryDate; /// /// Gets and sets the property IsRestoreInProgress. /// /// Specifies whether the object is currently being restored. If the object restoration /// is in progress, the header returns the value TRUE. For example: /// /// /// /// x-amz-optional-object-attributes: IsRestoreInProgress="true" /// /// /// /// If the object restoration has completed, the header returns the value FALSE. /// For example: /// /// /// /// x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z" /// /// /// /// /// If the object hasn't been restored, there is no header response. /// /// public bool IsRestoreInProgress { get { return this._isRestoreInProgress.GetValueOrDefault(); } set { this._isRestoreInProgress = value; } } // Check to see if IsRestoreInProgress property is set internal bool IsSetIsRestoreInProgress() { return this._isRestoreInProgress.HasValue; } /// /// Gets and sets the property RestoreExpiryDate. /// /// Indicates when the restored copy will expire. This value is populated only if the /// object has already been restored. For example: /// /// /// /// x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z" /// /// /// public DateTime RestoreExpiryDate { get { return this._restoreExpiryDate.GetValueOrDefault(); } set { this._restoreExpiryDate = value; } } // Check to see if RestoreExpiryDate property is set internal bool IsSetRestoreExpiryDate() { return this._restoreExpiryDate.HasValue; } } }