com.pulumi.gcp.bigtable.kotlin.outputs.GCPolicyMaxAge.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.bigtable.kotlin.outputs
import kotlin.Deprecated
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @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 GCPolicyMaxAge(
@Deprecated(
message = """
Deprecated in favor of duration
""",
)
public val days: Int? = null,
public val duration: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.bigtable.outputs.GCPolicyMaxAge): GCPolicyMaxAge =
GCPolicyMaxAge(
days = javaType.days().map({ args0 -> args0 }).orElse(null),
duration = javaType.duration().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy