![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.iotanalytics.kotlin.inputs.DatasetRetentionPeriodArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.iotanalytics.kotlin.inputs
import com.pulumi.awsnative.iotanalytics.inputs.DatasetRetentionPeriodArgs.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 DatasetRetentionPeriodArgs(
public val numberOfDays: Output? = null,
public val unlimited: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iotanalytics.inputs.DatasetRetentionPeriodArgs =
com.pulumi.awsnative.iotanalytics.inputs.DatasetRetentionPeriodArgs.builder()
.numberOfDays(numberOfDays?.applyValue({ args0 -> args0 }))
.unlimited(unlimited?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DatasetRetentionPeriodArgs].
*/
@PulumiTagMarker
public class DatasetRetentionPeriodArgsBuilder 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("ysobkkmacrtomrtv")
public suspend fun numberOfDays(`value`: Output) {
this.numberOfDays = value
}
/**
* @param value If true, message data is kept indefinitely.
*/
@JvmName("xpitlmcfdkcayybh")
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("ibjwvjoiqndivlqx")
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("whqtgddxdwfmoytw")
public suspend fun unlimited(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.unlimited = mapped
}
internal fun build(): DatasetRetentionPeriodArgs = DatasetRetentionPeriodArgs(
numberOfDays = numberOfDays,
unlimited = unlimited,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy