![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.gcp.storage.kotlin.inputs.BucketAutoclassArgs.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.BucketAutoclassArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property enabled While set to `true`, autoclass automatically transitions objects in your bucket to appropriate storage classes based on each object's access pattern.
* @property terminalStorageClass The storage class that objects in the bucket eventually transition to if they are not read for a certain length of time. Supported values include: `NEARLINE`, `ARCHIVE`.
*/
public data class BucketAutoclassArgs(
public val enabled: Output,
public val terminalStorageClass: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.storage.inputs.BucketAutoclassArgs =
com.pulumi.gcp.storage.inputs.BucketAutoclassArgs.builder()
.enabled(enabled.applyValue({ args0 -> args0 }))
.terminalStorageClass(terminalStorageClass?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BucketAutoclassArgs].
*/
@PulumiTagMarker
public class BucketAutoclassArgsBuilder internal constructor() {
private var enabled: Output? = null
private var terminalStorageClass: Output? = null
/**
* @param value While set to `true`, autoclass automatically transitions objects in your bucket to appropriate storage classes based on each object's access pattern.
*/
@JvmName("sdnklebfagtkceqf")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value The storage class that objects in the bucket eventually transition to if they are not read for a certain length of time. Supported values include: `NEARLINE`, `ARCHIVE`.
*/
@JvmName("weikhmrdhwbdsxea")
public suspend fun terminalStorageClass(`value`: Output) {
this.terminalStorageClass = value
}
/**
* @param value While set to `true`, autoclass automatically transitions objects in your bucket to appropriate storage classes based on each object's access pattern.
*/
@JvmName("mgvsiomngbhkajdi")
public suspend fun enabled(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value The storage class that objects in the bucket eventually transition to if they are not read for a certain length of time. Supported values include: `NEARLINE`, `ARCHIVE`.
*/
@JvmName("xioxrxkhnyrinbsl")
public suspend fun terminalStorageClass(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.terminalStorageClass = mapped
}
internal fun build(): BucketAutoclassArgs = BucketAutoclassArgs(
enabled = enabled ?: throw PulumiNullFieldException("enabled"),
terminalStorageClass = terminalStorageClass,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy