Struct aws_sdk_elasticache::operation::decrease_replica_count::builders::DecreaseReplicaCountInputBuilder
source · #[non_exhaustive]pub struct DecreaseReplicaCountInputBuilder { /* private fields */ }
Expand description
A builder for DecreaseReplicaCountInput
.
Implementations§
source§impl DecreaseReplicaCountInputBuilder
impl DecreaseReplicaCountInputBuilder
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 from which you want to remove 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 from which you want to remove 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 from which you want to remove 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.
The minimum number of replicas in a shard or replication group is:
-
Redis (cluster mode disabled)
-
If Multi-AZ is enabled: 1
-
If Multi-AZ is not enabled: 0
-
-
Redis (cluster mode enabled): 0 (though you will not be able to failover to a replica if your primary node fails)
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.
The minimum number of replicas in a shard or replication group is:
-
Redis (cluster mode disabled)
-
If Multi-AZ is enabled: 1
-
If Multi-AZ is not enabled: 0
-
-
Redis (cluster mode enabled): 0 (though you will not be able to failover to a replica if your primary node fails)
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.
The minimum number of replicas in a shard or replication group is:
-
Redis (cluster mode disabled)
-
If Multi-AZ is enabled: 1
-
If Multi-AZ is not enabled: 0
-
-
Redis (cluster mode enabled): 0 (though you will not be able to failover to a replica if your primary node fails)
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 replicas_to_remove(self, input: impl Into<String>) -> Self
pub fn replicas_to_remove(self, input: impl Into<String>) -> Self
Appends an item to replicas_to_remove
.
To override the contents of this collection use set_replicas_to_remove
.
A list of the node ids to remove from the replication group or node group (shard).
sourcepub fn set_replicas_to_remove(self, input: Option<Vec<String>>) -> Self
pub fn set_replicas_to_remove(self, input: Option<Vec<String>>) -> Self
A list of the node ids to remove from the replication group or node group (shard).
sourcepub fn get_replicas_to_remove(&self) -> &Option<Vec<String>>
pub fn get_replicas_to_remove(&self) -> &Option<Vec<String>>
A list of the node ids to remove from the replication group or node group (shard).
sourcepub fn apply_immediately(self, input: bool) -> Self
pub fn apply_immediately(self, input: bool) -> Self
If True
, the number of replica nodes is decreased 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 decreased 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 decreased immediately. ApplyImmediately=False
is not currently supported.
sourcepub fn build(self) -> Result<DecreaseReplicaCountInput, BuildError>
pub fn build(self) -> Result<DecreaseReplicaCountInput, BuildError>
Consumes the builder and constructs a DecreaseReplicaCountInput
.
source§impl DecreaseReplicaCountInputBuilder
impl DecreaseReplicaCountInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DecreaseReplicaCountOutput, SdkError<DecreaseReplicaCountError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DecreaseReplicaCountOutput, SdkError<DecreaseReplicaCountError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DecreaseReplicaCountInputBuilder
impl Clone for DecreaseReplicaCountInputBuilder
source§fn clone(&self) -> DecreaseReplicaCountInputBuilder
fn clone(&self) -> DecreaseReplicaCountInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DecreaseReplicaCountInputBuilder
impl Default for DecreaseReplicaCountInputBuilder
source§fn default() -> DecreaseReplicaCountInputBuilder
fn default() -> DecreaseReplicaCountInputBuilder
source§impl PartialEq for DecreaseReplicaCountInputBuilder
impl PartialEq for DecreaseReplicaCountInputBuilder
source§fn eq(&self, other: &DecreaseReplicaCountInputBuilder) -> bool
fn eq(&self, other: &DecreaseReplicaCountInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DecreaseReplicaCountInputBuilder
Auto Trait Implementations§
impl Freeze for DecreaseReplicaCountInputBuilder
impl RefUnwindSafe for DecreaseReplicaCountInputBuilder
impl Send for DecreaseReplicaCountInputBuilder
impl Sync for DecreaseReplicaCountInputBuilder
impl Unpin for DecreaseReplicaCountInputBuilder
impl UnwindSafe for DecreaseReplicaCountInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more