Struct aws_sdk_elasticache::operation::create_serverless_cache_snapshot::builders::CreateServerlessCacheSnapshotInputBuilder
source · #[non_exhaustive]pub struct CreateServerlessCacheSnapshotInputBuilder { /* private fields */ }
Expand description
A builder for CreateServerlessCacheSnapshotInput
.
Implementations§
source§impl CreateServerlessCacheSnapshotInputBuilder
impl CreateServerlessCacheSnapshotInputBuilder
sourcepub fn serverless_cache_snapshot_name(self, input: impl Into<String>) -> Self
pub fn serverless_cache_snapshot_name(self, input: impl Into<String>) -> Self
The name for the snapshot being created. Must be unique for the customer account. Available for Redis only. Must be between 1 and 255 characters.
This field is required.sourcepub fn set_serverless_cache_snapshot_name(self, input: Option<String>) -> Self
pub fn set_serverless_cache_snapshot_name(self, input: Option<String>) -> Self
The name for the snapshot being created. Must be unique for the customer account. Available for Redis only. Must be between 1 and 255 characters.
sourcepub fn get_serverless_cache_snapshot_name(&self) -> &Option<String>
pub fn get_serverless_cache_snapshot_name(&self) -> &Option<String>
The name for the snapshot being created. Must be unique for the customer account. Available for Redis only. Must be between 1 and 255 characters.
sourcepub fn serverless_cache_name(self, input: impl Into<String>) -> Self
pub fn serverless_cache_name(self, input: impl Into<String>) -> Self
The name of an existing serverless cache. The snapshot is created from this cache. Available for Redis only.
This field is required.sourcepub fn set_serverless_cache_name(self, input: Option<String>) -> Self
pub fn set_serverless_cache_name(self, input: Option<String>) -> Self
The name of an existing serverless cache. The snapshot is created from this cache. Available for Redis only.
sourcepub fn get_serverless_cache_name(&self) -> &Option<String>
pub fn get_serverless_cache_name(&self) -> &Option<String>
The name of an existing serverless cache. The snapshot is created from this cache. Available for Redis only.
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. Available for Redis only. Default: NULL
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. Available for Redis only. Default: NULL
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. Available for Redis only. Default: NULL
Appends an item to tags
.
To override the contents of this collection use set_tags
.
A list of tags to be added to the snapshot resource. A tag is a key-value pair. Available for Redis only.
A list of tags to be added to the snapshot resource. A tag is a key-value pair. Available for Redis only.
A list of tags to be added to the snapshot resource. A tag is a key-value pair. Available for Redis only.
sourcepub fn build(self) -> Result<CreateServerlessCacheSnapshotInput, BuildError>
pub fn build(self) -> Result<CreateServerlessCacheSnapshotInput, BuildError>
Consumes the builder and constructs a CreateServerlessCacheSnapshotInput
.
source§impl CreateServerlessCacheSnapshotInputBuilder
impl CreateServerlessCacheSnapshotInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateServerlessCacheSnapshotOutput, SdkError<CreateServerlessCacheSnapshotError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateServerlessCacheSnapshotOutput, SdkError<CreateServerlessCacheSnapshotError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateServerlessCacheSnapshotInputBuilder
impl Clone for CreateServerlessCacheSnapshotInputBuilder
source§fn clone(&self) -> CreateServerlessCacheSnapshotInputBuilder
fn clone(&self) -> CreateServerlessCacheSnapshotInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateServerlessCacheSnapshotInputBuilder
impl Default for CreateServerlessCacheSnapshotInputBuilder
source§fn default() -> CreateServerlessCacheSnapshotInputBuilder
fn default() -> CreateServerlessCacheSnapshotInputBuilder
source§impl PartialEq for CreateServerlessCacheSnapshotInputBuilder
impl PartialEq for CreateServerlessCacheSnapshotInputBuilder
source§fn eq(&self, other: &CreateServerlessCacheSnapshotInputBuilder) -> bool
fn eq(&self, other: &CreateServerlessCacheSnapshotInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.