
com.pulumi.awsnative.securityhub.kotlin.inputs.InsightDateRangeArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.securityhub.kotlin.inputs
import com.pulumi.awsnative.securityhub.inputs.InsightDateRangeArgs.builder
import com.pulumi.awsnative.securityhub.kotlin.enums.InsightDateRangeUnit
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A date range for the date filter.
* @property unit A date range unit for the date filter.
* @property value A date range value for the date filter.
*/
public data class InsightDateRangeArgs(
public val unit: Output,
public val `value`: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.securityhub.inputs.InsightDateRangeArgs =
com.pulumi.awsnative.securityhub.inputs.InsightDateRangeArgs.builder()
.unit(unit.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.`value`(`value`.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [InsightDateRangeArgs].
*/
@PulumiTagMarker
public class InsightDateRangeArgsBuilder internal constructor() {
private var unit: Output? = null
private var `value`: Output? = null
/**
* @param value A date range unit for the date filter.
*/
@JvmName("oqvjhgsrtggddxhu")
public suspend fun unit(`value`: Output) {
this.unit = value
}
/**
* @param value A date range value for the date filter.
*/
@JvmName("pjfjuiybxvcmmern")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value A date range unit for the date filter.
*/
@JvmName("leuitnimnehfijdq")
public suspend fun unit(`value`: InsightDateRangeUnit) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.unit = mapped
}
/**
* @param value A date range value for the date filter.
*/
@JvmName("vtamgjekkkbasqab")
public suspend fun `value`(`value`: Double) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): InsightDateRangeArgs = InsightDateRangeArgs(
unit = unit ?: throw PulumiNullFieldException("unit"),
`value` = `value` ?: throw PulumiNullFieldException("value"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy