Class CopyBackupRequest (2.39.4)

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
Name Description
sourceClusterId String
sourceBackupId String
Returns
Type Description
CopyBackupRequest

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

setDestination(String clusterId, String backupId)

public CopyBackupRequest setDestination(String clusterId, String backupId)
Parameters
Name Description
clusterId String
backupId String
Returns
Type Description
CopyBackupRequest

setExpireTime(Instant expireTime)

public CopyBackupRequest setExpireTime(Instant expireTime)
Parameter
Name Description
expireTime org.threeten.bp.Instant
Returns
Type Description
CopyBackupRequest

setSourceInstance(String instanceId)

public CopyBackupRequest setSourceInstance(String instanceId)
Parameter
Name Description
instanceId String
Returns
Type Description
CopyBackupRequest

setSourceInstance(String projectId, String instanceId)

public CopyBackupRequest setSourceInstance(String projectId, String instanceId)
Parameters
Name Description
projectId String
instanceId String
Returns
Type Description
CopyBackupRequest

toProto(String projectId, String instanceId)

public CopyBackupRequest toProto(String projectId, String instanceId)
Parameters
Name Description
projectId String
instanceId String
Returns
Type Description
com.google.bigtable.admin.v2.CopyBackupRequest