Class CopyBackupRequest (2.37.0)

public final class CopyBackupRequest

Build CopyBackupRequest for com.google.bigtable.admin.v2.CopyBackupRequest.

Inheritance

Object > CopyBackupRequest

Static Methods

of(String sourceClusterId, String sourceBackupId)

public static CopyBackupRequest of(String sourceClusterId, String sourceBackupId)

Create a CopyBackupRequest object. It assumes the source backup is located in the same instance and project as the destination backup, which is where the BigtableTableAdminClient is created in. use setSourceInstance("[INSTANCE]") if the source backup is located in a different instance. use setSourceInstance("[PROJECT]", "[INSTANCE]") if the source backup is located in a different project.

Parameters
NameDescription
sourceClusterIdString
sourceBackupIdString
Returns
TypeDescription
CopyBackupRequest

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

setDestination(String clusterId, String backupId)

public CopyBackupRequest setDestination(String clusterId, String backupId)
Parameters
NameDescription
clusterIdString
backupIdString
Returns
TypeDescription
CopyBackupRequest

setExpireTime(Instant expireTime)

public CopyBackupRequest setExpireTime(Instant expireTime)
Parameter
NameDescription
expireTimeorg.threeten.bp.Instant
Returns
TypeDescription
CopyBackupRequest

setSourceInstance(String instanceId)

public CopyBackupRequest setSourceInstance(String instanceId)
Parameter
NameDescription
instanceIdString
Returns
TypeDescription
CopyBackupRequest

setSourceInstance(String projectId, String instanceId)

public CopyBackupRequest setSourceInstance(String projectId, String instanceId)
Parameters
NameDescription
projectIdString
instanceIdString
Returns
TypeDescription
CopyBackupRequest

toProto(String projectId, String instanceId)

public CopyBackupRequest toProto(String projectId, String instanceId)
Parameters
NameDescription
projectIdString
instanceIdString
Returns
TypeDescription
com.google.bigtable.admin.v2.CopyBackupRequest