/* * 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 { /// /// Container for the parameters to the BacktrackDBCluster operation. /// Backtracks a DB cluster to a specific time, without creating a new DB cluster. /// /// /// /// For more information on backtracking, see /// Backtracking an Aurora DB Cluster in the Amazon Aurora User Guide. /// /// /// /// This action applies only to Aurora MySQL DB clusters. /// /// /// public partial class BacktrackDBClusterRequest : AmazonRDSRequest { private DateTime? _backtrackToUtc; private string _dbClusterIdentifier; private bool? _force; private bool? _useEarliestTimeOnPointInTimeUnavailable; /// /// Gets and sets the property BacktrackToUtc. /// /// The timestamp of the time to backtrack the DB cluster to, specified in ISO 8601 format. /// For more information about ISO 8601, see the ISO8601 /// Wikipedia page. /// /// /// /// If the specified time isn't a consistent time for the DB cluster, Aurora automatically /// chooses the nearest possible consistent time for the DB cluster. /// /// /// /// Constraints: /// /// /// /// Example: 2017-07-08T18:00Z /// /// [AWSProperty(Required=true)] public DateTime BacktrackToUtc { get { return this._backtrackToUtc.GetValueOrDefault(); } set { this._backtrackTo = this._backtrackToUtc = value; } } // Check to see if BacktrackToUtc property is set internal bool IsSetBacktrackToUtc() { return this._backtrackToUtc.HasValue; } /// /// Gets and sets the property DBClusterIdentifier. /// /// The DB cluster identifier of the DB cluster to be backtracked. This parameter is stored /// as a lowercase string. /// /// /// /// Constraints: /// /// /// /// Example: my-cluster1 /// /// [AWSProperty(Required=true)] 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 Force. /// /// A value that indicates whether to force the DB cluster to backtrack when binary logging /// is enabled. Otherwise, an error occurs when binary logging is enabled. /// /// public bool Force { get { return this._force.GetValueOrDefault(); } set { this._force = value; } } // Check to see if Force property is set internal bool IsSetForce() { return this._force.HasValue; } /// /// Gets and sets the property UseEarliestTimeOnPointInTimeUnavailable. /// /// A value that indicates whether to backtrack the DB cluster to the earliest possible /// backtrack time when BacktrackTo is set to a timestamp earlier than the earliest /// backtrack time. When this parameter is disabled and BacktrackTo is set to a /// timestamp earlier than the earliest backtrack time, an error occurs. /// /// public bool UseEarliestTimeOnPointInTimeUnavailable { get { return this._useEarliestTimeOnPointInTimeUnavailable.GetValueOrDefault(); } set { this._useEarliestTimeOnPointInTimeUnavailable = value; } } // Check to see if UseEarliestTimeOnPointInTimeUnavailable property is set internal bool IsSetUseEarliestTimeOnPointInTimeUnavailable() { return this._useEarliestTimeOnPointInTimeUnavailable.HasValue; } #region Backwards compatible properties private DateTime? _backtrackTo; /// /// Gets and sets the property BacktrackToUtc. /// /// This property is deprecated. Setting this property results in non-UTC DateTimes not /// being marshalled correctly. Use BacktrackToUtc instead. Setting either BacktrackTo /// or BacktrackToUtc results in both BacktrackTo and BacktrackToUtc being assigned, the /// latest assignment to either one of the two property is reflected in the value of both. /// BacktrackTo is provided for backwards compatibility only and assigning a non-Utc DateTime /// to it results in the wrong timestamp being passed to the service. /// /// /// /// The timestamp of the time to backtrack the DB cluster to, specified in ISO 8601 format. /// For more information about ISO 8601, see the ISO8601 /// Wikipedia page. /// /// /// /// If the specified time isn't a consistent time for the DB cluster, Aurora automatically /// chooses the nearest possible consistent time for the DB cluster. /// /// /// /// Constraints: /// /// /// /// Example: 2017-07-08T18:00Z /// /// [Obsolete("Setting this property results in non-UTC DateTimes not being marshalled correctly. " + "Use BacktrackToUtc instead. Setting either BacktrackTo or BacktrackToUtc results in both BacktrackTo and " + "BacktrackToUtc being assigned, the latest assignment to either one of the two property is " + "reflected in the value of both. BacktrackTo is provided for backwards compatibility only and " + "assigning a non-Utc DateTime to it results in the wrong timestamp being passed to the service.", false)] public DateTime BacktrackTo { get { return this._backtrackTo.GetValueOrDefault(); } set { this._backtrackTo = value; this._backtrackToUtc = new DateTime(value.Ticks, DateTimeKind.Utc); } } #endregion } }