Struct aws_sdk_elasticache::model::cache_subnet_group::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CacheSubnetGroup
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn cache_subnet_group_name(self, input: impl Into<String>) -> Self
pub fn cache_subnet_group_name(self, input: impl Into<String>) -> Self
The name of the cache subnet group.
sourcepub fn set_cache_subnet_group_name(self, input: Option<String>) -> Self
pub fn set_cache_subnet_group_name(self, input: Option<String>) -> Self
The name of the cache subnet group.
sourcepub fn cache_subnet_group_description(self, input: impl Into<String>) -> Self
pub fn cache_subnet_group_description(self, input: impl Into<String>) -> Self
The description of the cache subnet group.
sourcepub fn set_cache_subnet_group_description(self, input: Option<String>) -> Self
pub fn set_cache_subnet_group_description(self, input: Option<String>) -> Self
The description of the cache subnet group.
sourcepub fn vpc_id(self, input: impl Into<String>) -> Self
pub fn vpc_id(self, input: impl Into<String>) -> Self
The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.
sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.
sourcepub fn subnets(self, input: Subnet) -> Self
pub fn subnets(self, input: Subnet) -> Self
Appends an item to subnets
.
To override the contents of this collection use set_subnets
.
A list of subnets associated with the cache subnet group.
sourcepub fn set_subnets(self, input: Option<Vec<Subnet>>) -> Self
pub fn set_subnets(self, input: Option<Vec<Subnet>>) -> Self
A list of subnets associated with the cache subnet group.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The ARN (Amazon Resource Name) of the cache subnet group.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The ARN (Amazon Resource Name) of the cache subnet group.
sourcepub fn supported_network_types(self, input: NetworkType) -> Self
pub fn supported_network_types(self, input: NetworkType) -> Self
Appends an item to supported_network_types
.
To override the contents of this collection use set_supported_network_types
.
Either ipv4
| ipv6
| dual_stack
. IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.
sourcepub fn set_supported_network_types(self, input: Option<Vec<NetworkType>>) -> Self
pub fn set_supported_network_types(self, input: Option<Vec<NetworkType>>) -> Self
Either ipv4
| ipv6
| dual_stack
. IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.
sourcepub fn build(self) -> CacheSubnetGroup
pub fn build(self) -> CacheSubnetGroup
Consumes the builder and constructs a CacheSubnetGroup
.