
com.pulumi.awsnative.iotanalytics.kotlin.inputs.DatastoreRetentionPeriodArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.iotanalytics.kotlin.inputs
import com.pulumi.awsnative.iotanalytics.inputs.DatastoreRetentionPeriodArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property numberOfDays The number of days that message data is kept. The `unlimited` parameter must be false.
* @property unlimited If true, message data is kept indefinitely.
*/
public data class DatastoreRetentionPeriodArgs(
public val numberOfDays: Output? = null,
public val unlimited: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iotanalytics.inputs.DatastoreRetentionPeriodArgs =
com.pulumi.awsnative.iotanalytics.inputs.DatastoreRetentionPeriodArgs.builder()
.numberOfDays(numberOfDays?.applyValue({ args0 -> args0 }))
.unlimited(unlimited?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DatastoreRetentionPeriodArgs].
*/
@PulumiTagMarker
public class DatastoreRetentionPeriodArgsBuilder internal constructor() {
private var numberOfDays: Output? = null
private var unlimited: Output? = null
/**
* @param value The number of days that message data is kept. The `unlimited` parameter must be false.
*/
@JvmName("uujrimskjrsudqws")
public suspend fun numberOfDays(`value`: Output) {
this.numberOfDays = value
}
/**
* @param value If true, message data is kept indefinitely.
*/
@JvmName("iydsdyutwjgtowcy")
public suspend fun unlimited(`value`: Output) {
this.unlimited = value
}
/**
* @param value The number of days that message data is kept. The `unlimited` parameter must be false.
*/
@JvmName("kvlonfqswynxwkos")
public suspend fun numberOfDays(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.numberOfDays = mapped
}
/**
* @param value If true, message data is kept indefinitely.
*/
@JvmName("walsopggcovpgavd")
public suspend fun unlimited(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.unlimited = mapped
}
internal fun build(): DatastoreRetentionPeriodArgs = DatastoreRetentionPeriodArgs(
numberOfDays = numberOfDays,
unlimited = unlimited,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy