/* * 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 docdb-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.DocDB.Model { /// /// Container for the parameters to the RebootDBInstance operation. /// You might need to reboot your instance, usually for maintenance reasons. For example, /// if you make certain changes, or if you change the cluster parameter group that is /// associated with the instance, you must reboot the instance for the changes to take /// effect. /// /// /// /// Rebooting an instance restarts the database engine service. Rebooting an instance /// results in a momentary outage, during which the instance status is set to rebooting. /// /// /// public partial class RebootDBInstanceRequest : AmazonDocDBRequest { private string _dbInstanceIdentifier; private bool? _forceFailover; /// /// Gets and sets the property DBInstanceIdentifier. /// /// The instance identifier. This parameter is stored as a lowercase string. /// /// /// /// Constraints: /// /// /// [AWSProperty(Required=true)] public string DBInstanceIdentifier { get { return this._dbInstanceIdentifier; } set { this._dbInstanceIdentifier = value; } } // Check to see if DBInstanceIdentifier property is set internal bool IsSetDBInstanceIdentifier() { return this._dbInstanceIdentifier != null; } /// /// Gets and sets the property ForceFailover. /// /// When true, the reboot is conducted through a Multi-AZ failover. /// /// /// /// Constraint: You can't specify true if the instance is not configured /// for Multi-AZ. /// /// public bool ForceFailover { get { return this._forceFailover.GetValueOrDefault(); } set { this._forceFailover = value; } } // Check to see if ForceFailover property is set internal bool IsSetForceFailover() { return this._forceFailover.HasValue; } } }