/*
* 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 redshift-2012-12-01.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.Redshift.Model
{
///
/// Describes the status of a cluster restore action. Returns null if the cluster was
/// not created by restoring a snapshot.
///
public partial class RestoreStatus
{
private double? _currentRestoreRateInMegaBytesPerSecond;
private long? _elapsedTimeInSeconds;
private long? _estimatedTimeToCompletionInSeconds;
private long? _progressInMegaBytes;
private long? _snapshotSizeInMegaBytes;
private string _status;
///
/// Gets and sets the property CurrentRestoreRateInMegaBytesPerSecond.
///
/// The number of megabytes per second being transferred from the backup storage. Returns
/// the average rate for a completed backup. This field is only updated when you restore
/// to DC2 and DS2 node types.
///
///
public double CurrentRestoreRateInMegaBytesPerSecond
{
get { return this._currentRestoreRateInMegaBytesPerSecond.GetValueOrDefault(); }
set { this._currentRestoreRateInMegaBytesPerSecond = value; }
}
// Check to see if CurrentRestoreRateInMegaBytesPerSecond property is set
internal bool IsSetCurrentRestoreRateInMegaBytesPerSecond()
{
return this._currentRestoreRateInMegaBytesPerSecond.HasValue;
}
///
/// Gets and sets the property ElapsedTimeInSeconds.
///
/// The amount of time an in-progress restore has been running, or the amount of time
/// it took a completed restore to finish. This field is only updated when you restore
/// to DC2 and DS2 node types.
///
///
public long ElapsedTimeInSeconds
{
get { return this._elapsedTimeInSeconds.GetValueOrDefault(); }
set { this._elapsedTimeInSeconds = value; }
}
// Check to see if ElapsedTimeInSeconds property is set
internal bool IsSetElapsedTimeInSeconds()
{
return this._elapsedTimeInSeconds.HasValue;
}
///
/// Gets and sets the property EstimatedTimeToCompletionInSeconds.
///
/// The estimate of the time remaining before the restore will complete. Returns 0 for
/// a completed restore. This field is only updated when you restore to DC2 and DS2 node
/// types.
///
///
public long EstimatedTimeToCompletionInSeconds
{
get { return this._estimatedTimeToCompletionInSeconds.GetValueOrDefault(); }
set { this._estimatedTimeToCompletionInSeconds = value; }
}
// Check to see if EstimatedTimeToCompletionInSeconds property is set
internal bool IsSetEstimatedTimeToCompletionInSeconds()
{
return this._estimatedTimeToCompletionInSeconds.HasValue;
}
///
/// Gets and sets the property ProgressInMegaBytes.
///
/// The number of megabytes that have been transferred from snapshot storage. This field
/// is only updated when you restore to DC2 and DS2 node types.
///
///
public long ProgressInMegaBytes
{
get { return this._progressInMegaBytes.GetValueOrDefault(); }
set { this._progressInMegaBytes = value; }
}
// Check to see if ProgressInMegaBytes property is set
internal bool IsSetProgressInMegaBytes()
{
return this._progressInMegaBytes.HasValue;
}
///
/// Gets and sets the property SnapshotSizeInMegaBytes.
///
/// The size of the set of snapshot data used to restore the cluster. This field is only
/// updated when you restore to DC2 and DS2 node types.
///
///
public long SnapshotSizeInMegaBytes
{
get { return this._snapshotSizeInMegaBytes.GetValueOrDefault(); }
set { this._snapshotSizeInMegaBytes = value; }
}
// Check to see if SnapshotSizeInMegaBytes property is set
internal bool IsSetSnapshotSizeInMegaBytes()
{
return this._snapshotSizeInMegaBytes.HasValue;
}
///
/// Gets and sets the property Status.
///
/// The status of the restore action. Returns starting, restoring, completed, or failed.
///
///
[AWSProperty(Max=2147483647)]
public string Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}