Struct aws_sdk_docdb::operation::switchover_global_cluster::builders::SwitchoverGlobalClusterInputBuilder
source · #[non_exhaustive]pub struct SwitchoverGlobalClusterInputBuilder { /* private fields */ }Expand description
A builder for SwitchoverGlobalClusterInput.
Implementations§
source§impl SwitchoverGlobalClusterInputBuilder
impl SwitchoverGlobalClusterInputBuilder
sourcepub fn global_cluster_identifier(self, input: impl Into<String>) -> Self
pub fn global_cluster_identifier(self, input: impl Into<String>) -> Self
The identifier of the Amazon DocumentDB global database cluster to switch over. The identifier is the unique key assigned by the user when the cluster is created. In other words, it's the name of the global cluster. This parameter isn’t case-sensitive.
Constraints:
-
Must match the identifier of an existing global cluster (Amazon DocumentDB global database).
-
Minimum length of 1. Maximum length of 255.
Pattern: [A-Za-z][0-9A-Za-z-:._]*
sourcepub fn set_global_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_global_cluster_identifier(self, input: Option<String>) -> Self
The identifier of the Amazon DocumentDB global database cluster to switch over. The identifier is the unique key assigned by the user when the cluster is created. In other words, it's the name of the global cluster. This parameter isn’t case-sensitive.
Constraints:
-
Must match the identifier of an existing global cluster (Amazon DocumentDB global database).
-
Minimum length of 1. Maximum length of 255.
Pattern: [A-Za-z][0-9A-Za-z-:._]*
sourcepub fn get_global_cluster_identifier(&self) -> &Option<String>
pub fn get_global_cluster_identifier(&self) -> &Option<String>
The identifier of the Amazon DocumentDB global database cluster to switch over. The identifier is the unique key assigned by the user when the cluster is created. In other words, it's the name of the global cluster. This parameter isn’t case-sensitive.
Constraints:
-
Must match the identifier of an existing global cluster (Amazon DocumentDB global database).
-
Minimum length of 1. Maximum length of 255.
Pattern: [A-Za-z][0-9A-Za-z-:._]*
sourcepub fn target_db_cluster_identifier(self, input: impl Into<String>) -> Self
pub fn target_db_cluster_identifier(self, input: impl Into<String>) -> Self
The identifier of the secondary Amazon DocumentDB cluster to promote to the new primary for the global database cluster. Use the Amazon Resource Name (ARN) for the identifier so that Amazon DocumentDB can locate the cluster in its Amazon Web Services region.
Constraints:
-
Must match the identifier of an existing secondary cluster.
-
Minimum length of 1. Maximum length of 255.
Pattern: [A-Za-z][0-9A-Za-z-:._]*
sourcepub fn set_target_db_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_target_db_cluster_identifier(self, input: Option<String>) -> Self
The identifier of the secondary Amazon DocumentDB cluster to promote to the new primary for the global database cluster. Use the Amazon Resource Name (ARN) for the identifier so that Amazon DocumentDB can locate the cluster in its Amazon Web Services region.
Constraints:
-
Must match the identifier of an existing secondary cluster.
-
Minimum length of 1. Maximum length of 255.
Pattern: [A-Za-z][0-9A-Za-z-:._]*
sourcepub fn get_target_db_cluster_identifier(&self) -> &Option<String>
pub fn get_target_db_cluster_identifier(&self) -> &Option<String>
The identifier of the secondary Amazon DocumentDB cluster to promote to the new primary for the global database cluster. Use the Amazon Resource Name (ARN) for the identifier so that Amazon DocumentDB can locate the cluster in its Amazon Web Services region.
Constraints:
-
Must match the identifier of an existing secondary cluster.
-
Minimum length of 1. Maximum length of 255.
Pattern: [A-Za-z][0-9A-Za-z-:._]*
sourcepub fn build(self) -> Result<SwitchoverGlobalClusterInput, BuildError>
pub fn build(self) -> Result<SwitchoverGlobalClusterInput, BuildError>
Consumes the builder and constructs a SwitchoverGlobalClusterInput.
source§impl SwitchoverGlobalClusterInputBuilder
impl SwitchoverGlobalClusterInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<SwitchoverGlobalClusterOutput, SdkError<SwitchoverGlobalClusterError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<SwitchoverGlobalClusterOutput, SdkError<SwitchoverGlobalClusterError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for SwitchoverGlobalClusterInputBuilder
impl Clone for SwitchoverGlobalClusterInputBuilder
source§fn clone(&self) -> SwitchoverGlobalClusterInputBuilder
fn clone(&self) -> SwitchoverGlobalClusterInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for SwitchoverGlobalClusterInputBuilder
impl Default for SwitchoverGlobalClusterInputBuilder
source§fn default() -> SwitchoverGlobalClusterInputBuilder
fn default() -> SwitchoverGlobalClusterInputBuilder
source§impl PartialEq for SwitchoverGlobalClusterInputBuilder
impl PartialEq for SwitchoverGlobalClusterInputBuilder
source§fn eq(&self, other: &SwitchoverGlobalClusterInputBuilder) -> bool
fn eq(&self, other: &SwitchoverGlobalClusterInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SwitchoverGlobalClusterInputBuilder
Auto Trait Implementations§
impl Freeze for SwitchoverGlobalClusterInputBuilder
impl RefUnwindSafe for SwitchoverGlobalClusterInputBuilder
impl Send for SwitchoverGlobalClusterInputBuilder
impl Sync for SwitchoverGlobalClusterInputBuilder
impl Unpin for SwitchoverGlobalClusterInputBuilder
impl UnwindSafe for SwitchoverGlobalClusterInputBuilder
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