All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.bigtable.kotlin.inputs.GCPolicyMaxAgeArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.bigtable.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.bigtable.inputs.GCPolicyMaxAgeArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Deprecated
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property days Number of days before applying GC policy.
 * @property duration Duration before applying GC policy (ex. "8h"). This is required when `days` isn't set
 * -----
 */
public data class GCPolicyMaxAgeArgs(
    @Deprecated(
        message = """
  Deprecated in favor of duration
  """,
    )
    public val days: Output? = null,
    public val duration: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.bigtable.inputs.GCPolicyMaxAgeArgs =
        com.pulumi.gcp.bigtable.inputs.GCPolicyMaxAgeArgs.builder()
            .days(days?.applyValue({ args0 -> args0 }))
            .duration(duration?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GCPolicyMaxAgeArgs].
 */
@PulumiTagMarker
public class GCPolicyMaxAgeArgsBuilder internal constructor() {
    private var days: Output? = null

    private var duration: Output? = null

    /**
     * @param value Number of days before applying GC policy.
     */
    @Deprecated(
        message = """
  Deprecated in favor of duration
  """,
    )
    @JvmName("jdaxuabadktsbwsk")
    public suspend fun days(`value`: Output) {
        this.days = value
    }

    /**
     * @param value Duration before applying GC policy (ex. "8h"). This is required when `days` isn't set
     * -----
     */
    @JvmName("otnbiwppfdmvbyfw")
    public suspend fun duration(`value`: Output) {
        this.duration = value
    }

    /**
     * @param value Number of days before applying GC policy.
     */
    @Deprecated(
        message = """
  Deprecated in favor of duration
  """,
    )
    @JvmName("hgxbnuvooledlpjv")
    public suspend fun days(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.days = mapped
    }

    /**
     * @param value Duration before applying GC policy (ex. "8h"). This is required when `days` isn't set
     * -----
     */
    @JvmName("gbhqckjtnismoljk")
    public suspend fun duration(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.duration = mapped
    }

    internal fun build(): GCPolicyMaxAgeArgs = GCPolicyMaxAgeArgs(
        days = days,
        duration = duration,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy