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 ==.impl StructuralPartialEq for FailoverDbClusterInputBuilder
Auto Trait Implementations§
impl Freeze for FailoverDbClusterInputBuilder
impl RefUnwindSafe for FailoverDbClusterInputBuilder
impl Send for FailoverDbClusterInputBuilder
impl Sync for FailoverDbClusterInputBuilder
impl Unpin for FailoverDbClusterInputBuilder
impl UnwindSafe for FailoverDbClusterInputBuilder
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