All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.securityhub.kotlin.inputs.AutomationRuleCriteriaLastObservedAtArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.securityhub.kotlin.inputs

import com.pulumi.aws.securityhub.inputs.AutomationRuleCriteriaLastObservedAtArgs.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 AutomationRuleCriteriaLastObservedAtArgs(
    public val dateRange: Output? = null,
    public val end: Output? = null,
    public val start: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.securityhub.inputs.AutomationRuleCriteriaLastObservedAtArgs = com.pulumi.aws.securityhub.inputs.AutomationRuleCriteriaLastObservedAtArgs.builder()
        .dateRange(dateRange?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .end(end?.applyValue({ args0 -> args0 }))
        .start(start?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AutomationRuleCriteriaLastObservedAtArgs].
 */
@PulumiTagMarker
public class AutomationRuleCriteriaLastObservedAtArgsBuilder 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("ovkhmftmqbdkbyxl")
    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("pyfwdgjuabqpqhxc")
    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("kcjpsmdvyrapjcgh")
    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("xmxruejkwpsyxlss")
    public suspend fun dateRange(`value`: AutomationRuleCriteriaLastObservedAtDateRangeArgs?) {
        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("pmpmresnevbxlnbj")
    public suspend fun dateRange(argument: suspend AutomationRuleCriteriaLastObservedAtDateRangeArgsBuilder.() -> Unit) {
        val toBeMapped = AutomationRuleCriteriaLastObservedAtDateRangeArgsBuilder().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("ribmkajagpelgfaa")
    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("otsyplhxmmmatrld")
    public suspend fun start(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.start = mapped
    }

    internal fun build(): AutomationRuleCriteriaLastObservedAtArgs =
        AutomationRuleCriteriaLastObservedAtArgs(
            dateRange = dateRange,
            end = end,
            start = start,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy