/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace ElastiCache { namespace Model { /** */ class ModifyGlobalReplicationGroupRequest : public ElastiCacheRequest { public: AWS_ELASTICACHE_API ModifyGlobalReplicationGroupRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ModifyGlobalReplicationGroup"; } AWS_ELASTICACHE_API Aws::String SerializePayload() const override; protected: AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The name of the Global datastore

*/ inline const Aws::String& GetGlobalReplicationGroupId() const{ return m_globalReplicationGroupId; } /** *

The name of the Global datastore

*/ inline bool GlobalReplicationGroupIdHasBeenSet() const { return m_globalReplicationGroupIdHasBeenSet; } /** *

The name of the Global datastore

*/ inline void SetGlobalReplicationGroupId(const Aws::String& value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId = value; } /** *

The name of the Global datastore

*/ inline void SetGlobalReplicationGroupId(Aws::String&& value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId = std::move(value); } /** *

The name of the Global datastore

*/ inline void SetGlobalReplicationGroupId(const char* value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId.assign(value); } /** *

The name of the Global datastore

*/ inline ModifyGlobalReplicationGroupRequest& WithGlobalReplicationGroupId(const Aws::String& value) { SetGlobalReplicationGroupId(value); return *this;} /** *

The name of the Global datastore

*/ inline ModifyGlobalReplicationGroupRequest& WithGlobalReplicationGroupId(Aws::String&& value) { SetGlobalReplicationGroupId(std::move(value)); return *this;} /** *

The name of the Global datastore

*/ inline ModifyGlobalReplicationGroupRequest& WithGlobalReplicationGroupId(const char* value) { SetGlobalReplicationGroupId(value); return *this;} /** *

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.

*/ inline bool GetApplyImmediately() const{ return m_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.

*/ inline bool ApplyImmediatelyHasBeenSet() const { return m_applyImmediatelyHasBeenSet; } /** *

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.

*/ inline void SetApplyImmediately(bool value) { m_applyImmediatelyHasBeenSet = true; m_applyImmediately = value; } /** *

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.

*/ inline ModifyGlobalReplicationGroupRequest& WithApplyImmediately(bool value) { SetApplyImmediately(value); return *this;} /** *

A valid cache node type that you want to scale this Global datastore to.

*/ inline const Aws::String& GetCacheNodeType() const{ return m_cacheNodeType; } /** *

A valid cache node type that you want to scale this Global datastore to.

*/ inline bool CacheNodeTypeHasBeenSet() const { return m_cacheNodeTypeHasBeenSet; } /** *

A valid cache node type that you want to scale this Global datastore to.

*/ inline void SetCacheNodeType(const Aws::String& value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType = value; } /** *

A valid cache node type that you want to scale this Global datastore to.

*/ inline void SetCacheNodeType(Aws::String&& value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType = std::move(value); } /** *

A valid cache node type that you want to scale this Global datastore to.

*/ inline void SetCacheNodeType(const char* value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType.assign(value); } /** *

A valid cache node type that you want to scale this Global datastore to.

*/ inline ModifyGlobalReplicationGroupRequest& WithCacheNodeType(const Aws::String& value) { SetCacheNodeType(value); return *this;} /** *

A valid cache node type that you want to scale this Global datastore to.

*/ inline ModifyGlobalReplicationGroupRequest& WithCacheNodeType(Aws::String&& value) { SetCacheNodeType(std::move(value)); return *this;} /** *

A valid cache node type that you want to scale this Global datastore to.

*/ inline ModifyGlobalReplicationGroupRequest& WithCacheNodeType(const char* value) { SetCacheNodeType(value); return *this;} /** *

The upgraded version of the cache engine to be run on the clusters in the * Global datastore.

*/ inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; } /** *

The upgraded version of the cache engine to be run on the clusters in the * Global datastore.

*/ inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; } /** *

The upgraded version of the cache engine to be run on the clusters in the * Global datastore.

*/ inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; } /** *

The upgraded version of the cache engine to be run on the clusters in the * Global datastore.

*/ inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); } /** *

The upgraded version of the cache engine to be run on the clusters in the * Global datastore.

*/ inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); } /** *

The upgraded version of the cache engine to be run on the clusters in the * Global datastore.

*/ inline ModifyGlobalReplicationGroupRequest& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;} /** *

The upgraded version of the cache engine to be run on the clusters in the * Global datastore.

*/ inline ModifyGlobalReplicationGroupRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;} /** *

The upgraded version of the cache engine to be run on the clusters in the * Global datastore.

*/ inline ModifyGlobalReplicationGroupRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;} /** *

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.

*/ inline const Aws::String& GetCacheParameterGroupName() const{ return m_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.

*/ inline bool CacheParameterGroupNameHasBeenSet() const { return m_cacheParameterGroupNameHasBeenSet; } /** *

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.

*/ inline void SetCacheParameterGroupName(const Aws::String& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = value; } /** *

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.

*/ inline void SetCacheParameterGroupName(Aws::String&& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = std::move(value); } /** *

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.

*/ inline void SetCacheParameterGroupName(const char* value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName.assign(value); } /** *

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.

*/ inline ModifyGlobalReplicationGroupRequest& WithCacheParameterGroupName(const Aws::String& value) { SetCacheParameterGroupName(value); return *this;} /** *

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.

*/ inline ModifyGlobalReplicationGroupRequest& WithCacheParameterGroupName(Aws::String&& value) { SetCacheParameterGroupName(std::move(value)); return *this;} /** *

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.

*/ inline ModifyGlobalReplicationGroupRequest& WithCacheParameterGroupName(const char* value) { SetCacheParameterGroupName(value); return *this;} /** *

A description of the Global datastore

*/ inline const Aws::String& GetGlobalReplicationGroupDescription() const{ return m_globalReplicationGroupDescription; } /** *

A description of the Global datastore

*/ inline bool GlobalReplicationGroupDescriptionHasBeenSet() const { return m_globalReplicationGroupDescriptionHasBeenSet; } /** *

A description of the Global datastore

*/ inline void SetGlobalReplicationGroupDescription(const Aws::String& value) { m_globalReplicationGroupDescriptionHasBeenSet = true; m_globalReplicationGroupDescription = value; } /** *

A description of the Global datastore

*/ inline void SetGlobalReplicationGroupDescription(Aws::String&& value) { m_globalReplicationGroupDescriptionHasBeenSet = true; m_globalReplicationGroupDescription = std::move(value); } /** *

A description of the Global datastore

*/ inline void SetGlobalReplicationGroupDescription(const char* value) { m_globalReplicationGroupDescriptionHasBeenSet = true; m_globalReplicationGroupDescription.assign(value); } /** *

A description of the Global datastore

*/ inline ModifyGlobalReplicationGroupRequest& WithGlobalReplicationGroupDescription(const Aws::String& value) { SetGlobalReplicationGroupDescription(value); return *this;} /** *

A description of the Global datastore

*/ inline ModifyGlobalReplicationGroupRequest& WithGlobalReplicationGroupDescription(Aws::String&& value) { SetGlobalReplicationGroupDescription(std::move(value)); return *this;} /** *

A description of the Global datastore

*/ inline ModifyGlobalReplicationGroupRequest& WithGlobalReplicationGroupDescription(const char* value) { SetGlobalReplicationGroupDescription(value); return *this;} /** *

Determines whether a read replica is automatically promoted to read/write * primary if the existing primary encounters a failure.

*/ inline bool GetAutomaticFailoverEnabled() const{ return m_automaticFailoverEnabled; } /** *

Determines whether a read replica is automatically promoted to read/write * primary if the existing primary encounters a failure.

*/ inline bool AutomaticFailoverEnabledHasBeenSet() const { return m_automaticFailoverEnabledHasBeenSet; } /** *

Determines whether a read replica is automatically promoted to read/write * primary if the existing primary encounters a failure.

*/ inline void SetAutomaticFailoverEnabled(bool value) { m_automaticFailoverEnabledHasBeenSet = true; m_automaticFailoverEnabled = value; } /** *

Determines whether a read replica is automatically promoted to read/write * primary if the existing primary encounters a failure.

*/ inline ModifyGlobalReplicationGroupRequest& WithAutomaticFailoverEnabled(bool value) { SetAutomaticFailoverEnabled(value); return *this;} private: Aws::String m_globalReplicationGroupId; bool m_globalReplicationGroupIdHasBeenSet = false; bool m_applyImmediately; bool m_applyImmediatelyHasBeenSet = false; Aws::String m_cacheNodeType; bool m_cacheNodeTypeHasBeenSet = false; Aws::String m_engineVersion; bool m_engineVersionHasBeenSet = false; Aws::String m_cacheParameterGroupName; bool m_cacheParameterGroupNameHasBeenSet = false; Aws::String m_globalReplicationGroupDescription; bool m_globalReplicationGroupDescriptionHasBeenSet = false; bool m_automaticFailoverEnabled; bool m_automaticFailoverEnabledHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws