Struct aws_sdk_docdb::operation::failover_db_cluster::builders::FailoverDbClusterInputBuilder
source · #[non_exhaustive]pub struct FailoverDbClusterInputBuilder { /* private fields */ }Expand description
A builder for FailoverDbClusterInput.
Implementations§
source§impl FailoverDbClusterInputBuilder
impl FailoverDbClusterInputBuilder
sourcepub fn db_cluster_identifier(self, input: impl Into<String>) -> Self
pub fn db_cluster_identifier(self, input: impl Into<String>) -> Self
A cluster identifier to force a failover for. This parameter is not case sensitive.
Constraints:
-
Must match the identifier of an existing
DBCluster.
sourcepub fn set_db_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_db_cluster_identifier(self, input: Option<String>) -> Self
A cluster identifier to force a failover for. This parameter is not case sensitive.
Constraints:
-
Must match the identifier of an existing
DBCluster.
sourcepub fn get_db_cluster_identifier(&self) -> &Option<String>
pub fn get_db_cluster_identifier(&self) -> &Option<String>
A cluster identifier to force a failover for. This parameter is not case sensitive.
Constraints:
-
Must match the identifier of an existing
DBCluster.
sourcepub fn target_db_instance_identifier(self, input: impl Into<String>) -> Self
pub fn target_db_instance_identifier(self, input: impl Into<String>) -> Self
The name of the instance to promote to the primary instance.
You must specify the instance identifier for an Amazon DocumentDB replica in the cluster. For example, mydbcluster-replica1.
sourcepub fn set_target_db_instance_identifier(self, input: Option<String>) -> Self
pub fn set_target_db_instance_identifier(self, input: Option<String>) -> Self
The name of the instance to promote to the primary instance.
You must specify the instance identifier for an Amazon DocumentDB replica in the cluster. For example, mydbcluster-replica1.
sourcepub fn get_target_db_instance_identifier(&self) -> &Option<String>
pub fn get_target_db_instance_identifier(&self) -> &Option<String>
The name of the instance to promote to the primary instance.
You must specify the instance identifier for an Amazon DocumentDB replica in the cluster. For example, mydbcluster-replica1.
sourcepub fn build(self) -> Result<FailoverDbClusterInput, BuildError>
pub fn build(self) -> Result<FailoverDbClusterInput, BuildError>
Consumes the builder and constructs a FailoverDbClusterInput.
source§impl FailoverDbClusterInputBuilder
impl FailoverDbClusterInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<FailoverDbClusterOutput, SdkError<FailoverDBClusterError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<FailoverDbClusterOutput, SdkError<FailoverDBClusterError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for FailoverDbClusterInputBuilder
impl Clone for FailoverDbClusterInputBuilder
source§fn clone(&self) -> FailoverDbClusterInputBuilder
fn clone(&self) -> FailoverDbClusterInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for FailoverDbClusterInputBuilder
impl Default for FailoverDbClusterInputBuilder
source§fn default() -> FailoverDbClusterInputBuilder
fn default() -> FailoverDbClusterInputBuilder
source§impl PartialEq for FailoverDbClusterInputBuilder
impl PartialEq for FailoverDbClusterInputBuilder
source§fn eq(&self, other: &FailoverDbClusterInputBuilder) -> bool
fn eq(&self, other: &FailoverDbClusterInputBuilder) -> bool
self and other values to be equal, and is used
by ==.