/*
* 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 neptune-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.Neptune.Model
{
///
/// Container for the parameters to the ModifyGlobalCluster operation.
/// Modify a setting for an Amazon Neptune global cluster. You can change one or more
/// database configuration parameters by specifying these parameters and their new values
/// in the request.
///
public partial class ModifyGlobalClusterRequest : AmazonNeptuneRequest
{
private bool? _allowMajorVersionUpgrade;
private bool? _deletionProtection;
private string _engineVersion;
private string _globalClusterIdentifier;
private string _newGlobalClusterIdentifier;
///
/// Gets and sets the property AllowMajorVersionUpgrade.
///
/// A value that indicates whether major version upgrades are allowed.
///
///
///
/// Constraints: You must allow major version upgrades if you specify a value for the
/// EngineVersion
parameter that is a different major version than the DB
/// cluster's current version.
///
///
///
/// If you upgrade the major version of a global database, the cluster and DB instance
/// parameter groups are set to the default parameter groups for the new version, so you
/// will need to apply any custom parameter groups after completing the upgrade.
///
///
public bool AllowMajorVersionUpgrade
{
get { return this._allowMajorVersionUpgrade.GetValueOrDefault(); }
set { this._allowMajorVersionUpgrade = value; }
}
// Check to see if AllowMajorVersionUpgrade property is set
internal bool IsSetAllowMajorVersionUpgrade()
{
return this._allowMajorVersionUpgrade.HasValue;
}
///
/// Gets and sets the property DeletionProtection.
///
/// Indicates whether the global database has deletion protection enabled. The global
/// database cannot be deleted when deletion protection is enabled.
///
///
public bool DeletionProtection
{
get { return this._deletionProtection.GetValueOrDefault(); }
set { this._deletionProtection = value; }
}
// Check to see if DeletionProtection property is set
internal bool IsSetDeletionProtection()
{
return this._deletionProtection.HasValue;
}
///
/// Gets and sets the property EngineVersion.
///
/// The version number of the database engine to which you want to upgrade. Changing this
/// parameter will result in an outage. The change is applied during the next maintenance
/// window unless ApplyImmediately
is enabled.
///
///
///
/// To list all of the available Neptune engine versions, use the following command:
///
///
public string EngineVersion
{
get { return this._engineVersion; }
set { this._engineVersion = value; }
}
// Check to see if EngineVersion property is set
internal bool IsSetEngineVersion()
{
return this._engineVersion != null;
}
///
/// Gets and sets the property GlobalClusterIdentifier.
///
/// The DB cluster identifier for the global cluster being modified. This parameter is
/// not case-sensitive.
///
///
///
/// Constraints: Must match the identifier of an existing global database cluster.
///
///
[AWSProperty(Required=true, Min=1, Max=255)]
public string GlobalClusterIdentifier
{
get { return this._globalClusterIdentifier; }
set { this._globalClusterIdentifier = value; }
}
// Check to see if GlobalClusterIdentifier property is set
internal bool IsSetGlobalClusterIdentifier()
{
return this._globalClusterIdentifier != null;
}
///
/// Gets and sets the property NewGlobalClusterIdentifier.
///
/// A new cluster identifier to assign to the global database. This value is stored as
/// a lowercase string.
///
///
///
/// Constraints:
///
/// -
///
/// Must contain from 1 to 63 letters, numbers, or hyphens.
///
///
-
///
/// The first character must be a letter.
///
///
-
///
/// Can't end with a hyphen or contain two consecutive hyphens
///
///
///
/// Example: my-cluster2
///
///
[AWSProperty(Min=1, Max=255)]
public string NewGlobalClusterIdentifier
{
get { return this._newGlobalClusterIdentifier; }
set { this._newGlobalClusterIdentifier = value; }
}
// Check to see if NewGlobalClusterIdentifier property is set
internal bool IsSetNewGlobalClusterIdentifier()
{
return this._newGlobalClusterIdentifier != null;
}
}
}