Struct aws_sdk_elasticache::operation::increase_replica_count::builders::IncreaseReplicaCountInputBuilder
source · #[non_exhaustive]pub struct IncreaseReplicaCountInputBuilder { /* private fields */ }
Expand description
A builder for IncreaseReplicaCountInput
.
Implementations§
source§impl IncreaseReplicaCountInputBuilder
impl IncreaseReplicaCountInputBuilder
sourcepub fn replication_group_id(self, input: impl Into<String>) -> Self
pub fn replication_group_id(self, input: impl Into<String>) -> Self
The id of the replication group to which you want to add replica nodes.
This field is required.sourcepub fn set_replication_group_id(self, input: Option<String>) -> Self
pub fn set_replication_group_id(self, input: Option<String>) -> Self
The id of the replication group to which you want to add replica nodes.
sourcepub fn get_replication_group_id(&self) -> &Option<String>
pub fn get_replication_group_id(&self) -> &Option<String>
The id of the replication group to which you want to add replica nodes.
sourcepub fn new_replica_count(self, input: i32) -> Self
pub fn new_replica_count(self, input: i32) -> Self
The number of read replica nodes you want at the completion of this operation. For Redis (cluster mode disabled) replication groups, this is the number of replica nodes in the replication group. For Redis (cluster mode enabled) replication groups, this is the number of replica nodes in each of the replication group's node groups.
sourcepub fn set_new_replica_count(self, input: Option<i32>) -> Self
pub fn set_new_replica_count(self, input: Option<i32>) -> Self
The number of read replica nodes you want at the completion of this operation. For Redis (cluster mode disabled) replication groups, this is the number of replica nodes in the replication group. For Redis (cluster mode enabled) replication groups, this is the number of replica nodes in each of the replication group's node groups.
sourcepub fn get_new_replica_count(&self) -> &Option<i32>
pub fn get_new_replica_count(&self) -> &Option<i32>
The number of read replica nodes you want at the completion of this operation. For Redis (cluster mode disabled) replication groups, this is the number of replica nodes in the replication group. For Redis (cluster mode enabled) replication groups, this is the number of replica nodes in each of the replication group's node groups.
sourcepub fn replica_configuration(self, input: ConfigureShard) -> Self
pub fn replica_configuration(self, input: ConfigureShard) -> Self
Appends an item to replica_configuration
.
To override the contents of this collection use set_replica_configuration
.
A list of ConfigureShard
objects that can be used to configure each shard in a Redis (cluster mode enabled) replication group. The ConfigureShard
has three members: NewReplicaCount
, NodeGroupId
, and PreferredAvailabilityZones
.
sourcepub fn set_replica_configuration(
self,
input: Option<Vec<ConfigureShard>>
) -> Self
pub fn set_replica_configuration( self, input: Option<Vec<ConfigureShard>> ) -> Self
A list of ConfigureShard
objects that can be used to configure each shard in a Redis (cluster mode enabled) replication group. The ConfigureShard
has three members: NewReplicaCount
, NodeGroupId
, and PreferredAvailabilityZones
.
sourcepub fn get_replica_configuration(&self) -> &Option<Vec<ConfigureShard>>
pub fn get_replica_configuration(&self) -> &Option<Vec<ConfigureShard>>
A list of ConfigureShard
objects that can be used to configure each shard in a Redis (cluster mode enabled) replication group. The ConfigureShard
has three members: NewReplicaCount
, NodeGroupId
, and PreferredAvailabilityZones
.
sourcepub fn apply_immediately(self, input: bool) -> Self
pub fn apply_immediately(self, input: bool) -> Self
If True
, the number of replica nodes is increased immediately. ApplyImmediately=False
is not currently supported.
sourcepub fn set_apply_immediately(self, input: Option<bool>) -> Self
pub fn set_apply_immediately(self, input: Option<bool>) -> Self
If True
, the number of replica nodes is increased immediately. ApplyImmediately=False
is not currently supported.
sourcepub fn get_apply_immediately(&self) -> &Option<bool>
pub fn get_apply_immediately(&self) -> &Option<bool>
If True
, the number of replica nodes is increased immediately. ApplyImmediately=False
is not currently supported.
sourcepub fn build(self) -> Result<IncreaseReplicaCountInput, BuildError>
pub fn build(self) -> Result<IncreaseReplicaCountInput, BuildError>
Consumes the builder and constructs a IncreaseReplicaCountInput
.
source§impl IncreaseReplicaCountInputBuilder
impl IncreaseReplicaCountInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<IncreaseReplicaCountOutput, SdkError<IncreaseReplicaCountError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<IncreaseReplicaCountOutput, SdkError<IncreaseReplicaCountError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for IncreaseReplicaCountInputBuilder
impl Clone for IncreaseReplicaCountInputBuilder
source§fn clone(&self) -> IncreaseReplicaCountInputBuilder
fn clone(&self) -> IncreaseReplicaCountInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for IncreaseReplicaCountInputBuilder
impl Default for IncreaseReplicaCountInputBuilder
source§fn default() -> IncreaseReplicaCountInputBuilder
fn default() -> IncreaseReplicaCountInputBuilder
source§impl PartialEq for IncreaseReplicaCountInputBuilder
impl PartialEq for IncreaseReplicaCountInputBuilder
source§fn eq(&self, other: &IncreaseReplicaCountInputBuilder) -> bool
fn eq(&self, other: &IncreaseReplicaCountInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.