com.pulumi.gcp.storage.kotlin.outputs.TransferJobTransferSpecTransferOptions.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.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
*
* @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 TransferJobTransferSpecTransferOptions(
public val deleteObjectsFromSourceAfterTransfer: Boolean? = null,
public val deleteObjectsUniqueInSink: Boolean? = null,
public val overwriteObjectsAlreadyExistingInSink: Boolean? = null,
public val overwriteWhen: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.storage.outputs.TransferJobTransferSpecTransferOptions): TransferJobTransferSpecTransferOptions = TransferJobTransferSpecTransferOptions(
deleteObjectsFromSourceAfterTransfer = javaType.deleteObjectsFromSourceAfterTransfer().map({ args0 ->
args0
}).orElse(null),
deleteObjectsUniqueInSink = javaType.deleteObjectsUniqueInSink().map({ args0 ->
args0
}).orElse(null),
overwriteObjectsAlreadyExistingInSink = javaType.overwriteObjectsAlreadyExistingInSink().map({ args0 ->
args0
}).orElse(null),
overwriteWhen = javaType.overwriteWhen().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy