Interface ModifyServerlessCacheRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ModifyServerlessCacheRequest.Builder,
,ModifyServerlessCacheRequest> ElastiCacheRequest.Builder
,SdkBuilder<ModifyServerlessCacheRequest.Builder,
,ModifyServerlessCacheRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ModifyServerlessCacheRequest
-
Method Summary
Modifier and TypeMethodDescriptioncacheUsageLimits
(Consumer<CacheUsageLimits.Builder> cacheUsageLimits) Modify the cache usage limit for the serverless cache.cacheUsageLimits
(CacheUsageLimits cacheUsageLimits) Modify the cache usage limit for the serverless cache.dailySnapshotTime
(String dailySnapshotTime) The daily time during which Elasticache begins taking a daily snapshot of the serverless cache.description
(String description) User provided description for the serverless cache.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.removeUserGroup
(Boolean removeUserGroup) The identifier of the UserGroup to be removed from association with the Redis OSS serverless cache.securityGroupIds
(String... securityGroupIds) The new list of VPC security groups to be associated with the serverless cache.securityGroupIds
(Collection<String> securityGroupIds) The new list of VPC security groups to be associated with the serverless cache.serverlessCacheName
(String serverlessCacheName) User-provided identifier for the serverless cache to be modified.snapshotRetentionLimit
(Integer snapshotRetentionLimit) The number of days for which Elasticache retains automatic snapshots before deleting them.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 to be modified.
- Parameters:
serverlessCacheName
- User-provided identifier for the serverless cache to be modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
User provided description for the serverless cache. Default = NULL, i.e. the existing description is not removed/modified. The description has a maximum length of 255 characters.
- Parameters:
description
- User provided description for the serverless cache. Default = NULL, i.e. the existing description is not removed/modified. The description has a maximum length of 255 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cacheUsageLimits
Modify the cache usage limit for the serverless cache.
- Parameters:
cacheUsageLimits
- Modify the cache usage limit for the serverless cache.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cacheUsageLimits
default ModifyServerlessCacheRequest.Builder cacheUsageLimits(Consumer<CacheUsageLimits.Builder> cacheUsageLimits) Modify the cache usage limit for the serverless 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:
-
removeUserGroup
The identifier of the UserGroup to be removed from association with the Redis OSS serverless cache. Available for Redis OSS only. Default is NULL.
- Parameters:
removeUserGroup
- The identifier of the UserGroup to be removed from association with the Redis OSS 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.
-
userGroupId
The identifier of the UserGroup to be associated with the serverless cache. Available for Redis OSS only. Default is NULL - the existing UserGroup is not removed.
- Parameters:
userGroupId
- The identifier of the UserGroup to be associated with the serverless cache. Available for Redis OSS only. Default is NULL - the existing UserGroup is not removed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
The new list of VPC security groups to be associated with the serverless cache. Populating this list means the current VPC security groups will be removed. This security group is used to authorize traffic access for the VPC end-point (private-link). Default = NULL - the existing list of VPC security groups is not removed.
- Parameters:
securityGroupIds
- The new list of VPC security groups to be associated with the serverless cache. Populating this list means the current VPC security groups will be removed. This security group is used to authorize traffic access for the VPC end-point (private-link). Default = NULL - the existing list of VPC security groups is not removed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
The new list of VPC security groups to be associated with the serverless cache. Populating this list means the current VPC security groups will be removed. This security group is used to authorize traffic access for the VPC end-point (private-link). Default = NULL - the existing list of VPC security groups is not removed.
- Parameters:
securityGroupIds
- The new list of VPC security groups to be associated with the serverless cache. Populating this list means the current VPC security groups will be removed. This security group is used to authorize traffic access for the VPC end-point (private-link). Default = NULL - the existing list of VPC security groups is not removed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotRetentionLimit
The number of days for which Elasticache retains automatic snapshots before deleting them. Available for Redis OSS and Serverless Memcached only. Default = NULL, i.e. the existing snapshot-retention-limit will not be removed or modified. The maximum value allowed is 35 days.
- Parameters:
snapshotRetentionLimit
- The number of days for which Elasticache retains automatic snapshots before deleting them. Available for Redis OSS and Serverless Memcached only. Default = NULL, i.e. the existing snapshot-retention-limit will not be removed or modified. The maximum value allowed is 35 days.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dailySnapshotTime
The daily time during which Elasticache begins taking a daily snapshot of the serverless cache. Available for Redis OSS and Serverless Memcached only. The default is NULL, i.e. the existing snapshot time configured for the cluster is not removed.
- Parameters:
dailySnapshotTime
- The daily time during which Elasticache begins taking a daily snapshot of the serverless cache. Available for Redis OSS and Serverless Memcached only. The default is NULL, i.e. the existing snapshot time configured for the cluster is not removed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ModifyServerlessCacheRequest.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
ModifyServerlessCacheRequest.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.
-