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

com.pulumi.gcp.dataloss.kotlin.inputs.PreventionJobTriggerInspectJobStorageConfigTimespanConfigArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.dataloss.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigTimespanConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property enableAutoPopulationOfTimespanConfig When the job is started by a JobTrigger we will automatically figure out a valid startTime to avoid
 * scanning files that have not been modified since the last time the JobTrigger executed. This will
 * be based on the time of the execution of the last run of the JobTrigger or the timespan endTime
 * used in the last run of the JobTrigger.
 * @property endTime Exclude files, tables, or rows newer than this value. If not set, no upper time limit is applied.
 * @property startTime Exclude files, tables, or rows older than this value. If not set, no lower time limit is applied.
 * @property timestampField Specification of the field containing the timestamp of scanned items.
 * Structure is documented below.
 */
public data class PreventionJobTriggerInspectJobStorageConfigTimespanConfigArgs(
    public val enableAutoPopulationOfTimespanConfig: Output? = null,
    public val endTime: Output? = null,
    public val startTime: Output? = null,
    public val timestampField: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigTimespanConfigArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigTimespanConfigArgs.builder()
            .enableAutoPopulationOfTimespanConfig(
                enableAutoPopulationOfTimespanConfig?.applyValue({ args0 ->
                    args0
                }),
            )
            .endTime(endTime?.applyValue({ args0 -> args0 }))
            .startTime(startTime?.applyValue({ args0 -> args0 }))
            .timestampField(
                timestampField?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [PreventionJobTriggerInspectJobStorageConfigTimespanConfigArgs].
 */
@PulumiTagMarker
public class PreventionJobTriggerInspectJobStorageConfigTimespanConfigArgsBuilder internal constructor() {
    private var enableAutoPopulationOfTimespanConfig: Output? = null

    private var endTime: Output? = null

    private var startTime: Output? = null

    private var timestampField:
        Output? = null

    /**
     * @param value When the job is started by a JobTrigger we will automatically figure out a valid startTime to avoid
     * scanning files that have not been modified since the last time the JobTrigger executed. This will
     * be based on the time of the execution of the last run of the JobTrigger or the timespan endTime
     * used in the last run of the JobTrigger.
     */
    @JvmName("mwvrdmtisifhvxvm")
    public suspend fun enableAutoPopulationOfTimespanConfig(`value`: Output) {
        this.enableAutoPopulationOfTimespanConfig = value
    }

    /**
     * @param value Exclude files, tables, or rows newer than this value. If not set, no upper time limit is applied.
     */
    @JvmName("nebvuitbodbrrlke")
    public suspend fun endTime(`value`: Output) {
        this.endTime = value
    }

    /**
     * @param value Exclude files, tables, or rows older than this value. If not set, no lower time limit is applied.
     */
    @JvmName("moihxwjvjfsetxpf")
    public suspend fun startTime(`value`: Output) {
        this.startTime = value
    }

    /**
     * @param value Specification of the field containing the timestamp of scanned items.
     * Structure is documented below.
     */
    @JvmName("yskyrvyfiaafsvvu")
    public suspend fun timestampField(`value`: Output) {
        this.timestampField = value
    }

    /**
     * @param value When the job is started by a JobTrigger we will automatically figure out a valid startTime to avoid
     * scanning files that have not been modified since the last time the JobTrigger executed. This will
     * be based on the time of the execution of the last run of the JobTrigger or the timespan endTime
     * used in the last run of the JobTrigger.
     */
    @JvmName("jpsdmlmntlvdmduc")
    public suspend fun enableAutoPopulationOfTimespanConfig(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableAutoPopulationOfTimespanConfig = mapped
    }

    /**
     * @param value Exclude files, tables, or rows newer than this value. If not set, no upper time limit is applied.
     */
    @JvmName("xubphutotfnugdbb")
    public suspend fun endTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endTime = mapped
    }

    /**
     * @param value Exclude files, tables, or rows older than this value. If not set, no lower time limit is applied.
     */
    @JvmName("ocjwkgjkokthxtob")
    public suspend fun startTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.startTime = mapped
    }

    /**
     * @param value Specification of the field containing the timestamp of scanned items.
     * Structure is documented below.
     */
    @JvmName("jhosgtpclpeuwdjp")
    public suspend fun timestampField(`value`: PreventionJobTriggerInspectJobStorageConfigTimespanConfigTimestampFieldArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timestampField = mapped
    }

    /**
     * @param argument Specification of the field containing the timestamp of scanned items.
     * Structure is documented below.
     */
    @JvmName("iorrpchvjikrtyit")
    public suspend fun timestampField(argument: suspend PreventionJobTriggerInspectJobStorageConfigTimespanConfigTimestampFieldArgsBuilder.() -> Unit) {
        val toBeMapped =
            PreventionJobTriggerInspectJobStorageConfigTimespanConfigTimestampFieldArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.timestampField = mapped
    }

    internal fun build(): PreventionJobTriggerInspectJobStorageConfigTimespanConfigArgs =
        PreventionJobTriggerInspectJobStorageConfigTimespanConfigArgs(
            enableAutoPopulationOfTimespanConfig = enableAutoPopulationOfTimespanConfig,
            endTime = endTime,
            startTime = startTime,
            timestampField = timestampField,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy