Struct aws_sdk_elasticache::operation::create_snapshot::builders::CreateSnapshotFluentBuilder
source · pub struct CreateSnapshotFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateSnapshot
.
Creates a copy of an entire cluster or replication group at a specific moment in time.
This operation is valid for Redis only.
Implementations§
source§impl CreateSnapshotFluentBuilder
impl CreateSnapshotFluentBuilder
sourcepub fn as_input(&self) -> &CreateSnapshotInputBuilder
pub fn as_input(&self) -> &CreateSnapshotInputBuilder
Access the CreateSnapshot as a reference.
sourcepub async fn send(
self
) -> Result<CreateSnapshotOutput, SdkError<CreateSnapshotError, HttpResponse>>
pub async fn send( self ) -> Result<CreateSnapshotOutput, SdkError<CreateSnapshotError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateSnapshotOutput, CreateSnapshotError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateSnapshotOutput, CreateSnapshotError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn replication_group_id(self, input: impl Into<String>) -> Self
pub fn replication_group_id(self, input: impl Into<String>) -> Self
The identifier of an existing replication group. The snapshot is created from this replication group.
sourcepub fn set_replication_group_id(self, input: Option<String>) -> Self
pub fn set_replication_group_id(self, input: Option<String>) -> Self
The identifier of an existing replication group. The snapshot is created from this replication group.
sourcepub fn get_replication_group_id(&self) -> &Option<String>
pub fn get_replication_group_id(&self) -> &Option<String>
The identifier of an existing replication group. The snapshot is created from this replication group.
sourcepub fn cache_cluster_id(self, input: impl Into<String>) -> Self
pub fn cache_cluster_id(self, input: impl Into<String>) -> Self
The identifier of an existing cluster. The snapshot is created from this cluster.
sourcepub fn set_cache_cluster_id(self, input: Option<String>) -> Self
pub fn set_cache_cluster_id(self, input: Option<String>) -> Self
The identifier of an existing cluster. The snapshot is created from this cluster.
sourcepub fn get_cache_cluster_id(&self) -> &Option<String>
pub fn get_cache_cluster_id(&self) -> &Option<String>
The identifier of an existing cluster. The snapshot is created from this cluster.
sourcepub fn snapshot_name(self, input: impl Into<String>) -> Self
pub fn snapshot_name(self, input: impl Into<String>) -> Self
A name for the snapshot being created.
sourcepub fn set_snapshot_name(self, input: Option<String>) -> Self
pub fn set_snapshot_name(self, input: Option<String>) -> Self
A name for the snapshot being created.
sourcepub fn get_snapshot_name(&self) -> &Option<String>
pub fn get_snapshot_name(&self) -> &Option<String>
A name for the snapshot being created.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The ID of the KMS key used to encrypt the snapshot.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The ID of the KMS key used to encrypt the snapshot.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The ID of the KMS key used to encrypt the snapshot.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
Trait Implementations§
source§impl Clone for CreateSnapshotFluentBuilder
impl Clone for CreateSnapshotFluentBuilder
source§fn clone(&self) -> CreateSnapshotFluentBuilder
fn clone(&self) -> CreateSnapshotFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more