Interface CreateServerlessCacheRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateServerlessCacheRequest.Builder,CreateServerlessCacheRequest>
,ElastiCacheRequest.Builder
,SdkBuilder<CreateServerlessCacheRequest.Builder,CreateServerlessCacheRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- CreateServerlessCacheRequest
public static interface CreateServerlessCacheRequest.Builder extends ElastiCacheRequest.Builder, SdkPojo, CopyableBuilder<CreateServerlessCacheRequest.Builder,CreateServerlessCacheRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CreateServerlessCacheRequest.Builder
cacheUsageLimits(Consumer<CacheUsageLimits.Builder> cacheUsageLimits)
Sets the cache usage limits for storage and ElastiCache Processing Units for the cache.CreateServerlessCacheRequest.Builder
cacheUsageLimits(CacheUsageLimits cacheUsageLimits)
Sets the cache usage limits for storage and ElastiCache Processing Units for the cache.CreateServerlessCacheRequest.Builder
dailySnapshotTime(String dailySnapshotTime)
The daily time that snapshots will be created from the new serverless cache.CreateServerlessCacheRequest.Builder
description(String description)
User-provided description for the serverless cache.CreateServerlessCacheRequest.Builder
engine(String engine)
The name of the cache engine to be used for creating the serverless cache.CreateServerlessCacheRequest.Builder
kmsKeyId(String kmsKeyId)
ARN of the customer managed key for encrypting the data at rest.CreateServerlessCacheRequest.Builder
majorEngineVersion(String majorEngineVersion)
The version of the cache engine that will be used to create the serverless cache.CreateServerlessCacheRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
CreateServerlessCacheRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
CreateServerlessCacheRequest.Builder
securityGroupIds(String... securityGroupIds)
A list of the one or more VPC security groups to be associated with the serverless cache.CreateServerlessCacheRequest.Builder
securityGroupIds(Collection<String> securityGroupIds)
A list of the one or more VPC security groups to be associated with the serverless cache.CreateServerlessCacheRequest.Builder
serverlessCacheName(String serverlessCacheName)
User-provided identifier for the serverless cache.CreateServerlessCacheRequest.Builder
snapshotArnsToRestore(String... snapshotArnsToRestore)
The ARN(s) of the snapshot that the new serverless cache will be created from.CreateServerlessCacheRequest.Builder
snapshotArnsToRestore(Collection<String> snapshotArnsToRestore)
The ARN(s) of the snapshot that the new serverless cache will be created from.CreateServerlessCacheRequest.Builder
snapshotRetentionLimit(Integer snapshotRetentionLimit)
The number of snapshots that will be retained for the serverless cache that is being created.CreateServerlessCacheRequest.Builder
subnetIds(String... subnetIds)
A list of the identifiers of the subnets where the VPC endpoint for the serverless cache will be deployed.CreateServerlessCacheRequest.Builder
subnetIds(Collection<String> subnetIds)
A list of the identifiers of the subnets where the VPC endpoint for the serverless cache will be deployed.CreateServerlessCacheRequest.Builder
tags(Collection<Tag> tags)
The list of tags (key, value) pairs to be added to the serverless cache resource.CreateServerlessCacheRequest.Builder
tags(Consumer<Tag.Builder>... tags)
The list of tags (key, value) pairs to be added to the serverless cache resource.CreateServerlessCacheRequest.Builder
tags(Tag... tags)
The list of tags (key, value) pairs to be added to the serverless cache resource.CreateServerlessCacheRequest.Builder
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 Detail
-
serverlessCacheName
CreateServerlessCacheRequest.Builder serverlessCacheName(String 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
CreateServerlessCacheRequest.Builder description(String 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
CreateServerlessCacheRequest.Builder engine(String 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
CreateServerlessCacheRequest.Builder majorEngineVersion(String 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
CreateServerlessCacheRequest.Builder cacheUsageLimits(CacheUsageLimits 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:
cacheUsageLimits(CacheUsageLimits)
-
kmsKeyId
CreateServerlessCacheRequest.Builder kmsKeyId(String 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
CreateServerlessCacheRequest.Builder securityGroupIds(Collection<String> 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
CreateServerlessCacheRequest.Builder securityGroupIds(String... 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
CreateServerlessCacheRequest.Builder snapshotArnsToRestore(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.
-
tags
CreateServerlessCacheRequest.Builder tags(Collection<Tag> 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
CreateServerlessCacheRequest.Builder tags(Tag... 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
CreateServerlessCacheRequest.Builder tags(Consumer<Tag.Builder>... 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 to#tags(List
.) - 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:
#tags(java.util.Collection
)
-
userGroupId
CreateServerlessCacheRequest.Builder userGroupId(String 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
CreateServerlessCacheRequest.Builder subnetIds(Collection<String> 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
CreateServerlessCacheRequest.Builder subnetIds(String... 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
CreateServerlessCacheRequest.Builder snapshotRetentionLimit(Integer 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
CreateServerlessCacheRequest.Builder dailySnapshotTime(String 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)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
CreateServerlessCacheRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-