Struct aws_sdk_elasticache::types::builders::ServerlessCacheBuilder
source · #[non_exhaustive]pub struct ServerlessCacheBuilder { /* private fields */ }
Expand description
A builder for ServerlessCache
.
Implementations§
source§impl ServerlessCacheBuilder
impl ServerlessCacheBuilder
sourcepub fn serverless_cache_name(self, input: impl Into<String>) -> Self
pub fn serverless_cache_name(self, input: impl Into<String>) -> Self
The unique identifier of the serverless cache.
sourcepub fn set_serverless_cache_name(self, input: Option<String>) -> Self
pub fn set_serverless_cache_name(self, input: Option<String>) -> Self
The unique identifier of the serverless cache.
sourcepub fn get_serverless_cache_name(&self) -> &Option<String>
pub fn get_serverless_cache_name(&self) -> &Option<String>
The unique identifier of the serverless cache.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the serverless cache.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the serverless cache.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the serverless cache.
sourcepub fn create_time(self, input: DateTime) -> Self
pub fn create_time(self, input: DateTime) -> Self
When the serverless cache was created.
sourcepub fn set_create_time(self, input: Option<DateTime>) -> Self
pub fn set_create_time(self, input: Option<DateTime>) -> Self
When the serverless cache was created.
sourcepub fn get_create_time(&self) -> &Option<DateTime>
pub fn get_create_time(&self) -> &Option<DateTime>
When the serverless cache was created.
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
The current status of the serverless cache. The allowed values are CREATING, AVAILABLE, DELETING, CREATE-FAILED and MODIFYING.
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The current status of the serverless cache. The allowed values are CREATING, AVAILABLE, DELETING, CREATE-FAILED and MODIFYING.
sourcepub fn get_status(&self) -> &Option<String>
pub fn get_status(&self) -> &Option<String>
The current status of the serverless cache. The allowed values are CREATING, AVAILABLE, DELETING, CREATE-FAILED and MODIFYING.
sourcepub fn engine(self, input: impl Into<String>) -> Self
pub fn engine(self, input: impl Into<String>) -> Self
The engine the serverless cache is compatible with.
sourcepub fn set_engine(self, input: Option<String>) -> Self
pub fn set_engine(self, input: Option<String>) -> Self
The engine the serverless cache is compatible with.
sourcepub fn get_engine(&self) -> &Option<String>
pub fn get_engine(&self) -> &Option<String>
The engine the serverless cache is compatible with.
sourcepub fn major_engine_version(self, input: impl Into<String>) -> Self
pub fn major_engine_version(self, input: impl Into<String>) -> Self
The version number of the engine the serverless cache is compatible with.
sourcepub fn set_major_engine_version(self, input: Option<String>) -> Self
pub fn set_major_engine_version(self, input: Option<String>) -> Self
The version number of the engine the serverless cache is compatible with.
sourcepub fn get_major_engine_version(&self) -> &Option<String>
pub fn get_major_engine_version(&self) -> &Option<String>
The version number of the engine the serverless cache is compatible with.
sourcepub fn full_engine_version(self, input: impl Into<String>) -> Self
pub fn full_engine_version(self, input: impl Into<String>) -> Self
The name and version number of the engine the serverless cache is compatible with.
sourcepub fn set_full_engine_version(self, input: Option<String>) -> Self
pub fn set_full_engine_version(self, input: Option<String>) -> Self
The name and version number of the engine the serverless cache is compatible with.
sourcepub fn get_full_engine_version(&self) -> &Option<String>
pub fn get_full_engine_version(&self) -> &Option<String>
The name and version number of the engine the serverless cache is compatible with.
sourcepub fn cache_usage_limits(self, input: CacheUsageLimits) -> Self
pub fn cache_usage_limits(self, input: CacheUsageLimits) -> Self
The cache usage limit for the serverless cache.
sourcepub fn set_cache_usage_limits(self, input: Option<CacheUsageLimits>) -> Self
pub fn set_cache_usage_limits(self, input: Option<CacheUsageLimits>) -> Self
The cache usage limit for the serverless cache.
sourcepub fn get_cache_usage_limits(&self) -> &Option<CacheUsageLimits>
pub fn get_cache_usage_limits(&self) -> &Option<CacheUsageLimits>
The cache usage limit for the serverless cache.
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 Amazon Web Services Key Management Service (KMS) key that is used to encrypt data at rest in the serverless cache.
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 Amazon Web Services Key Management Service (KMS) key that is used to encrypt data at rest in the serverless cache.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The ID of the Amazon Web Services Key Management Service (KMS) key that is used to encrypt data at rest in the serverless cache.
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
.
The IDs of the EC2 security groups associated with the serverless cache.
sourcepub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
The IDs of the EC2 security groups associated with the serverless cache.
sourcepub fn get_security_group_ids(&self) -> &Option<Vec<String>>
pub fn get_security_group_ids(&self) -> &Option<Vec<String>>
The IDs of the EC2 security groups associated with the serverless cache.
sourcepub fn endpoint(self, input: Endpoint) -> Self
pub fn endpoint(self, input: Endpoint) -> Self
Represents the information required for client programs to connect to a cache node.
sourcepub fn set_endpoint(self, input: Option<Endpoint>) -> Self
pub fn set_endpoint(self, input: Option<Endpoint>) -> Self
Represents the information required for client programs to connect to a cache node.
sourcepub fn get_endpoint(&self) -> &Option<Endpoint>
pub fn get_endpoint(&self) -> &Option<Endpoint>
Represents the information required for client programs to connect to a cache node.
sourcepub fn reader_endpoint(self, input: Endpoint) -> Self
pub fn reader_endpoint(self, input: Endpoint) -> Self
Represents the information required for client programs to connect to a cache node.
sourcepub fn set_reader_endpoint(self, input: Option<Endpoint>) -> Self
pub fn set_reader_endpoint(self, input: Option<Endpoint>) -> Self
Represents the information required for client programs to connect to a cache node.
sourcepub fn get_reader_endpoint(&self) -> &Option<Endpoint>
pub fn get_reader_endpoint(&self) -> &Option<Endpoint>
Represents the information required for client programs to connect to a cache node.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the serverless cache.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the serverless cache.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the serverless cache.
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 user group 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 user group 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 user group 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
.
If no subnet IDs are given and your VPC is in SFO, then ElastiCache will select 2 default subnets across AZs in your VPC. For all other Regions, if no subnet IDs are given then ElastiCache will select 3 default subnets across AZs in your default VPC.
sourcepub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
If no subnet IDs are given and your VPC is in SFO, then ElastiCache will select 2 default subnets across AZs in your VPC. For all other Regions, if no subnet IDs are given then ElastiCache will select 3 default subnets across AZs in your default VPC.
sourcepub fn get_subnet_ids(&self) -> &Option<Vec<String>>
pub fn get_subnet_ids(&self) -> &Option<Vec<String>>
If no subnet IDs are given and your VPC is in SFO, then ElastiCache will select 2 default subnets across AZs in your VPC. For all other Regions, if no subnet IDs are given then ElastiCache will select 3 default subnets across AZs in your default VPC.
sourcepub fn snapshot_retention_limit(self, input: i32) -> Self
pub fn snapshot_retention_limit(self, input: i32) -> Self
The current setting for the number of serverless cache snapshots the system will retain. 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 current setting for the number of serverless cache snapshots the system will retain. Available for Redis only.
sourcepub fn get_snapshot_retention_limit(&self) -> &Option<i32>
pub fn get_snapshot_retention_limit(&self) -> &Option<i32>
The current setting for the number of serverless cache snapshots the system will retain. 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 a cache snapshot will be created. Default is NULL, i.e. snapshots will not be created at a specific time on a 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 a cache snapshot will be created. Default is NULL, i.e. snapshots will not be created at a specific time on a 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 a cache snapshot will be created. Default is NULL, i.e. snapshots will not be created at a specific time on a daily basis. Available for Redis only.
sourcepub fn build(self) -> ServerlessCache
pub fn build(self) -> ServerlessCache
Consumes the builder and constructs a ServerlessCache
.
Trait Implementations§
source§impl Clone for ServerlessCacheBuilder
impl Clone for ServerlessCacheBuilder
source§fn clone(&self) -> ServerlessCacheBuilder
fn clone(&self) -> ServerlessCacheBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServerlessCacheBuilder
impl Debug for ServerlessCacheBuilder
source§impl Default for ServerlessCacheBuilder
impl Default for ServerlessCacheBuilder
source§fn default() -> ServerlessCacheBuilder
fn default() -> ServerlessCacheBuilder
source§impl PartialEq for ServerlessCacheBuilder
impl PartialEq for ServerlessCacheBuilder
source§fn eq(&self, other: &ServerlessCacheBuilder) -> bool
fn eq(&self, other: &ServerlessCacheBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.