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

com.pulumi.gcp.dataloss.kotlin.inputs.PreventionDeidentifyTemplateDeidentifyConfigImageTransformationsArgs.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.13.1.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.PreventionDeidentifyTemplateDeidentifyConfigImageTransformationsArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property transforms For determination of how redaction of images should occur.
 * Structure is documented below.
 */
public data class PreventionDeidentifyTemplateDeidentifyConfigImageTransformationsArgs(
    public val transforms: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionDeidentifyTemplateDeidentifyConfigImageTransformationsArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionDeidentifyTemplateDeidentifyConfigImageTransformationsArgs.builder()
            .transforms(
                transforms.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value For determination of how redaction of images should occur.
     * Structure is documented below.
     */
    @JvmName("nglhubngqlvpfxtk")
    public suspend fun transforms(`value`: Output>) {
        this.transforms = value
    }

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

    /**
     * @param values For determination of how redaction of images should occur.
     * Structure is documented below.
     */
    @JvmName("yjkrxsdsuurkyjcx")
    public suspend fun transforms(values: List>) {
        this.transforms = Output.all(values)
    }

    /**
     * @param value For determination of how redaction of images should occur.
     * Structure is documented below.
     */
    @JvmName("tvxmwbatwnmqudgo")
    public suspend fun transforms(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.transforms = mapped
    }

    /**
     * @param argument For determination of how redaction of images should occur.
     * Structure is documented below.
     */
    @JvmName("buoysylcxjauccts")
    public suspend fun transforms(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PreventionDeidentifyTemplateDeidentifyConfigImageTransformationsTransformArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.transforms = mapped
    }

    /**
     * @param argument For determination of how redaction of images should occur.
     * Structure is documented below.
     */
    @JvmName("tnkwwnlppopfnyjd")
    public suspend fun transforms(vararg argument: suspend PreventionDeidentifyTemplateDeidentifyConfigImageTransformationsTransformArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PreventionDeidentifyTemplateDeidentifyConfigImageTransformationsTransformArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.transforms = mapped
    }

    /**
     * @param argument For determination of how redaction of images should occur.
     * Structure is documented below.
     */
    @JvmName("fgwcfjwunqiyqsnq")
    public suspend fun transforms(argument: suspend PreventionDeidentifyTemplateDeidentifyConfigImageTransformationsTransformArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                PreventionDeidentifyTemplateDeidentifyConfigImageTransformationsTransformArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.transforms = mapped
    }

    /**
     * @param values For determination of how redaction of images should occur.
     * Structure is documented below.
     */
    @JvmName("gidlcncbbetnxegs")
    public suspend fun transforms(vararg values: PreventionDeidentifyTemplateDeidentifyConfigImageTransformationsTransformArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.transforms = mapped
    }

    internal fun build(): PreventionDeidentifyTemplateDeidentifyConfigImageTransformationsArgs =
        PreventionDeidentifyTemplateDeidentifyConfigImageTransformationsArgs(
            transforms = transforms ?: throw PulumiNullFieldException("transforms"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy