pub struct Builder { /* private fields */ }
Expand description
A builder for NodeGroupConfiguration
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn node_group_id(self, input: impl Into<String>) -> Self
pub fn node_group_id(self, input: impl Into<String>) -> Self
Either the ElastiCache for Redis supplied 4-digit id or a user supplied id for the node group these configuration values apply to.
sourcepub fn set_node_group_id(self, input: Option<String>) -> Self
pub fn set_node_group_id(self, input: Option<String>) -> Self
Either the ElastiCache for Redis supplied 4-digit id or a user supplied id for the node group these configuration values apply to.
sourcepub fn slots(self, input: impl Into<String>) -> Self
pub fn slots(self, input: impl Into<String>) -> Self
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"
sourcepub fn set_slots(self, input: Option<String>) -> Self
pub fn set_slots(self, input: Option<String>) -> Self
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"
sourcepub fn replica_count(self, input: i32) -> Self
pub fn replica_count(self, input: i32) -> Self
The number of read replica nodes in this node group (shard).
sourcepub fn set_replica_count(self, input: Option<i32>) -> Self
pub fn set_replica_count(self, input: Option<i32>) -> Self
The number of read replica nodes in this node group (shard).
sourcepub fn primary_availability_zone(self, input: impl Into<String>) -> Self
pub fn primary_availability_zone(self, input: impl Into<String>) -> Self
The Availability Zone where the primary node of this node group (shard) is launched.
sourcepub fn set_primary_availability_zone(self, input: Option<String>) -> Self
pub fn set_primary_availability_zone(self, input: Option<String>) -> Self
The Availability Zone where the primary node of this node group (shard) is launched.
sourcepub fn replica_availability_zones(self, input: impl Into<String>) -> Self
pub fn replica_availability_zones(self, input: impl Into<String>) -> Self
Appends an item to replica_availability_zones
.
To override the contents of this collection use set_replica_availability_zones
.
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.
sourcepub fn set_replica_availability_zones(self, input: Option<Vec<String>>) -> Self
pub fn set_replica_availability_zones(self, input: Option<Vec<String>>) -> Self
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.
sourcepub fn primary_outpost_arn(self, input: impl Into<String>) -> Self
pub fn primary_outpost_arn(self, input: impl Into<String>) -> Self
The outpost ARN of the primary node.
sourcepub fn set_primary_outpost_arn(self, input: Option<String>) -> Self
pub fn set_primary_outpost_arn(self, input: Option<String>) -> Self
The outpost ARN of the primary node.
sourcepub fn replica_outpost_arns(self, input: impl Into<String>) -> Self
pub fn replica_outpost_arns(self, input: impl Into<String>) -> Self
Appends an item to replica_outpost_arns
.
To override the contents of this collection use set_replica_outpost_arns
.
The outpost ARN of the node replicas.
sourcepub fn set_replica_outpost_arns(self, input: Option<Vec<String>>) -> Self
pub fn set_replica_outpost_arns(self, input: Option<Vec<String>>) -> Self
The outpost ARN of the node replicas.
sourcepub fn build(self) -> NodeGroupConfiguration
pub fn build(self) -> NodeGroupConfiguration
Consumes the builder and constructs a NodeGroupConfiguration
.