com.pulumi.gcp.storage.kotlin.inputs.TransferJobTransferSpecGcsDataSourceArgs.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.TransferJobTransferSpecGcsDataSourceArgs.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 TransferJobTransferSpecGcsDataSourceArgs(
public val bucketName: Output,
public val path: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.storage.inputs.TransferJobTransferSpecGcsDataSourceArgs =
com.pulumi.gcp.storage.inputs.TransferJobTransferSpecGcsDataSourceArgs.builder()
.bucketName(bucketName.applyValue({ args0 -> args0 }))
.path(path?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TransferJobTransferSpecGcsDataSourceArgs].
*/
@PulumiTagMarker
public class TransferJobTransferSpecGcsDataSourceArgsBuilder internal constructor() {
private var bucketName: Output? = null
private var path: Output? = null
/**
* @param value Google Cloud Storage bucket name.
*/
@JvmName("vivyhhpdqrnyjnlh")
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("wgwewtrkrvppxoqt")
public suspend fun path(`value`: Output) {
this.path = value
}
/**
* @param value Google Cloud Storage bucket name.
*/
@JvmName("bshgldoieihvunrp")
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("xotipjvcvlnhsqwy")
public suspend fun path(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.path = mapped
}
internal fun build(): TransferJobTransferSpecGcsDataSourceArgs =
TransferJobTransferSpecGcsDataSourceArgs(
bucketName = bucketName ?: throw PulumiNullFieldException("bucketName"),
path = path,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy