com.pulumi.digitalocean.kotlin.inputs.GetSpacesBucketObjectPlainArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.inputs
import com.pulumi.digitalocean.inputs.GetSpacesBucketObjectPlainArgs.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
/**
* A collection of arguments for invoking getSpacesBucketObject.
* @property bucket The name of the bucket to read the object from.
* @property key The full path to the object inside the bucket
* @property range
* @property region The slug of the region where the bucket is stored.
* @property versionId Specific version ID of the object returned (defaults to latest version)
*/
public data class GetSpacesBucketObjectPlainArgs(
public val bucket: String,
public val key: String,
public val range: String? = null,
public val region: String,
public val versionId: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.GetSpacesBucketObjectPlainArgs =
com.pulumi.digitalocean.inputs.GetSpacesBucketObjectPlainArgs.builder()
.bucket(bucket.let({ args0 -> args0 }))
.key(key.let({ args0 -> args0 }))
.range(range?.let({ args0 -> args0 }))
.region(region.let({ args0 -> args0 }))
.versionId(versionId?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetSpacesBucketObjectPlainArgs].
*/
@PulumiTagMarker
public class GetSpacesBucketObjectPlainArgsBuilder internal constructor() {
private var bucket: String? = null
private var key: String? = null
private var range: String? = null
private var region: String? = null
private var versionId: String? = null
/**
* @param value The name of the bucket to read the object from.
*/
@JvmName("oyfxvyitfabuhhsm")
public suspend fun bucket(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.bucket = mapped
}
/**
* @param value The full path to the object inside the bucket
*/
@JvmName("panapopxluaocbqu")
public suspend fun key(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.key = mapped
}
/**
* @param value
*/
@JvmName("xmquaiyhygvcncpn")
public suspend fun range(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.range = mapped
}
/**
* @param value The slug of the region where the bucket is stored.
*/
@JvmName("ywwywtgppfjtwrdl")
public suspend fun region(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.region = mapped
}
/**
* @param value Specific version ID of the object returned (defaults to latest version)
*/
@JvmName("ivsbxbtxlghxgdtb")
public suspend fun versionId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.versionId = mapped
}
internal fun build(): GetSpacesBucketObjectPlainArgs = GetSpacesBucketObjectPlainArgs(
bucket = bucket ?: throw PulumiNullFieldException("bucket"),
key = key ?: throw PulumiNullFieldException("key"),
range = range,
region = region ?: throw PulumiNullFieldException("region"),
versionId = versionId,
)
}