/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Node group (shard) configuration options. Each node group (shard)
* configuration has the following: Slots,
* PrimaryAvailabilityZone, ReplicaAvailabilityZones,
* ReplicaCount.See Also:
AWS
* API Reference
Either the ElastiCache for Redis supplied 4-digit id or a user supplied id * for the node group these configuration values apply to.
*/ inline const Aws::String& GetNodeGroupId() const{ return m_nodeGroupId; } /** *Either the ElastiCache for Redis supplied 4-digit id or a user supplied id * for the node group these configuration values apply to.
*/ inline bool NodeGroupIdHasBeenSet() const { return m_nodeGroupIdHasBeenSet; } /** *Either the ElastiCache for Redis supplied 4-digit id or a user supplied id * for the node group these configuration values apply to.
*/ inline void SetNodeGroupId(const Aws::String& value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId = value; } /** *Either the ElastiCache for Redis supplied 4-digit id or a user supplied id * for the node group these configuration values apply to.
*/ inline void SetNodeGroupId(Aws::String&& value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId = std::move(value); } /** *Either the ElastiCache for Redis supplied 4-digit id or a user supplied id * for the node group these configuration values apply to.
*/ inline void SetNodeGroupId(const char* value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId.assign(value); } /** *Either the ElastiCache for Redis supplied 4-digit id or a user supplied id * for the node group these configuration values apply to.
*/ inline NodeGroupConfiguration& WithNodeGroupId(const Aws::String& value) { SetNodeGroupId(value); return *this;} /** *Either the ElastiCache for Redis supplied 4-digit id or a user supplied id * for the node group these configuration values apply to.
*/ inline NodeGroupConfiguration& WithNodeGroupId(Aws::String&& value) { SetNodeGroupId(std::move(value)); return *this;} /** *Either the ElastiCache for Redis supplied 4-digit id or a user supplied id * for the node group these configuration values apply to.
*/ inline NodeGroupConfiguration& WithNodeGroupId(const char* value) { SetNodeGroupId(value); return *this;} /** *A string that specifies the keyspace for a particular node group. Keyspaces
* range from 0 to 16,383. The string is in the format
* startkey-endkey.
Example: "0-3999"
A string that specifies the keyspace for a particular node group. Keyspaces
* range from 0 to 16,383. The string is in the format
* startkey-endkey.
Example: "0-3999"
A string that specifies the keyspace for a particular node group. Keyspaces
* range from 0 to 16,383. The string is in the format
* startkey-endkey.
Example: "0-3999"
A string that specifies the keyspace for a particular node group. Keyspaces
* range from 0 to 16,383. The string is in the format
* startkey-endkey.
Example: "0-3999"
A string that specifies the keyspace for a particular node group. Keyspaces
* range from 0 to 16,383. The string is in the format
* startkey-endkey.
Example: "0-3999"
A string that specifies the keyspace for a particular node group. Keyspaces
* range from 0 to 16,383. The string is in the format
* startkey-endkey.
Example: "0-3999"
A string that specifies the keyspace for a particular node group. Keyspaces
* range from 0 to 16,383. The string is in the format
* startkey-endkey.
Example: "0-3999"
A string that specifies the keyspace for a particular node group. Keyspaces
* range from 0 to 16,383. The string is in the format
* startkey-endkey.
Example: "0-3999"
The number of read replica nodes in this node group (shard).
*/ inline int GetReplicaCount() const{ return m_replicaCount; } /** *The number of read replica nodes in this node group (shard).
*/ inline bool ReplicaCountHasBeenSet() const { return m_replicaCountHasBeenSet; } /** *The number of read replica nodes in this node group (shard).
*/ inline void SetReplicaCount(int value) { m_replicaCountHasBeenSet = true; m_replicaCount = value; } /** *The number of read replica nodes in this node group (shard).
*/ inline NodeGroupConfiguration& WithReplicaCount(int value) { SetReplicaCount(value); return *this;} /** *The Availability Zone where the primary node of this node group (shard) is * launched.
*/ inline const Aws::String& GetPrimaryAvailabilityZone() const{ return m_primaryAvailabilityZone; } /** *The Availability Zone where the primary node of this node group (shard) is * launched.
*/ inline bool PrimaryAvailabilityZoneHasBeenSet() const { return m_primaryAvailabilityZoneHasBeenSet; } /** *The Availability Zone where the primary node of this node group (shard) is * launched.
*/ inline void SetPrimaryAvailabilityZone(const Aws::String& value) { m_primaryAvailabilityZoneHasBeenSet = true; m_primaryAvailabilityZone = value; } /** *The Availability Zone where the primary node of this node group (shard) is * launched.
*/ inline void SetPrimaryAvailabilityZone(Aws::String&& value) { m_primaryAvailabilityZoneHasBeenSet = true; m_primaryAvailabilityZone = std::move(value); } /** *The Availability Zone where the primary node of this node group (shard) is * launched.
*/ inline void SetPrimaryAvailabilityZone(const char* value) { m_primaryAvailabilityZoneHasBeenSet = true; m_primaryAvailabilityZone.assign(value); } /** *The Availability Zone where the primary node of this node group (shard) is * launched.
*/ inline NodeGroupConfiguration& WithPrimaryAvailabilityZone(const Aws::String& value) { SetPrimaryAvailabilityZone(value); return *this;} /** *The Availability Zone where the primary node of this node group (shard) is * launched.
*/ inline NodeGroupConfiguration& WithPrimaryAvailabilityZone(Aws::String&& value) { SetPrimaryAvailabilityZone(std::move(value)); return *this;} /** *The Availability Zone where the primary node of this node group (shard) is * launched.
*/ inline NodeGroupConfiguration& WithPrimaryAvailabilityZone(const char* value) { SetPrimaryAvailabilityZone(value); return *this;} /** *A list of Availability Zones to be used for the read replicas. The number of
* Availability Zones in this list must match the value of
* ReplicaCount or ReplicasPerNodeGroup if not
* specified.
A list of Availability Zones to be used for the read replicas. The number of
* Availability Zones in this list must match the value of
* ReplicaCount or ReplicasPerNodeGroup if not
* specified.
A list of Availability Zones to be used for the read replicas. The number of
* Availability Zones in this list must match the value of
* ReplicaCount or ReplicasPerNodeGroup if not
* specified.
A list of Availability Zones to be used for the read replicas. The number of
* Availability Zones in this list must match the value of
* ReplicaCount or ReplicasPerNodeGroup if not
* specified.
A list of Availability Zones to be used for the read replicas. The number of
* Availability Zones in this list must match the value of
* ReplicaCount or ReplicasPerNodeGroup if not
* specified.
A list of Availability Zones to be used for the read replicas. The number of
* Availability Zones in this list must match the value of
* ReplicaCount or ReplicasPerNodeGroup if not
* specified.
A list of Availability Zones to be used for the read replicas. The number of
* Availability Zones in this list must match the value of
* ReplicaCount or ReplicasPerNodeGroup if not
* specified.
A list of Availability Zones to be used for the read replicas. The number of
* Availability Zones in this list must match the value of
* ReplicaCount or ReplicasPerNodeGroup if not
* specified.
A list of Availability Zones to be used for the read replicas. The number of
* Availability Zones in this list must match the value of
* ReplicaCount or ReplicasPerNodeGroup if not
* specified.