com.pulumi.gcp.storage.kotlin.inputs.BucketSoftDeletePolicyArgs.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.BucketSoftDeletePolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property effectiveTime Server-determined value that indicates the time from which the policy, or one with a greater retention, was effective. This value is in RFC 3339 format.
* @property retentionDurationSeconds The duration in seconds that soft-deleted objects in the bucket will be retained and cannot be permanently deleted. Default value is 604800. The value must be in between 604800(7 days) and 7776000(90 days). **Note**: To disable the soft delete policy on a bucket, This field must be set to 0.
*/
public data class BucketSoftDeletePolicyArgs(
public val effectiveTime: Output? = null,
public val retentionDurationSeconds: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.storage.inputs.BucketSoftDeletePolicyArgs =
com.pulumi.gcp.storage.inputs.BucketSoftDeletePolicyArgs.builder()
.effectiveTime(effectiveTime?.applyValue({ args0 -> args0 }))
.retentionDurationSeconds(retentionDurationSeconds?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BucketSoftDeletePolicyArgs].
*/
@PulumiTagMarker
public class BucketSoftDeletePolicyArgsBuilder internal constructor() {
private var effectiveTime: Output? = null
private var retentionDurationSeconds: Output? = null
/**
* @param value Server-determined value that indicates the time from which the policy, or one with a greater retention, was effective. This value is in RFC 3339 format.
*/
@JvmName("angnivtrlajigfni")
public suspend fun effectiveTime(`value`: Output) {
this.effectiveTime = value
}
/**
* @param value The duration in seconds that soft-deleted objects in the bucket will be retained and cannot be permanently deleted. Default value is 604800. The value must be in between 604800(7 days) and 7776000(90 days). **Note**: To disable the soft delete policy on a bucket, This field must be set to 0.
*/
@JvmName("liwoafsnyycvvfba")
public suspend fun retentionDurationSeconds(`value`: Output) {
this.retentionDurationSeconds = value
}
/**
* @param value Server-determined value that indicates the time from which the policy, or one with a greater retention, was effective. This value is in RFC 3339 format.
*/
@JvmName("qroqojphpwnpvdyt")
public suspend fun effectiveTime(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.effectiveTime = mapped
}
/**
* @param value The duration in seconds that soft-deleted objects in the bucket will be retained and cannot be permanently deleted. Default value is 604800. The value must be in between 604800(7 days) and 7776000(90 days). **Note**: To disable the soft delete policy on a bucket, This field must be set to 0.
*/
@JvmName("yoookefhxffxwdjt")
public suspend fun retentionDurationSeconds(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.retentionDurationSeconds = mapped
}
internal fun build(): BucketSoftDeletePolicyArgs = BucketSoftDeletePolicyArgs(
effectiveTime = effectiveTime,
retentionDurationSeconds = retentionDurationSeconds,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy