public static final class CopyJobConfiguration.Builder extends JobConfiguration.Builder<CopyJobConfiguration,CopyJobConfiguration.Builder>
Modifier and Type | Method and Description |
---|---|
CopyJobConfiguration |
build()
Creates an object.
|
CopyJobConfiguration.Builder |
setCreateDisposition(JobInfo.CreateDisposition createDisposition)
Sets whether the job is allowed to create new tables.
|
CopyJobConfiguration.Builder |
setDestinationEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration) |
CopyJobConfiguration.Builder |
setDestinationExpirationTime(String destinationExpirationTime)
Sets the time when the destination table expires.
|
CopyJobConfiguration.Builder |
setDestinationTable(TableId destinationTable)
Sets the destination table of the copy job.
|
CopyJobConfiguration.Builder |
setJobTimeoutMs(Long jobTimeoutMs)
[Optional] Job timeout in milliseconds.
|
CopyJobConfiguration.Builder |
setLabels(Map<String,String> labels)
The labels associated with this job.
|
CopyJobConfiguration.Builder |
setOperationType(String operationType)
Sets the supported operation types (COPY, CLONE, SNAPSHOT or RESTORE) in table copy job.
|
CopyJobConfiguration.Builder |
setSourceTables(List<TableId> sourceTables)
Sets the source tables to copy.
|
CopyJobConfiguration.Builder |
setWriteDisposition(JobInfo.WriteDisposition writeDisposition)
Sets the action that should occur if the destination table already exists.
|
public CopyJobConfiguration.Builder setSourceTables(List<TableId> sourceTables)
public CopyJobConfiguration.Builder setDestinationTable(TableId destinationTable)
public CopyJobConfiguration.Builder setOperationType(String operationType)
public CopyJobConfiguration.Builder setDestinationExpirationTime(String destinationExpirationTime)
public CopyJobConfiguration.Builder setDestinationEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration)
public CopyJobConfiguration.Builder setCreateDisposition(JobInfo.CreateDisposition createDisposition)
public CopyJobConfiguration.Builder setWriteDisposition(JobInfo.WriteDisposition writeDisposition)
public CopyJobConfiguration.Builder setLabels(Map<String,String> labels)
labels
- labels or null
for nonepublic CopyJobConfiguration.Builder setJobTimeoutMs(Long jobTimeoutMs)
jobTimeoutMs
- jobTimeoutMs or null
for nonepublic CopyJobConfiguration build()
JobConfiguration.Builder
build
in class JobConfiguration.Builder<CopyJobConfiguration,CopyJobConfiguration.Builder>
Copyright © 2023 Google LLC. All rights reserved.