Interface CreateServerlessCacheRequest.Builder

    • 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.
      • 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 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).

        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:
        #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.