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

com.pulumi.gcp.dataloss.kotlin.inputs.PreventionInspectTemplateInspectConfigLimitsArgs.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.PreventionInspectTemplateInspectConfigLimitsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property maxFindingsPerInfoTypes Configuration of findings limit given for specified infoTypes.
 * Structure is documented below.
 * @property maxFindingsPerItem Max number of findings that will be returned for each item scanned. The maximum returned is 2000.
 * @property maxFindingsPerRequest Max number of findings that will be returned per request/job. The maximum returned is 2000.
 */
public data class PreventionInspectTemplateInspectConfigLimitsArgs(
    public val maxFindingsPerInfoTypes: Output>? = null,
    public val maxFindingsPerItem: Output,
    public val maxFindingsPerRequest: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionInspectTemplateInspectConfigLimitsArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionInspectTemplateInspectConfigLimitsArgs.builder()
            .maxFindingsPerInfoTypes(
                maxFindingsPerInfoTypes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .maxFindingsPerItem(maxFindingsPerItem.applyValue({ args0 -> args0 }))
            .maxFindingsPerRequest(maxFindingsPerRequest.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PreventionInspectTemplateInspectConfigLimitsArgs].
 */
@PulumiTagMarker
public class PreventionInspectTemplateInspectConfigLimitsArgsBuilder internal constructor() {
    private var maxFindingsPerInfoTypes:
        Output>? = null

    private var maxFindingsPerItem: Output? = null

    private var maxFindingsPerRequest: Output? = null

    /**
     * @param value Configuration of findings limit given for specified infoTypes.
     * Structure is documented below.
     */
    @JvmName("emdsdhovrbmqdxlu")
    public suspend fun maxFindingsPerInfoTypes(`value`: Output>) {
        this.maxFindingsPerInfoTypes = value
    }

    @JvmName("ilbtmvcbemlkygah")
    public suspend fun maxFindingsPerInfoTypes(vararg values: Output) {
        this.maxFindingsPerInfoTypes = Output.all(values.asList())
    }

    /**
     * @param values Configuration of findings limit given for specified infoTypes.
     * Structure is documented below.
     */
    @JvmName("bcwwpstlffykwyfu")
    public suspend fun maxFindingsPerInfoTypes(values: List>) {
        this.maxFindingsPerInfoTypes = Output.all(values)
    }

    /**
     * @param value Max number of findings that will be returned for each item scanned. The maximum returned is 2000.
     */
    @JvmName("qimivqkpgtmfquvj")
    public suspend fun maxFindingsPerItem(`value`: Output) {
        this.maxFindingsPerItem = value
    }

    /**
     * @param value Max number of findings that will be returned per request/job. The maximum returned is 2000.
     */
    @JvmName("vvkyirrpeguffxxd")
    public suspend fun maxFindingsPerRequest(`value`: Output) {
        this.maxFindingsPerRequest = value
    }

    /**
     * @param value Configuration of findings limit given for specified infoTypes.
     * Structure is documented below.
     */
    @JvmName("oejmmcdygehkwpkv")
    public suspend fun maxFindingsPerInfoTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxFindingsPerInfoTypes = mapped
    }

    /**
     * @param argument Configuration of findings limit given for specified infoTypes.
     * Structure is documented below.
     */
    @JvmName("ayenlmwlqnaojtkv")
    public suspend fun maxFindingsPerInfoTypes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.maxFindingsPerInfoTypes = mapped
    }

    /**
     * @param argument Configuration of findings limit given for specified infoTypes.
     * Structure is documented below.
     */
    @JvmName("tbxxavhjucokkiwb")
    public suspend fun maxFindingsPerInfoTypes(vararg argument: suspend PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.maxFindingsPerInfoTypes = mapped
    }

    /**
     * @param argument Configuration of findings limit given for specified infoTypes.
     * Structure is documented below.
     */
    @JvmName("ljvmtptxrfgnljoi")
    public suspend fun maxFindingsPerInfoTypes(argument: suspend PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.maxFindingsPerInfoTypes = mapped
    }

    /**
     * @param values Configuration of findings limit given for specified infoTypes.
     * Structure is documented below.
     */
    @JvmName("qvhjhthkgbhilmxg")
    public suspend fun maxFindingsPerInfoTypes(vararg values: PreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.maxFindingsPerInfoTypes = mapped
    }

    /**
     * @param value Max number of findings that will be returned for each item scanned. The maximum returned is 2000.
     */
    @JvmName("tocjemnfcedpxdqy")
    public suspend fun maxFindingsPerItem(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.maxFindingsPerItem = mapped
    }

    /**
     * @param value Max number of findings that will be returned per request/job. The maximum returned is 2000.
     */
    @JvmName("vqpjgyxewpnvfsgf")
    public suspend fun maxFindingsPerRequest(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.maxFindingsPerRequest = mapped
    }

    internal fun build(): PreventionInspectTemplateInspectConfigLimitsArgs =
        PreventionInspectTemplateInspectConfigLimitsArgs(
            maxFindingsPerInfoTypes = maxFindingsPerInfoTypes,
            maxFindingsPerItem = maxFindingsPerItem ?: throw PulumiNullFieldException("maxFindingsPerItem"),
            maxFindingsPerRequest = maxFindingsPerRequest ?: throw
                PulumiNullFieldException("maxFindingsPerRequest"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy