Struct aws_sdk_docdb::operation::create_db_cluster_snapshot::builders::CreateDbClusterSnapshotInputBuilder
source · #[non_exhaustive]pub struct CreateDbClusterSnapshotInputBuilder { /* private fields */ }
Expand description
A builder for CreateDbClusterSnapshotInput
.
Implementations§
source§impl CreateDbClusterSnapshotInputBuilder
impl CreateDbClusterSnapshotInputBuilder
sourcepub fn db_cluster_snapshot_identifier(self, input: impl Into<String>) -> Self
pub fn db_cluster_snapshot_identifier(self, input: impl Into<String>) -> Self
The identifier of the cluster snapshot. This parameter is stored as a lowercase string.
Constraints:
-
Must contain from 1 to 63 letters, numbers, or hyphens.
-
The first character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
Example: my-cluster-snapshot1
sourcepub fn set_db_cluster_snapshot_identifier(self, input: Option<String>) -> Self
pub fn set_db_cluster_snapshot_identifier(self, input: Option<String>) -> Self
The identifier of the cluster snapshot. This parameter is stored as a lowercase string.
Constraints:
-
Must contain from 1 to 63 letters, numbers, or hyphens.
-
The first character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
Example: my-cluster-snapshot1
sourcepub fn get_db_cluster_snapshot_identifier(&self) -> &Option<String>
pub fn get_db_cluster_snapshot_identifier(&self) -> &Option<String>
The identifier of the cluster snapshot. This parameter is stored as a lowercase string.
Constraints:
-
Must contain from 1 to 63 letters, numbers, or hyphens.
-
The first character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
Example: my-cluster-snapshot1
sourcepub fn db_cluster_identifier(self, input: impl Into<String>) -> Self
pub fn db_cluster_identifier(self, input: impl Into<String>) -> Self
The identifier of the cluster to create a snapshot for. This parameter is not case sensitive.
Constraints:
-
Must match the identifier of an existing
DBCluster
.
Example: my-cluster
sourcepub fn set_db_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_db_cluster_identifier(self, input: Option<String>) -> Self
The identifier of the cluster to create a snapshot for. This parameter is not case sensitive.
Constraints:
-
Must match the identifier of an existing
DBCluster
.
Example: my-cluster
sourcepub fn get_db_cluster_identifier(&self) -> &Option<String>
pub fn get_db_cluster_identifier(&self) -> &Option<String>
The identifier of the cluster to create a snapshot for. This parameter is not case sensitive.
Constraints:
-
Must match the identifier of an existing
DBCluster
.
Example: my-cluster
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags to be assigned to the cluster snapshot.
The tags to be assigned to the cluster snapshot.
The tags to be assigned to the cluster snapshot.
sourcepub fn build(self) -> Result<CreateDbClusterSnapshotInput, BuildError>
pub fn build(self) -> Result<CreateDbClusterSnapshotInput, BuildError>
Consumes the builder and constructs a CreateDbClusterSnapshotInput
.
source§impl CreateDbClusterSnapshotInputBuilder
impl CreateDbClusterSnapshotInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateDbClusterSnapshotOutput, SdkError<CreateDBClusterSnapshotError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateDbClusterSnapshotOutput, SdkError<CreateDBClusterSnapshotError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateDbClusterSnapshotInputBuilder
impl Clone for CreateDbClusterSnapshotInputBuilder
source§fn clone(&self) -> CreateDbClusterSnapshotInputBuilder
fn clone(&self) -> CreateDbClusterSnapshotInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateDbClusterSnapshotInputBuilder
impl Default for CreateDbClusterSnapshotInputBuilder
source§fn default() -> CreateDbClusterSnapshotInputBuilder
fn default() -> CreateDbClusterSnapshotInputBuilder
source§impl PartialEq for CreateDbClusterSnapshotInputBuilder
impl PartialEq for CreateDbClusterSnapshotInputBuilder
source§fn eq(&self, other: &CreateDbClusterSnapshotInputBuilder) -> bool
fn eq(&self, other: &CreateDbClusterSnapshotInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.