/*
* 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 rds-2014-10-31.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.RDS.Model
{
///
/// This data type is used as a response element in the DescribeDBClusterBacktracks
/// action.
///
public partial class DBClusterBacktrack
{
private DateTime? _backtrackedFrom;
private string _backtrackIdentifier;
private DateTime? _backtrackRequestCreationTime;
private DateTime? _backtrackTo;
private string _dbClusterIdentifier;
private string _status;
///
/// Gets and sets the property BacktrackedFrom.
///
/// The timestamp of the time from which the DB cluster was backtracked.
///
///
public DateTime BacktrackedFrom
{
get { return this._backtrackedFrom.GetValueOrDefault(); }
set { this._backtrackedFrom = value; }
}
// Check to see if BacktrackedFrom property is set
internal bool IsSetBacktrackedFrom()
{
return this._backtrackedFrom.HasValue;
}
///
/// Gets and sets the property BacktrackIdentifier.
///
/// Contains the backtrack identifier.
///
///
public string BacktrackIdentifier
{
get { return this._backtrackIdentifier; }
set { this._backtrackIdentifier = value; }
}
// Check to see if BacktrackIdentifier property is set
internal bool IsSetBacktrackIdentifier()
{
return this._backtrackIdentifier != null;
}
///
/// Gets and sets the property BacktrackRequestCreationTime.
///
/// The timestamp of the time at which the backtrack was requested.
///
///
public DateTime BacktrackRequestCreationTime
{
get { return this._backtrackRequestCreationTime.GetValueOrDefault(); }
set { this._backtrackRequestCreationTime = value; }
}
// Check to see if BacktrackRequestCreationTime property is set
internal bool IsSetBacktrackRequestCreationTime()
{
return this._backtrackRequestCreationTime.HasValue;
}
///
/// Gets and sets the property BacktrackTo.
///
/// The timestamp of the time to which the DB cluster was backtracked.
///
///
public DateTime BacktrackTo
{
get { return this._backtrackTo.GetValueOrDefault(); }
set { this._backtrackTo = value; }
}
// Check to see if BacktrackTo property is set
internal bool IsSetBacktrackTo()
{
return this._backtrackTo.HasValue;
}
///
/// Gets and sets the property DBClusterIdentifier.
///
/// Contains a user-supplied DB cluster identifier. This identifier is the unique key
/// that identifies a DB cluster.
///
///
public string DBClusterIdentifier
{
get { return this._dbClusterIdentifier; }
set { this._dbClusterIdentifier = value; }
}
// Check to see if DBClusterIdentifier property is set
internal bool IsSetDBClusterIdentifier()
{
return this._dbClusterIdentifier != null;
}
///
/// Gets and sets the property Status.
///
/// The status of the backtrack. This property returns one of the following values:
///
/// -
///
///
applying
- The backtrack is currently being applied to or rolled back
/// from the DB cluster.
///
/// -
///
///
completed
- The backtrack has successfully been applied to or rolled
/// back from the DB cluster.
///
/// -
///
///
failed
- An error occurred while the backtrack was applied to or rolled
/// back from the DB cluster.
///
/// -
///
///
pending
- The backtrack is currently pending application to or rollback
/// from the DB cluster.
///
///
///
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;
}
}
}