com.pulumi.aws.securityhub.kotlin.inputs.AutomationRuleCriteriaFirstObservedAtArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.securityhub.kotlin.inputs
import com.pulumi.aws.securityhub.inputs.AutomationRuleCriteriaFirstObservedAtArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property dateRange A configuration block of the date range for the date filter. See date_range below for more details.
* @property end An end date for the date filter. Required with `start` if `date_range` is not specified.
* @property start A start date for the date filter. Required with `end` if `date_range` is not specified.
*/
public data class AutomationRuleCriteriaFirstObservedAtArgs(
public val dateRange: Output? = null,
public val end: Output? = null,
public val start: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.securityhub.inputs.AutomationRuleCriteriaFirstObservedAtArgs = com.pulumi.aws.securityhub.inputs.AutomationRuleCriteriaFirstObservedAtArgs.builder()
.dateRange(dateRange?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.end(end?.applyValue({ args0 -> args0 }))
.start(start?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AutomationRuleCriteriaFirstObservedAtArgs].
*/
@PulumiTagMarker
public class AutomationRuleCriteriaFirstObservedAtArgsBuilder internal constructor() {
private var dateRange: Output? = null
private var end: Output? = null
private var start: Output? = null
/**
* @param value A configuration block of the date range for the date filter. See date_range below for more details.
*/
@JvmName("oxrngsnjwhlajigs")
public suspend fun dateRange(`value`: Output) {
this.dateRange = value
}
/**
* @param value An end date for the date filter. Required with `start` if `date_range` is not specified.
*/
@JvmName("kmllncdqqdojunix")
public suspend fun end(`value`: Output) {
this.end = value
}
/**
* @param value A start date for the date filter. Required with `end` if `date_range` is not specified.
*/
@JvmName("yictgpkqodvhbmcl")
public suspend fun start(`value`: Output) {
this.start = value
}
/**
* @param value A configuration block of the date range for the date filter. See date_range below for more details.
*/
@JvmName("tejexukvlfaegfdm")
public suspend fun dateRange(`value`: AutomationRuleCriteriaFirstObservedAtDateRangeArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dateRange = mapped
}
/**
* @param argument A configuration block of the date range for the date filter. See date_range below for more details.
*/
@JvmName("fbunxeepwdwtqgxa")
public suspend fun dateRange(argument: suspend AutomationRuleCriteriaFirstObservedAtDateRangeArgsBuilder.() -> Unit) {
val toBeMapped = AutomationRuleCriteriaFirstObservedAtDateRangeArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.dateRange = mapped
}
/**
* @param value An end date for the date filter. Required with `start` if `date_range` is not specified.
*/
@JvmName("fhfbxxckobuwwqst")
public suspend fun end(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.end = mapped
}
/**
* @param value A start date for the date filter. Required with `end` if `date_range` is not specified.
*/
@JvmName("dafqjpasmsqlnwey")
public suspend fun start(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.start = mapped
}
internal fun build(): AutomationRuleCriteriaFirstObservedAtArgs =
AutomationRuleCriteriaFirstObservedAtArgs(
dateRange = dateRange,
end = end,
start = start,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy