com.pulumi.gcp.storage.kotlin.inputs.TransferJobTransferSpecTransferOptionsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.storage.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.storage.inputs.TransferJobTransferSpecTransferOptionsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property deleteObjectsFromSourceAfterTransfer Whether objects should be deleted from the source after they are transferred to the sink. Note that this option and `delete_objects_unique_in_sink` are mutually exclusive.
* @property deleteObjectsUniqueInSink Whether objects that exist only in the sink should be deleted. Note that this option and
* `delete_objects_from_source_after_transfer` are mutually exclusive.
* @property overwriteObjectsAlreadyExistingInSink Whether overwriting objects that already exist in the sink is allowed.
* @property overwriteWhen When to overwrite objects that already exist in the sink. If not set, overwrite behavior is determined by `overwrite_objects_already_existing_in_sink`. Possible values: ALWAYS, DIFFERENT, NEVER.
*/
public data class TransferJobTransferSpecTransferOptionsArgs(
public val deleteObjectsFromSourceAfterTransfer: Output? = null,
public val deleteObjectsUniqueInSink: Output? = null,
public val overwriteObjectsAlreadyExistingInSink: Output? = null,
public val overwriteWhen: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.storage.inputs.TransferJobTransferSpecTransferOptionsArgs =
com.pulumi.gcp.storage.inputs.TransferJobTransferSpecTransferOptionsArgs.builder()
.deleteObjectsFromSourceAfterTransfer(
deleteObjectsFromSourceAfterTransfer?.applyValue({ args0 ->
args0
}),
)
.deleteObjectsUniqueInSink(deleteObjectsUniqueInSink?.applyValue({ args0 -> args0 }))
.overwriteObjectsAlreadyExistingInSink(
overwriteObjectsAlreadyExistingInSink?.applyValue({ args0 ->
args0
}),
)
.overwriteWhen(overwriteWhen?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TransferJobTransferSpecTransferOptionsArgs].
*/
@PulumiTagMarker
public class TransferJobTransferSpecTransferOptionsArgsBuilder internal constructor() {
private var deleteObjectsFromSourceAfterTransfer: Output? = null
private var deleteObjectsUniqueInSink: Output? = null
private var overwriteObjectsAlreadyExistingInSink: Output? = null
private var overwriteWhen: Output? = null
/**
* @param value Whether objects should be deleted from the source after they are transferred to the sink. Note that this option and `delete_objects_unique_in_sink` are mutually exclusive.
*/
@JvmName("addksdssrhnivmiw")
public suspend fun deleteObjectsFromSourceAfterTransfer(`value`: Output) {
this.deleteObjectsFromSourceAfterTransfer = value
}
/**
* @param value Whether objects that exist only in the sink should be deleted. Note that this option and
* `delete_objects_from_source_after_transfer` are mutually exclusive.
*/
@JvmName("wvmagrnloulmpxlx")
public suspend fun deleteObjectsUniqueInSink(`value`: Output) {
this.deleteObjectsUniqueInSink = value
}
/**
* @param value Whether overwriting objects that already exist in the sink is allowed.
*/
@JvmName("auoadxdpakimuwjp")
public suspend fun overwriteObjectsAlreadyExistingInSink(`value`: Output) {
this.overwriteObjectsAlreadyExistingInSink = value
}
/**
* @param value When to overwrite objects that already exist in the sink. If not set, overwrite behavior is determined by `overwrite_objects_already_existing_in_sink`. Possible values: ALWAYS, DIFFERENT, NEVER.
*/
@JvmName("tfqklnhkbspowvsc")
public suspend fun overwriteWhen(`value`: Output) {
this.overwriteWhen = value
}
/**
* @param value Whether objects should be deleted from the source after they are transferred to the sink. Note that this option and `delete_objects_unique_in_sink` are mutually exclusive.
*/
@JvmName("qwgxjamrypsfimcj")
public suspend fun deleteObjectsFromSourceAfterTransfer(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.deleteObjectsFromSourceAfterTransfer = mapped
}
/**
* @param value Whether objects that exist only in the sink should be deleted. Note that this option and
* `delete_objects_from_source_after_transfer` are mutually exclusive.
*/
@JvmName("uymsuspbtjkifkkh")
public suspend fun deleteObjectsUniqueInSink(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.deleteObjectsUniqueInSink = mapped
}
/**
* @param value Whether overwriting objects that already exist in the sink is allowed.
*/
@JvmName("tmkhvdemgjpcytgp")
public suspend fun overwriteObjectsAlreadyExistingInSink(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.overwriteObjectsAlreadyExistingInSink = mapped
}
/**
* @param value When to overwrite objects that already exist in the sink. If not set, overwrite behavior is determined by `overwrite_objects_already_existing_in_sink`. Possible values: ALWAYS, DIFFERENT, NEVER.
*/
@JvmName("dfgjhaaasskrmpya")
public suspend fun overwriteWhen(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.overwriteWhen = mapped
}
internal fun build(): TransferJobTransferSpecTransferOptionsArgs =
TransferJobTransferSpecTransferOptionsArgs(
deleteObjectsFromSourceAfterTransfer = deleteObjectsFromSourceAfterTransfer,
deleteObjectsUniqueInSink = deleteObjectsUniqueInSink,
overwriteObjectsAlreadyExistingInSink = overwriteObjectsAlreadyExistingInSink,
overwriteWhen = overwriteWhen,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy