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

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

@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.PreventionDiscoveryConfigTargetCloudStorageTargetArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property conditions In addition to matching the filter, these conditions must be true before a profile is generated.
 * Structure is documented below.
 * @property disabled Disable profiling for buckets that match this filter.
 * @property filter The buckets the generation_cadence applies to. The first target with a matching filter will be the one to apply to a bucket.
 * Structure is documented below.
 * @property generationCadence How often and when to update profiles. New buckets that match both the filter and conditions are scanned as quickly as possible depending on system capacity.
 * Structure is documented below.
 */
public data class PreventionDiscoveryConfigTargetCloudStorageTargetArgs(
    public val conditions: Output? =
        null,
    public val disabled: Output? =
        null,
    public val filter: Output,
    public val generationCadence: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigTargetCloudStorageTargetArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigTargetCloudStorageTargetArgs.builder()
            .conditions(conditions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .disabled(disabled?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .filter(filter.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .generationCadence(
                generationCadence?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [PreventionDiscoveryConfigTargetCloudStorageTargetArgs].
 */
@PulumiTagMarker
public class PreventionDiscoveryConfigTargetCloudStorageTargetArgsBuilder internal constructor() {
    private var conditions: Output? =
        null

    private var disabled: Output? =
        null

    private var filter: Output? = null

    private var generationCadence:
        Output? = null

    /**
     * @param value In addition to matching the filter, these conditions must be true before a profile is generated.
     * Structure is documented below.
     */
    @JvmName("aqvwvxiamiyvtdoa")
    public suspend fun conditions(`value`: Output) {
        this.conditions = value
    }

    /**
     * @param value Disable profiling for buckets that match this filter.
     */
    @JvmName("updsjckpvcpwpryd")
    public suspend fun disabled(`value`: Output) {
        this.disabled = value
    }

    /**
     * @param value The buckets the generation_cadence applies to. The first target with a matching filter will be the one to apply to a bucket.
     * Structure is documented below.
     */
    @JvmName("wiyvgvjnhhvgsugo")
    public suspend fun filter(`value`: Output) {
        this.filter = value
    }

    /**
     * @param value How often and when to update profiles. New buckets that match both the filter and conditions are scanned as quickly as possible depending on system capacity.
     * Structure is documented below.
     */
    @JvmName("ywhlanabvdawwgmk")
    public suspend fun generationCadence(`value`: Output) {
        this.generationCadence = value
    }

    /**
     * @param value In addition to matching the filter, these conditions must be true before a profile is generated.
     * Structure is documented below.
     */
    @JvmName("rydjeudvmbhpoixb")
    public suspend fun conditions(`value`: PreventionDiscoveryConfigTargetCloudStorageTargetConditionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.conditions = mapped
    }

    /**
     * @param argument In addition to matching the filter, these conditions must be true before a profile is generated.
     * Structure is documented below.
     */
    @JvmName("sgacwqbkakcfftka")
    public suspend fun conditions(argument: suspend PreventionDiscoveryConfigTargetCloudStorageTargetConditionsArgsBuilder.() -> Unit) {
        val toBeMapped =
            PreventionDiscoveryConfigTargetCloudStorageTargetConditionsArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param value Disable profiling for buckets that match this filter.
     */
    @JvmName("lsvoyywevgodjmct")
    public suspend fun disabled(`value`: PreventionDiscoveryConfigTargetCloudStorageTargetDisabledArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.disabled = mapped
    }

    /**
     * @param argument Disable profiling for buckets that match this filter.
     */
    @JvmName("vorgukbqihtrjtpx")
    public suspend fun disabled(argument: suspend PreventionDiscoveryConfigTargetCloudStorageTargetDisabledArgsBuilder.() -> Unit) {
        val toBeMapped =
            PreventionDiscoveryConfigTargetCloudStorageTargetDisabledArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.disabled = mapped
    }

    /**
     * @param value The buckets the generation_cadence applies to. The first target with a matching filter will be the one to apply to a bucket.
     * Structure is documented below.
     */
    @JvmName("qurxjmddlomefbvr")
    public suspend fun filter(`value`: PreventionDiscoveryConfigTargetCloudStorageTargetFilterArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.filter = mapped
    }

    /**
     * @param argument The buckets the generation_cadence applies to. The first target with a matching filter will be the one to apply to a bucket.
     * Structure is documented below.
     */
    @JvmName("nqtpxfrpquojtyop")
    public suspend fun filter(argument: suspend PreventionDiscoveryConfigTargetCloudStorageTargetFilterArgsBuilder.() -> Unit) {
        val toBeMapped =
            PreventionDiscoveryConfigTargetCloudStorageTargetFilterArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.filter = mapped
    }

    /**
     * @param value How often and when to update profiles. New buckets that match both the filter and conditions are scanned as quickly as possible depending on system capacity.
     * Structure is documented below.
     */
    @JvmName("cxqawlmwmcpqsgnj")
    public suspend fun generationCadence(`value`: PreventionDiscoveryConfigTargetCloudStorageTargetGenerationCadenceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.generationCadence = mapped
    }

    /**
     * @param argument How often and when to update profiles. New buckets that match both the filter and conditions are scanned as quickly as possible depending on system capacity.
     * Structure is documented below.
     */
    @JvmName("ylhlefxvjmypnyeh")
    public suspend fun generationCadence(argument: suspend PreventionDiscoveryConfigTargetCloudStorageTargetGenerationCadenceArgsBuilder.() -> Unit) {
        val toBeMapped =
            PreventionDiscoveryConfigTargetCloudStorageTargetGenerationCadenceArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.generationCadence = mapped
    }

    internal fun build(): PreventionDiscoveryConfigTargetCloudStorageTargetArgs =
        PreventionDiscoveryConfigTargetCloudStorageTargetArgs(
            conditions = conditions,
            disabled = disabled,
            filter = filter ?: throw PulumiNullFieldException("filter"),
            generationCadence = generationCadence,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy