public abstract static class BackupInfo.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract Backup |
build()
Builds the backup from this builder.
|
abstract BackupInfo.Builder |
setDatabase(DatabaseId database)
Required for creating a new backup.
|
abstract BackupInfo.Builder |
setExpireTime(com.google.cloud.Timestamp expireTime)
Required for creating a new backup.
|
public abstract BackupInfo.Builder setExpireTime(com.google.cloud.Timestamp expireTime)
Sets the expiration time of the backup. The expiration time of the backup, with microseconds granularity that must be at least 6 hours and at most 366 days from the time the request is received. Once the expireTime has passed, Cloud Spanner will delete the backup and free the resources used by the backup.
public abstract BackupInfo.Builder setDatabase(DatabaseId database)
Sets the source database to use for creating the backup.
public abstract Backup build()
Copyright © 2020 Google LLC. All rights reserved.