com.pulumi.gcp.bigtable.kotlin.outputs.GCPolicyMaxAge.kt Maven / Gradle / Ivy
@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),
)
}
}