Interface ModifyServerlessCacheRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<ModifyServerlessCacheRequest.Builder,ModifyServerlessCacheRequest>, ElastiCacheRequest.Builder, SdkBuilder<ModifyServerlessCacheRequest.Builder,ModifyServerlessCacheRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
ModifyServerlessCacheRequest

public static interface ModifyServerlessCacheRequest.Builder extends ElastiCacheRequest.Builder, SdkPojo, CopyableBuilder<ModifyServerlessCacheRequest.Builder,ModifyServerlessCacheRequest>
  • Method Details

    • serverlessCacheName

      ModifyServerlessCacheRequest.Builder serverlessCacheName(String 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

      ModifyServerlessCacheRequest.Builder description(String 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

      ModifyServerlessCacheRequest.Builder cacheUsageLimits(CacheUsageLimits 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 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:
    • removeUserGroup

      ModifyServerlessCacheRequest.Builder removeUserGroup(Boolean 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

      ModifyServerlessCacheRequest.Builder userGroupId(String 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

      ModifyServerlessCacheRequest.Builder securityGroupIds(Collection<String> 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

      ModifyServerlessCacheRequest.Builder securityGroupIds(String... 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

      ModifyServerlessCacheRequest.Builder snapshotRetentionLimit(Integer 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

      ModifyServerlessCacheRequest.Builder dailySnapshotTime(String 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 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.