/*
* 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 elasticache-2015-02-02.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.ElastiCache.Model
{
///
/// Container for the parameters to the ModifyGlobalReplicationGroup operation.
/// Modifies the settings for a Global datastore.
///
public partial class ModifyGlobalReplicationGroupRequest : AmazonElastiCacheRequest
{
private bool? _applyImmediately;
private bool? _automaticFailoverEnabled;
private string _cacheNodeType;
private string _cacheParameterGroupName;
private string _engineVersion;
private string _globalReplicationGroupDescription;
private string _globalReplicationGroupId;
///
/// Gets and sets the property ApplyImmediately.
///
/// This parameter causes the modifications in this request and any pending modifications
/// to be applied, asynchronously and as soon as possible. Modifications to Global Replication
/// Groups cannot be requested to be applied in PreferredMaintenceWindow.
///
///
[AWSProperty(Required=true)]
public bool ApplyImmediately
{
get { return this._applyImmediately.GetValueOrDefault(); }
set { this._applyImmediately = value; }
}
// Check to see if ApplyImmediately property is set
internal bool IsSetApplyImmediately()
{
return this._applyImmediately.HasValue;
}
///
/// Gets and sets the property AutomaticFailoverEnabled.
///
/// Determines whether a read replica is automatically promoted to read/write primary
/// if the existing primary encounters a failure.
///
///
public bool AutomaticFailoverEnabled
{
get { return this._automaticFailoverEnabled.GetValueOrDefault(); }
set { this._automaticFailoverEnabled = value; }
}
// Check to see if AutomaticFailoverEnabled property is set
internal bool IsSetAutomaticFailoverEnabled()
{
return this._automaticFailoverEnabled.HasValue;
}
///
/// Gets and sets the property CacheNodeType.
///
/// A valid cache node type that you want to scale this Global datastore to.
///
///
public string CacheNodeType
{
get { return this._cacheNodeType; }
set { this._cacheNodeType = value; }
}
// Check to see if CacheNodeType property is set
internal bool IsSetCacheNodeType()
{
return this._cacheNodeType != null;
}
///
/// Gets and sets the property CacheParameterGroupName.
///
/// The name of the cache parameter group to use with the Global datastore. It must be
/// compatible with the major engine version used by the Global datastore.
///
///
public string CacheParameterGroupName
{
get { return this._cacheParameterGroupName; }
set { this._cacheParameterGroupName = value; }
}
// Check to see if CacheParameterGroupName property is set
internal bool IsSetCacheParameterGroupName()
{
return this._cacheParameterGroupName != null;
}
///
/// Gets and sets the property EngineVersion.
///
/// The upgraded version of the cache engine to be run on the clusters in the Global datastore.
///
///
///
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 GlobalReplicationGroupDescription.
///
/// A description of the Global datastore
///
///
public string GlobalReplicationGroupDescription
{
get { return this._globalReplicationGroupDescription; }
set { this._globalReplicationGroupDescription = value; }
}
// Check to see if GlobalReplicationGroupDescription property is set
internal bool IsSetGlobalReplicationGroupDescription()
{
return this._globalReplicationGroupDescription != null;
}
///
/// Gets and sets the property GlobalReplicationGroupId.
///
/// The name of the Global datastore
///
///
[AWSProperty(Required=true)]
public string GlobalReplicationGroupId
{
get { return this._globalReplicationGroupId; }
set { this._globalReplicationGroupId = value; }
}
// Check to see if GlobalReplicationGroupId property is set
internal bool IsSetGlobalReplicationGroupId()
{
return this._globalReplicationGroupId != null;
}
}
}