Interface ServerlessCacheSnapshot.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ServerlessCacheSnapshot.Builder,
,ServerlessCacheSnapshot> SdkBuilder<ServerlessCacheSnapshot.Builder,
,ServerlessCacheSnapshot> SdkPojo
- Enclosing class:
ServerlessCacheSnapshot
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of a serverless cache snapshot.bytesUsedForCache
(String bytesUsedForCache) The total size of a serverless cache snapshot, in bytes.createTime
(Instant createTime) The date and time that the source serverless cache's metadata and cache data set was obtained for the snapshot.expiryTime
(Instant expiryTime) The time that the serverless cache snapshot will expire.The ID of the Amazon Web Services Key Management Service (KMS) key of a serverless cache snapshot.default ServerlessCacheSnapshot.Builder
serverlessCacheConfiguration
(Consumer<ServerlessCacheConfiguration.Builder> serverlessCacheConfiguration) The configuration of the serverless cache, at the time the snapshot was taken.serverlessCacheConfiguration
(ServerlessCacheConfiguration serverlessCacheConfiguration) The configuration of the serverless cache, at the time the snapshot was taken.serverlessCacheSnapshotName
(String serverlessCacheSnapshotName) The identifier of a serverless cache snapshot.snapshotType
(String snapshotType) The type of snapshot of serverless cache.The current status of the serverless cache.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
serverlessCacheSnapshotName
The identifier of a serverless cache snapshot. Available for Redis only.
- Parameters:
serverlessCacheSnapshotName
- The identifier of a serverless cache snapshot. Available for Redis 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 Redis only.
- Parameters:
arn
- The Amazon Resource Name (ARN) of a serverless cache snapshot. Available for Redis 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 Redis only.
- Parameters:
kmsKeyId
- The ID of the Amazon Web Services Key Management Service (KMS) key of a serverless cache snapshot. Available for Redis only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotType
The type of snapshot of serverless cache. Available for Redis only.
- Parameters:
snapshotType
- The type of snapshot of serverless cache. Available for Redis 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 Redis only.
- Parameters:
status
- The current status of the serverless cache. Available for Redis only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createTime
The date and time that the source serverless cache's metadata and cache data set was obtained for the snapshot. Available for Redis 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 Redis only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expiryTime
The time that the serverless cache snapshot will expire. Available for Redis only.
- Parameters:
expiryTime
- The time that the serverless cache snapshot will expire. Available for Redis only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bytesUsedForCache
The total size of a serverless cache snapshot, in bytes. Available for Redis only.
- Parameters:
bytesUsedForCache
- The total size of a serverless cache snapshot, in bytes. Available for Redis 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 Redis only.
- Parameters:
serverlessCacheConfiguration
- The configuration of the serverless cache, at the time the snapshot was taken. Available for Redis 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 Redis only.
This is a convenience method that creates an instance of theServerlessCacheConfiguration.Builder
avoiding the need to create one manually viaServerlessCacheConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toserverlessCacheConfiguration(ServerlessCacheConfiguration)
.- Parameters:
serverlessCacheConfiguration
- a consumer that will call methods onServerlessCacheConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-