Interface ServerlessCacheSnapshot.Builder

  • Method Details

    • serverlessCacheSnapshotName

      ServerlessCacheSnapshot.Builder serverlessCacheSnapshotName(String serverlessCacheSnapshotName)

      The identifier of a serverless cache snapshot. Available for Valkey, Redis OSS and Serverless Memcached only.

      Parameters:
      serverlessCacheSnapshotName - The identifier of a serverless cache snapshot. Available for Valkey, Redis OSS and Serverless Memcached only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • arn

      The Amazon Resource Name (ARN) of a serverless cache snapshot. Available for Valkey, Redis OSS and Serverless Memcached only.

      Parameters:
      arn - The Amazon Resource Name (ARN) of a serverless cache snapshot. Available for Valkey, Redis OSS and Serverless Memcached only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • kmsKeyId

      The ID of the Amazon Web Services Key Management Service (KMS) key of a serverless cache snapshot. Available for Valkey, Redis OSS and Serverless Memcached only.

      Parameters:
      kmsKeyId - The ID of the Amazon Web Services Key Management Service (KMS) key of a serverless cache snapshot. Available for Valkey, Redis OSS and Serverless Memcached only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • snapshotType

      ServerlessCacheSnapshot.Builder snapshotType(String snapshotType)

      The type of snapshot of serverless cache. Available for Valkey, Redis OSS and Serverless Memcached only.

      Parameters:
      snapshotType - The type of snapshot of serverless cache. Available for Valkey, Redis OSS and Serverless Memcached only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The current status of the serverless cache. Available for Valkey, Redis OSS and Serverless Memcached only.

      Parameters:
      status - The current status of the serverless cache. Available for Valkey, Redis OSS and Serverless Memcached only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createTime

      ServerlessCacheSnapshot.Builder createTime(Instant createTime)

      The date and time that the source serverless cache's metadata and cache data set was obtained for the snapshot. Available for Valkey, Redis OSS and Serverless Memcached only.

      Parameters:
      createTime - The date and time that the source serverless cache's metadata and cache data set was obtained for the snapshot. Available for Valkey, Redis OSS and Serverless Memcached only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • expiryTime

      ServerlessCacheSnapshot.Builder expiryTime(Instant expiryTime)

      The time that the serverless cache snapshot will expire. Available for Valkey, Redis OSS and Serverless Memcached only.

      Parameters:
      expiryTime - The time that the serverless cache snapshot will expire. Available for Valkey, Redis OSS and Serverless Memcached only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bytesUsedForCache

      ServerlessCacheSnapshot.Builder bytesUsedForCache(String bytesUsedForCache)

      The total size of a serverless cache snapshot, in bytes. Available for Valkey, Redis OSS and Serverless Memcached only.

      Parameters:
      bytesUsedForCache - The total size of a serverless cache snapshot, in bytes. Available for Valkey, Redis OSS and Serverless Memcached only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serverlessCacheConfiguration

      ServerlessCacheSnapshot.Builder serverlessCacheConfiguration(ServerlessCacheConfiguration serverlessCacheConfiguration)

      The configuration of the serverless cache, at the time the snapshot was taken. Available for Valkey, Redis OSS and Serverless Memcached only.

      Parameters:
      serverlessCacheConfiguration - The configuration of the serverless cache, at the time the snapshot was taken. Available for Valkey, Redis OSS and Serverless Memcached only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serverlessCacheConfiguration

      default ServerlessCacheSnapshot.Builder serverlessCacheConfiguration(Consumer<ServerlessCacheConfiguration.Builder> serverlessCacheConfiguration)

      The configuration of the serverless cache, at the time the snapshot was taken. Available for Valkey, Redis OSS and Serverless Memcached only.

      This is a convenience method that creates an instance of the ServerlessCacheConfiguration.Builder avoiding the need to create one manually via ServerlessCacheConfiguration.builder().

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

      Parameters:
      serverlessCacheConfiguration - a consumer that will call methods on ServerlessCacheConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: