com.pulumi.awsnative.qbusiness.kotlin.inputs.PluginS3Args.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.qbusiness.kotlin.inputs
import com.pulumi.awsnative.qbusiness.inputs.PluginS3Args.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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 bucket
* @property key
*/
public data class PluginS3Args(
public val bucket: Output,
public val key: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.qbusiness.inputs.PluginS3Args =
com.pulumi.awsnative.qbusiness.inputs.PluginS3Args.builder()
.bucket(bucket.applyValue({ args0 -> args0 }))
.key(key.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PluginS3Args].
*/
@PulumiTagMarker
public class PluginS3ArgsBuilder internal constructor() {
private var bucket: Output? = null
private var key: Output? = null
/**
* @param value
*/
@JvmName("vdcjtyblibghsimf")
public suspend fun bucket(`value`: Output) {
this.bucket = value
}
/**
* @param value
*/
@JvmName("rxrhmfokmuawamrw")
public suspend fun key(`value`: Output) {
this.key = value
}
/**
* @param value
*/
@JvmName("cbpopmntinlqxibi")
public suspend fun bucket(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.bucket = mapped
}
/**
* @param value
*/
@JvmName("xpllkcsfgfvibrsq")
public suspend fun key(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.key = mapped
}
internal fun build(): PluginS3Args = PluginS3Args(
bucket = bucket ?: throw PulumiNullFieldException("bucket"),
key = key ?: throw PulumiNullFieldException("key"),
)
}