Interface CreateServerlessCacheRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateServerlessCacheRequest.Builder,
,CreateServerlessCacheRequest> ElastiCacheRequest.Builder
,SdkBuilder<CreateServerlessCacheRequest.Builder,
,CreateServerlessCacheRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateServerlessCacheRequest
-
Method Summary
Modifier and TypeMethodDescriptioncacheUsageLimits
(Consumer<CacheUsageLimits.Builder> cacheUsageLimits) Sets the cache usage limits for storage and ElastiCache Processing Units for the cache.cacheUsageLimits
(CacheUsageLimits cacheUsageLimits) Sets the cache usage limits for storage and ElastiCache Processing Units for the cache.dailySnapshotTime
(String dailySnapshotTime) The daily time that snapshots will be created from the new serverless cache.description
(String description) User-provided description for the serverless cache.The name of the cache engine to be used for creating the serverless cache.ARN of the customer managed key for encrypting the data at rest.majorEngineVersion
(String majorEngineVersion) The version of the cache engine that will be used to create the serverless cache.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.securityGroupIds
(String... securityGroupIds) A list of the one or more VPC security groups to be associated with the serverless cache.securityGroupIds
(Collection<String> securityGroupIds) A list of the one or more VPC security groups to be associated with the serverless cache.serverlessCacheName
(String serverlessCacheName) User-provided identifier for the serverless cache.snapshotArnsToRestore
(String... snapshotArnsToRestore) The ARN(s) of the snapshot that the new serverless cache will be created from.snapshotArnsToRestore
(Collection<String> snapshotArnsToRestore) The ARN(s) of the snapshot that the new serverless cache will be created from.snapshotRetentionLimit
(Integer snapshotRetentionLimit) The number of snapshots that will be retained for the serverless cache that is being created.A list of the identifiers of the subnets where the VPC endpoint for the serverless cache will be deployed.subnetIds
(Collection<String> subnetIds) A list of the identifiers of the subnets where the VPC endpoint for the serverless cache will be deployed.tags
(Collection<Tag> tags) The list of tags (key, value) pairs to be added to the serverless cache resource.tags
(Consumer<Tag.Builder>... tags) The list of tags (key, value) pairs to be added to the serverless cache resource.The list of tags (key, value) pairs to be added to the serverless cache resource.userGroupId
(String userGroupId) The identifier of the UserGroup to be associated with the serverless cache.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.elasticache.model.ElastiCacheRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
serverlessCacheName
User-provided identifier for the serverless cache. This parameter is stored as a lowercase string.
- Parameters:
serverlessCacheName
- User-provided identifier for the serverless cache. This parameter is stored as a lowercase string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
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.
- Parameters:
description
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engine
The name of the cache engine to be used for creating the serverless cache.
- Parameters:
engine
- The name of the cache engine to be used for creating the serverless cache.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
majorEngineVersion
The version of the cache engine that will be used to create the serverless cache.
- Parameters:
majorEngineVersion
- The version of the cache engine that will be used to create the serverless cache.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cacheUsageLimits
Sets the cache usage limits for storage and ElastiCache Processing Units for the cache.
- Parameters:
cacheUsageLimits
- Sets the cache usage limits for storage and ElastiCache Processing Units for the cache.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cacheUsageLimits
default CreateServerlessCacheRequest.Builder cacheUsageLimits(Consumer<CacheUsageLimits.Builder> cacheUsageLimits) Sets the cache usage limits for storage and ElastiCache Processing Units for the cache.
This is a convenience method that creates an instance of theCacheUsageLimits.Builder
avoiding the need to create one manually viaCacheUsageLimits.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocacheUsageLimits(CacheUsageLimits)
.- Parameters:
cacheUsageLimits
- a consumer that will call methods onCacheUsageLimits.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
kmsKeyId
ARN of the customer managed key for encrypting the data at rest. If no KMS key is provided, a default service key is used.
- Parameters:
kmsKeyId
- ARN of the customer managed key for encrypting the data at rest. If no KMS key is provided, a default service key is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
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.
- Parameters:
securityGroupIds
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
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.
- Parameters:
securityGroupIds
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotArnsToRestore
CreateServerlessCacheRequest.Builder snapshotArnsToRestore(Collection<String> snapshotArnsToRestore) The ARN(s) of the snapshot that the new serverless cache will be created from. Available for Redis OSS and Serverless Memcached only.
- Parameters:
snapshotArnsToRestore
- The ARN(s) of the snapshot that the new serverless cache will be created from. Available for Redis OSS and Serverless Memcached only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotArnsToRestore
The ARN(s) of the snapshot that the new serverless cache will be created from. Available for Redis OSS and Serverless Memcached only.
- Parameters:
snapshotArnsToRestore
- The ARN(s) of the snapshot that the new serverless cache will be created from. Available for Redis OSS and Serverless Memcached only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The list of tags (key, value) pairs to be added to the serverless cache resource. Default is NULL.
- Parameters:
tags
- The list of tags (key, value) pairs to be added to the serverless cache resource. Default is NULL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The list of tags (key, value) pairs to be added to the serverless cache resource. Default is NULL.
- Parameters:
tags
- The list of tags (key, value) pairs to be added to the serverless cache resource. Default is NULL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The list of tags (key, value) pairs to be added to the serverless cache resource. Default is NULL.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
userGroupId
The identifier of the UserGroup to be associated with the serverless cache. Available for Redis OSS only. Default is NULL.
- Parameters:
userGroupId
- The identifier of the UserGroup to be associated with the serverless cache. Available for Redis OSS only. Default is NULL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetIds
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.
- Parameters:
subnetIds
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetIds
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.
- Parameters:
subnetIds
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotRetentionLimit
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 OSS and Serverless Memcached only.
- Parameters:
snapshotRetentionLimit
- 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 OSS and Serverless Memcached only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dailySnapshotTime
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 OSS and Serverless Memcached only.
- Parameters:
dailySnapshotTime
- 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 OSS and Serverless Memcached only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateServerlessCacheRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateServerlessCacheRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-