Struct aws_sdk_elasticache::operation::create_serverless_cache::builders::CreateServerlessCacheInputBuilder
source · #[non_exhaustive]pub struct CreateServerlessCacheInputBuilder { /* private fields */ }
Expand description
A builder for CreateServerlessCacheInput
.
Implementations§
source§impl CreateServerlessCacheInputBuilder
impl CreateServerlessCacheInputBuilder
sourcepub fn serverless_cache_name(self, input: impl Into<String>) -> Self
pub fn serverless_cache_name(self, input: impl Into<String>) -> Self
User-provided identifier for the serverless cache. This parameter is stored as a lowercase string.
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
User-provided identifier for the serverless cache. This parameter is stored as a lowercase string.
sourcepub fn get_serverless_cache_name(&self) -> &Option<String>
pub fn get_serverless_cache_name(&self) -> &Option<String>
User-provided identifier for the serverless cache. This parameter is stored as a lowercase string.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
User-provided description for the serverless cache. The default is NULL, i.e. if no description is provided then an empty string will be returned. The maximum length is 255 characters.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
User-provided description for the serverless cache. The default is NULL, i.e. if no description is provided then an empty string will be returned. The maximum length is 255 characters.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
User-provided description for the serverless cache. The default is NULL, i.e. if no description is provided then an empty string will be returned. The maximum length is 255 characters.
sourcepub fn engine(self, input: impl Into<String>) -> Self
pub fn engine(self, input: impl Into<String>) -> Self
The name of the cache engine to be used for creating the serverless cache.
This field is required.sourcepub fn set_engine(self, input: Option<String>) -> Self
pub fn set_engine(self, input: Option<String>) -> Self
The name of the cache engine to be used for creating the serverless cache.
sourcepub fn get_engine(&self) -> &Option<String>
pub fn get_engine(&self) -> &Option<String>
The name of the cache engine to be used for creating the serverless cache.
sourcepub fn major_engine_version(self, input: impl Into<String>) -> Self
pub fn major_engine_version(self, input: impl Into<String>) -> Self
The version of the cache engine that will be used to create the serverless cache.
sourcepub fn set_major_engine_version(self, input: Option<String>) -> Self
pub fn set_major_engine_version(self, input: Option<String>) -> Self
The version of the cache engine that will be used to create the serverless cache.
sourcepub fn get_major_engine_version(&self) -> &Option<String>
pub fn get_major_engine_version(&self) -> &Option<String>
The version of the cache engine that will be used to create the serverless cache.
sourcepub fn cache_usage_limits(self, input: CacheUsageLimits) -> Self
pub fn cache_usage_limits(self, input: CacheUsageLimits) -> Self
Sets the cache usage limits for storage and ElastiCache Processing Units for the cache.
sourcepub fn set_cache_usage_limits(self, input: Option<CacheUsageLimits>) -> Self
pub fn set_cache_usage_limits(self, input: Option<CacheUsageLimits>) -> Self
Sets the cache usage limits for storage and ElastiCache Processing Units for the cache.
sourcepub fn get_cache_usage_limits(&self) -> &Option<CacheUsageLimits>
pub fn get_cache_usage_limits(&self) -> &Option<CacheUsageLimits>
Sets the cache usage limits for storage and ElastiCache Processing Units for the cache.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
ARN of the customer managed key for encrypting the data at rest. If no KMS key is provided, a default service key is used.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
ARN of the customer managed key for encrypting the data at rest. If no KMS key is provided, a default service key is used.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
ARN of the customer managed key for encrypting the data at rest. If no KMS key is provided, a default service key is used.
sourcepub fn security_group_ids(self, input: impl Into<String>) -> Self
pub fn security_group_ids(self, input: impl Into<String>) -> Self
Appends an item to security_group_ids
.
To override the contents of this collection use set_security_group_ids
.
A list of the one or more VPC security groups to be associated with the serverless cache. The security group will authorize traffic access for the VPC end-point (private-link). If no other information is given this will be the VPC’s Default Security Group that is associated with the cluster VPC end-point.
sourcepub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
A list of the one or more VPC security groups to be associated with the serverless cache. The security group will authorize traffic access for the VPC end-point (private-link). If no other information is given this will be the VPC’s Default Security Group that is associated with the cluster VPC end-point.
sourcepub fn get_security_group_ids(&self) -> &Option<Vec<String>>
pub fn get_security_group_ids(&self) -> &Option<Vec<String>>
A list of the one or more VPC security groups to be associated with the serverless cache. The security group will authorize traffic access for the VPC end-point (private-link). If no other information is given this will be the VPC’s Default Security Group that is associated with the cluster VPC end-point.
sourcepub fn snapshot_arns_to_restore(self, input: impl Into<String>) -> Self
pub fn snapshot_arns_to_restore(self, input: impl Into<String>) -> Self
Appends an item to snapshot_arns_to_restore
.
To override the contents of this collection use set_snapshot_arns_to_restore
.
The ARN(s) of the snapshot that the new serverless cache will be created from. Available for Redis only.
sourcepub fn set_snapshot_arns_to_restore(self, input: Option<Vec<String>>) -> Self
pub fn set_snapshot_arns_to_restore(self, input: Option<Vec<String>>) -> Self
The ARN(s) of the snapshot that the new serverless cache will be created from. Available for Redis only.
sourcepub fn get_snapshot_arns_to_restore(&self) -> &Option<Vec<String>>
pub fn get_snapshot_arns_to_restore(&self) -> &Option<Vec<String>>
The ARN(s) of the snapshot that the new serverless cache will be created from. Available for Redis only.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The list of tags (key, value) pairs to be added to the serverless cache resource. Default is NULL.
The list of tags (key, value) pairs to be added to the serverless cache resource. Default is NULL.
The list of tags (key, value) pairs to be added to the serverless cache resource. Default is NULL.
sourcepub fn user_group_id(self, input: impl Into<String>) -> Self
pub fn user_group_id(self, input: impl Into<String>) -> Self
The identifier of the UserGroup to be associated with the serverless cache. Available for Redis only. Default is NULL.
sourcepub fn set_user_group_id(self, input: Option<String>) -> Self
pub fn set_user_group_id(self, input: Option<String>) -> Self
The identifier of the UserGroup to be associated with the serverless cache. Available for Redis only. Default is NULL.
sourcepub fn get_user_group_id(&self) -> &Option<String>
pub fn get_user_group_id(&self) -> &Option<String>
The identifier of the UserGroup to be associated with the serverless cache. Available for Redis only. Default is NULL.
sourcepub fn subnet_ids(self, input: impl Into<String>) -> Self
pub fn subnet_ids(self, input: impl Into<String>) -> Self
Appends an item to subnet_ids
.
To override the contents of this collection use set_subnet_ids
.
A list of the identifiers of the subnets where the VPC endpoint for the serverless cache will be deployed. All the subnetIds must belong to the same VPC.
sourcepub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
A list of the identifiers of the subnets where the VPC endpoint for the serverless cache will be deployed. All the subnetIds must belong to the same VPC.
sourcepub fn get_subnet_ids(&self) -> &Option<Vec<String>>
pub fn get_subnet_ids(&self) -> &Option<Vec<String>>
A list of the identifiers of the subnets where the VPC endpoint for the serverless cache will be deployed. All the subnetIds must belong to the same VPC.
sourcepub fn snapshot_retention_limit(self, input: i32) -> Self
pub fn snapshot_retention_limit(self, input: i32) -> Self
The number of snapshots that will be retained for the serverless cache that is being created. As new snapshots beyond this limit are added, the oldest snapshots will be deleted on a rolling basis. Available for Redis only.
sourcepub fn set_snapshot_retention_limit(self, input: Option<i32>) -> Self
pub fn set_snapshot_retention_limit(self, input: Option<i32>) -> Self
The number of snapshots that will be retained for the serverless cache that is being created. As new snapshots beyond this limit are added, the oldest snapshots will be deleted on a rolling basis. Available for Redis only.
sourcepub fn get_snapshot_retention_limit(&self) -> &Option<i32>
pub fn get_snapshot_retention_limit(&self) -> &Option<i32>
The number of snapshots that will be retained for the serverless cache that is being created. As new snapshots beyond this limit are added, the oldest snapshots will be deleted on a rolling basis. Available for Redis only.
sourcepub fn daily_snapshot_time(self, input: impl Into<String>) -> Self
pub fn daily_snapshot_time(self, input: impl Into<String>) -> Self
The daily time that snapshots will be created from the new serverless cache. By default this number is populated with 0, i.e. no snapshots will be created on an automatic daily basis. Available for Redis only.
sourcepub fn set_daily_snapshot_time(self, input: Option<String>) -> Self
pub fn set_daily_snapshot_time(self, input: Option<String>) -> Self
The daily time that snapshots will be created from the new serverless cache. By default this number is populated with 0, i.e. no snapshots will be created on an automatic daily basis. Available for Redis only.
sourcepub fn get_daily_snapshot_time(&self) -> &Option<String>
pub fn get_daily_snapshot_time(&self) -> &Option<String>
The daily time that snapshots will be created from the new serverless cache. By default this number is populated with 0, i.e. no snapshots will be created on an automatic daily basis. Available for Redis only.
sourcepub fn build(self) -> Result<CreateServerlessCacheInput, BuildError>
pub fn build(self) -> Result<CreateServerlessCacheInput, BuildError>
Consumes the builder and constructs a CreateServerlessCacheInput
.
source§impl CreateServerlessCacheInputBuilder
impl CreateServerlessCacheInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateServerlessCacheOutput, SdkError<CreateServerlessCacheError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateServerlessCacheOutput, SdkError<CreateServerlessCacheError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateServerlessCacheInputBuilder
impl Clone for CreateServerlessCacheInputBuilder
source§fn clone(&self) -> CreateServerlessCacheInputBuilder
fn clone(&self) -> CreateServerlessCacheInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateServerlessCacheInputBuilder
impl Default for CreateServerlessCacheInputBuilder
source§fn default() -> CreateServerlessCacheInputBuilder
fn default() -> CreateServerlessCacheInputBuilder
source§impl PartialEq for CreateServerlessCacheInputBuilder
impl PartialEq for CreateServerlessCacheInputBuilder
source§fn eq(&self, other: &CreateServerlessCacheInputBuilder) -> bool
fn eq(&self, other: &CreateServerlessCacheInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.