Struct aws_sdk_elasticache::operation::create_snapshot::builders::CreateSnapshotInputBuilder
source · #[non_exhaustive]pub struct CreateSnapshotInputBuilder { /* private fields */ }
Expand description
A builder for CreateSnapshotInput
.
Implementations§
source§impl CreateSnapshotInputBuilder
impl CreateSnapshotInputBuilder
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.
This field is required.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.
sourcepub fn build(self) -> Result<CreateSnapshotInput, BuildError>
pub fn build(self) -> Result<CreateSnapshotInput, BuildError>
Consumes the builder and constructs a CreateSnapshotInput
.
source§impl CreateSnapshotInputBuilder
impl CreateSnapshotInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateSnapshotOutput, SdkError<CreateSnapshotError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateSnapshotOutput, SdkError<CreateSnapshotError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateSnapshotInputBuilder
impl Clone for CreateSnapshotInputBuilder
source§fn clone(&self) -> CreateSnapshotInputBuilder
fn clone(&self) -> CreateSnapshotInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateSnapshotInputBuilder
impl Debug for CreateSnapshotInputBuilder
source§impl Default for CreateSnapshotInputBuilder
impl Default for CreateSnapshotInputBuilder
source§fn default() -> CreateSnapshotInputBuilder
fn default() -> CreateSnapshotInputBuilder
source§impl PartialEq for CreateSnapshotInputBuilder
impl PartialEq for CreateSnapshotInputBuilder
source§fn eq(&self, other: &CreateSnapshotInputBuilder) -> bool
fn eq(&self, other: &CreateSnapshotInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.