Interface ServerlessCacheSnapshot.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ServerlessCacheSnapshot.Builder,ServerlessCacheSnapshot>
,SdkBuilder<ServerlessCacheSnapshot.Builder,ServerlessCacheSnapshot>
,SdkPojo
- Enclosing class:
- ServerlessCacheSnapshot
public static interface ServerlessCacheSnapshot.Builder extends SdkPojo, CopyableBuilder<ServerlessCacheSnapshot.Builder,ServerlessCacheSnapshot>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ServerlessCacheSnapshot.Builder
arn(String arn)
The Amazon Resource Name (ARN) of a serverless cache snapshot.ServerlessCacheSnapshot.Builder
bytesUsedForCache(String bytesUsedForCache)
The total size of a serverless cache snapshot, in bytes.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.ServerlessCacheSnapshot.Builder
expiryTime(Instant expiryTime)
The time that the serverless cache snapshot will expire.ServerlessCacheSnapshot.Builder
kmsKeyId(String kmsKeyId)
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.ServerlessCacheSnapshot.Builder
serverlessCacheConfiguration(ServerlessCacheConfiguration serverlessCacheConfiguration)
The configuration of the serverless cache, at the time the snapshot was taken.ServerlessCacheSnapshot.Builder
serverlessCacheSnapshotName(String serverlessCacheSnapshotName)
The identifier of a serverless cache snapshot.ServerlessCacheSnapshot.Builder
snapshotType(String snapshotType)
The type of snapshot of serverless cache.ServerlessCacheSnapshot.Builder
status(String status)
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 Detail
-
serverlessCacheSnapshotName
ServerlessCacheSnapshot.Builder serverlessCacheSnapshotName(String 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
ServerlessCacheSnapshot.Builder arn(String 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
ServerlessCacheSnapshot.Builder kmsKeyId(String 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
ServerlessCacheSnapshot.Builder snapshotType(String 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
ServerlessCacheSnapshot.Builder status(String 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
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 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
ServerlessCacheSnapshot.Builder expiryTime(Instant 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
ServerlessCacheSnapshot.Builder bytesUsedForCache(String 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:
serverlessCacheConfiguration(ServerlessCacheConfiguration)
-
-