com.pulumi.gcp.storage.kotlin.inputs.TransferJobTransferSpecGcsDataSinkArgs.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.TransferJobTransferSpecGcsDataSinkArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property bucketName Google Cloud Storage bucket name.
* @property path Root path to transfer objects. Must be an empty string or full path name that ends with a '/'. This field is treated as an object prefix. As such, it should generally not begin with a '/'.
*/
public data class TransferJobTransferSpecGcsDataSinkArgs(
public val bucketName: Output,
public val path: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.storage.inputs.TransferJobTransferSpecGcsDataSinkArgs =
com.pulumi.gcp.storage.inputs.TransferJobTransferSpecGcsDataSinkArgs.builder()
.bucketName(bucketName.applyValue({ args0 -> args0 }))
.path(path?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TransferJobTransferSpecGcsDataSinkArgs].
*/
@PulumiTagMarker
public class TransferJobTransferSpecGcsDataSinkArgsBuilder internal constructor() {
private var bucketName: Output? = null
private var path: Output? = null
/**
* @param value Google Cloud Storage bucket name.
*/
@JvmName("xlmnphadkqjwvoxn")
public suspend fun bucketName(`value`: Output) {
this.bucketName = value
}
/**
* @param value Root path to transfer objects. Must be an empty string or full path name that ends with a '/'. This field is treated as an object prefix. As such, it should generally not begin with a '/'.
*/
@JvmName("qwfonogyterexmri")
public suspend fun path(`value`: Output) {
this.path = value
}
/**
* @param value Google Cloud Storage bucket name.
*/
@JvmName("kfihvwnmrwlrcffn")
public suspend fun bucketName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.bucketName = mapped
}
/**
* @param value Root path to transfer objects. Must be an empty string or full path name that ends with a '/'. This field is treated as an object prefix. As such, it should generally not begin with a '/'.
*/
@JvmName("iiamogvbkgpnuqqf")
public suspend fun path(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.path = mapped
}
internal fun build(): TransferJobTransferSpecGcsDataSinkArgs =
TransferJobTransferSpecGcsDataSinkArgs(
bucketName = bucketName ?: throw PulumiNullFieldException("bucketName"),
path = path,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy