/*
* 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 RebootDBInstance operation.
/// You might need to reboot your DB instance, usually for maintenance reasons. For example,
/// if you make certain modifications, or if you change the DB parameter group associated
/// with the DB instance, you must reboot the instance for the changes to take effect.
///
///
///
/// Rebooting a DB instance restarts the database engine service. Rebooting a DB instance
/// results in a momentary outage, during which the DB instance status is set to rebooting.
///
///
///
/// For more information about rebooting, see Rebooting
/// a DB Instance in the Amazon RDS User Guide.
///
///
///
/// This command doesn't apply to RDS Custom.
///
///
///
/// If your DB instance is part of a Multi-AZ DB cluster, you can reboot the DB cluster
/// with the RebootDBCluster
operation.
///
///
public partial class RebootDBInstanceRequest : AmazonRDSRequest
{
private string _dbInstanceIdentifier;
private bool? _forceFailover;
///
/// Empty constructor used to set properties independently even when a simple constructor is available
///
public RebootDBInstanceRequest() { }
///
/// Instantiates RebootDBInstanceRequest with the parameterized properties
///
/// The DB instance identifier. This parameter is stored as a lowercase string. Constraints:
- Must match the identifier of an existing DBInstance.
public RebootDBInstanceRequest(string dbInstanceIdentifier)
{
_dbInstanceIdentifier = dbInstanceIdentifier;
}
///
/// Gets and sets the property DBInstanceIdentifier.
///
/// The DB instance identifier. This parameter is stored as a lowercase string.
///
///
///
/// Constraints:
///
/// -
///
/// Must match the identifier of an existing DBInstance.
///
///
///
[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.
///
/// A value that indicates whether the reboot is conducted through a Multi-AZ failover.
///
///
///
/// Constraint: You can't enable force failover if the instance isn't 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;
}
}
}