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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-18 UTC."],[],[],null,["# Class CopyBackupRequest (2.65.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.65.0 (latest)](/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.63.0](/java/docs/reference/google-cloud-bigtable/2.63.0/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.62.0](/java/docs/reference/google-cloud-bigtable/2.62.0/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.61.0](/java/docs/reference/google-cloud-bigtable/2.61.0/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.60.0](/java/docs/reference/google-cloud-bigtable/2.60.0/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.59.0](/java/docs/reference/google-cloud-bigtable/2.59.0/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.58.2](/java/docs/reference/google-cloud-bigtable/2.58.2/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.56.0](/java/docs/reference/google-cloud-bigtable/2.56.0/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.54.0](/java/docs/reference/google-cloud-bigtable/2.54.0/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.52.0](/java/docs/reference/google-cloud-bigtable/2.52.0/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.51.2](/java/docs/reference/google-cloud-bigtable/2.51.2/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.49.0](/java/docs/reference/google-cloud-bigtable/2.49.0/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.46.0](/java/docs/reference/google-cloud-bigtable/2.46.0/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.45.1](/java/docs/reference/google-cloud-bigtable/2.45.1/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.44.1](/java/docs/reference/google-cloud-bigtable/2.44.1/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.43.0](/java/docs/reference/google-cloud-bigtable/2.43.0/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.42.0](/java/docs/reference/google-cloud-bigtable/2.42.0/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.40.0](/java/docs/reference/google-cloud-bigtable/2.40.0/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.39.5](/java/docs/reference/google-cloud-bigtable/2.39.5/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.37.0](/java/docs/reference/google-cloud-bigtable/2.37.0/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.35.1](/java/docs/reference/google-cloud-bigtable/2.35.1/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.34.0](/java/docs/reference/google-cloud-bigtable/2.34.0/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.33.0](/java/docs/reference/google-cloud-bigtable/2.33.0/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.32.0](/java/docs/reference/google-cloud-bigtable/2.32.0/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.31.0](/java/docs/reference/google-cloud-bigtable/2.31.0/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.30.0](/java/docs/reference/google-cloud-bigtable/2.30.0/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.29.1](/java/docs/reference/google-cloud-bigtable/2.29.1/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest)\n- [2.28.0](/java/docs/reference/google-cloud-bigtable/2.28.0/com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest) \n\n public final class CopyBackupRequest\n\nBuild CopyBackupRequest for com.google.bigtable.admin.v2.CopyBackupRequest. \n\nInheritance\n-----------\n\n[Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e CopyBackupRequest \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Methods\n--------------\n\n### of(String sourceClusterId, String sourceBackupId)\n\n public static CopyBackupRequest of(String sourceClusterId, String sourceBackupId)\n\nCreate a CopyBackupRequest object. It assumes the source backup is located in the same\ninstance and project as the destination backup, which is where the BigtableTableAdminClient is\ncreated in. use setSourceInstance(\"\\[INSTANCE\\]\") if the source backup is located in a different\ninstance. use setSourceInstance(\"\\[PROJECT\\]\", \"\\[INSTANCE\\]\") if the source backup is located in a\ndifferent project.\n\nMethods\n-------\n\n### equals(Object o)\n\n public boolean equals(Object o)\n\n**Overrides** \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-)\n\n### hashCode()\n\n public int hashCode()\n\n**Overrides** \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--)\n\n### setDestination(String clusterId, String backupId)\n\n public CopyBackupRequest setDestination(String clusterId, String backupId)\n\n### setExpireTime(Instant expireTime)\n\n public CopyBackupRequest setExpireTime(Instant expireTime)\n\n### setSourceInstance(String instanceId)\n\n public CopyBackupRequest setSourceInstance(String instanceId)\n\n### setSourceInstance(String projectId, String instanceId)\n\n public CopyBackupRequest setSourceInstance(String projectId, String instanceId)\n\n### toProto(String projectId, String instanceId)\n\n public CopyBackupRequest toProto(String projectId, String instanceId)\n\n| **Internal Only**: This feature is not stable for application use."]]