Struct aws_sdk_rds::operation::modify_current_db_cluster_capacity::builders::ModifyCurrentDbClusterCapacityInputBuilder
source · #[non_exhaustive]pub struct ModifyCurrentDbClusterCapacityInputBuilder { /* private fields */ }Expand description
A builder for ModifyCurrentDbClusterCapacityInput.
Implementations§
source§impl ModifyCurrentDbClusterCapacityInputBuilder
impl ModifyCurrentDbClusterCapacityInputBuilder
sourcepub fn db_cluster_identifier(self, input: impl Into<String>) -> Self
pub fn db_cluster_identifier(self, input: impl Into<String>) -> Self
The DB cluster identifier for the cluster being modified. This parameter isn't case-sensitive.
Constraints:
-
Must match the identifier of an existing DB cluster.
sourcepub fn set_db_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_db_cluster_identifier(self, input: Option<String>) -> Self
The DB cluster identifier for the cluster being modified. This parameter isn't case-sensitive.
Constraints:
-
Must match the identifier of an existing DB cluster.
sourcepub fn get_db_cluster_identifier(&self) -> &Option<String>
pub fn get_db_cluster_identifier(&self) -> &Option<String>
The DB cluster identifier for the cluster being modified. This parameter isn't case-sensitive.
Constraints:
-
Must match the identifier of an existing DB cluster.
sourcepub fn capacity(self, input: i32) -> Self
pub fn capacity(self, input: i32) -> Self
The DB cluster capacity.
When you change the capacity of a paused Aurora Serverless v1 DB cluster, it automatically resumes.
Constraints:
-
For Aurora MySQL, valid capacity values are
1,2,4,8,16,32,64,128, and256. -
For Aurora PostgreSQL, valid capacity values are
2,4,8,16,32,64,192, and384.
sourcepub fn set_capacity(self, input: Option<i32>) -> Self
pub fn set_capacity(self, input: Option<i32>) -> Self
The DB cluster capacity.
When you change the capacity of a paused Aurora Serverless v1 DB cluster, it automatically resumes.
Constraints:
-
For Aurora MySQL, valid capacity values are
1,2,4,8,16,32,64,128, and256. -
For Aurora PostgreSQL, valid capacity values are
2,4,8,16,32,64,192, and384.
sourcepub fn get_capacity(&self) -> &Option<i32>
pub fn get_capacity(&self) -> &Option<i32>
The DB cluster capacity.
When you change the capacity of a paused Aurora Serverless v1 DB cluster, it automatically resumes.
Constraints:
-
For Aurora MySQL, valid capacity values are
1,2,4,8,16,32,64,128, and256. -
For Aurora PostgreSQL, valid capacity values are
2,4,8,16,32,64,192, and384.
sourcepub fn seconds_before_timeout(self, input: i32) -> Self
pub fn seconds_before_timeout(self, input: i32) -> Self
The amount of time, in seconds, that Aurora Serverless v1 tries to find a scaling point to perform seamless scaling before enforcing the timeout action. The default is 300.
Specify a value between 10 and 600 seconds.
sourcepub fn set_seconds_before_timeout(self, input: Option<i32>) -> Self
pub fn set_seconds_before_timeout(self, input: Option<i32>) -> Self
The amount of time, in seconds, that Aurora Serverless v1 tries to find a scaling point to perform seamless scaling before enforcing the timeout action. The default is 300.
Specify a value between 10 and 600 seconds.
sourcepub fn get_seconds_before_timeout(&self) -> &Option<i32>
pub fn get_seconds_before_timeout(&self) -> &Option<i32>
The amount of time, in seconds, that Aurora Serverless v1 tries to find a scaling point to perform seamless scaling before enforcing the timeout action. The default is 300.
Specify a value between 10 and 600 seconds.
sourcepub fn timeout_action(self, input: impl Into<String>) -> Self
pub fn timeout_action(self, input: impl Into<String>) -> Self
The action to take when the timeout is reached, either ForceApplyCapacityChange or RollbackCapacityChange.
ForceApplyCapacityChange, the default, sets the capacity to the specified value as soon as possible.
RollbackCapacityChange ignores the capacity change if a scaling point isn't found in the timeout period.
sourcepub fn set_timeout_action(self, input: Option<String>) -> Self
pub fn set_timeout_action(self, input: Option<String>) -> Self
The action to take when the timeout is reached, either ForceApplyCapacityChange or RollbackCapacityChange.
ForceApplyCapacityChange, the default, sets the capacity to the specified value as soon as possible.
RollbackCapacityChange ignores the capacity change if a scaling point isn't found in the timeout period.
sourcepub fn get_timeout_action(&self) -> &Option<String>
pub fn get_timeout_action(&self) -> &Option<String>
The action to take when the timeout is reached, either ForceApplyCapacityChange or RollbackCapacityChange.
ForceApplyCapacityChange, the default, sets the capacity to the specified value as soon as possible.
RollbackCapacityChange ignores the capacity change if a scaling point isn't found in the timeout period.
sourcepub fn build(self) -> Result<ModifyCurrentDbClusterCapacityInput, BuildError>
pub fn build(self) -> Result<ModifyCurrentDbClusterCapacityInput, BuildError>
Consumes the builder and constructs a ModifyCurrentDbClusterCapacityInput.
source§impl ModifyCurrentDbClusterCapacityInputBuilder
impl ModifyCurrentDbClusterCapacityInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ModifyCurrentDbClusterCapacityOutput, SdkError<ModifyCurrentDBClusterCapacityError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ModifyCurrentDbClusterCapacityOutput, SdkError<ModifyCurrentDBClusterCapacityError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ModifyCurrentDbClusterCapacityInputBuilder
impl Clone for ModifyCurrentDbClusterCapacityInputBuilder
source§fn clone(&self) -> ModifyCurrentDbClusterCapacityInputBuilder
fn clone(&self) -> ModifyCurrentDbClusterCapacityInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for ModifyCurrentDbClusterCapacityInputBuilder
impl Default for ModifyCurrentDbClusterCapacityInputBuilder
source§fn default() -> ModifyCurrentDbClusterCapacityInputBuilder
fn default() -> ModifyCurrentDbClusterCapacityInputBuilder
source§impl PartialEq for ModifyCurrentDbClusterCapacityInputBuilder
impl PartialEq for ModifyCurrentDbClusterCapacityInputBuilder
source§fn eq(&self, other: &ModifyCurrentDbClusterCapacityInputBuilder) -> bool
fn eq(&self, other: &ModifyCurrentDbClusterCapacityInputBuilder) -> bool
self and other values to be equal, and is used
by ==.