Class CopyBackupRequest

java.lang.Object
com.google.cloud.bigtable.admin.v2.models.CopyBackupRequest

public final class CopyBackupRequest extends Object
Build CopyBackupRequest for CopyBackupRequest.
  • Method Details

    • of

      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.
    • setSourceInstance

      public CopyBackupRequest setSourceInstance(String instanceId)
    • setSourceInstance

      public CopyBackupRequest setSourceInstance(String projectId, String instanceId)
    • setDestination

      public CopyBackupRequest setDestination(String clusterId, String backupId)
    • setExpireTime

      public CopyBackupRequest setExpireTime(org.threeten.bp.Instant expireTime)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toProto

      @InternalApi public com.google.bigtable.admin.v2.CopyBackupRequest toProto(@Nonnull String projectId, @Nonnull String instanceId)