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 Details

    • 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

      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 the CacheUsageLimits.Builder avoiding the need to create one manually via CacheUsageLimits.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to cacheUsageLimits(CacheUsageLimits).

      Parameters:
      cacheUsageLimits - a consumer that will call methods on CacheUsageLimits.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

      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

      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 the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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

      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)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.