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

com.pulumi.awsnative.frauddetector.kotlin.VariableArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.frauddetector.kotlin

import com.pulumi.awsnative.frauddetector.VariableArgs.builder
import com.pulumi.awsnative.frauddetector.kotlin.enums.VariableDataSource
import com.pulumi.awsnative.frauddetector.kotlin.enums.VariableDataType
import com.pulumi.awsnative.frauddetector.kotlin.enums.VariableType
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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.collections.List
import kotlin.jvm.JvmName

/**
 * A resource schema for a Variable in Amazon Fraud Detector.
 * @property dataSource The source of the data.
 * @property dataType The data type.
 * @property defaultValue The default value for the variable when no value is received.
 * @property description The description.
 * @property name The name of the variable.
 * @property tags Tags associated with this variable.
 * @property variableType The variable type. For more information see https://docs.aws.amazon.com/frauddetector/latest/ug/create-a-variable.html#variable-types
 */
public data class VariableArgs(
    public val dataSource: Output? = null,
    public val dataType: Output? = null,
    public val defaultValue: Output? = null,
    public val description: Output? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
    public val variableType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.frauddetector.VariableArgs =
        com.pulumi.awsnative.frauddetector.VariableArgs.builder()
            .dataSource(dataSource?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .dataType(dataType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .defaultValue(defaultValue?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .variableType(variableType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [VariableArgs].
 */
@PulumiTagMarker
public class VariableArgsBuilder internal constructor() {
    private var dataSource: Output? = null

    private var dataType: Output? = null

    private var defaultValue: Output? = null

    private var description: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    private var variableType: Output? = null

    /**
     * @param value The source of the data.
     */
    @JvmName("vyyqbgynddftbeta")
    public suspend fun dataSource(`value`: Output) {
        this.dataSource = value
    }

    /**
     * @param value The data type.
     */
    @JvmName("wrptcqdyxrdokcjf")
    public suspend fun dataType(`value`: Output) {
        this.dataType = value
    }

    /**
     * @param value The default value for the variable when no value is received.
     */
    @JvmName("ahlxikgesxjjjcpj")
    public suspend fun defaultValue(`value`: Output) {
        this.defaultValue = value
    }

    /**
     * @param value The description.
     */
    @JvmName("hqurkrrliwqmqpls")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name of the variable.
     */
    @JvmName("ascubdsdlyqkvght")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Tags associated with this variable.
     */
    @JvmName("avxoxukbyqurcgdd")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Tags associated with this variable.
     */
    @JvmName("itkwyhbfqrrcllce")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The variable type. For more information see https://docs.aws.amazon.com/frauddetector/latest/ug/create-a-variable.html#variable-types
     */
    @JvmName("rranlxnnsfknyuft")
    public suspend fun variableType(`value`: Output) {
        this.variableType = value
    }

    /**
     * @param value The source of the data.
     */
    @JvmName("dvvyawrkxgjdjyta")
    public suspend fun dataSource(`value`: VariableDataSource?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataSource = mapped
    }

    /**
     * @param value The data type.
     */
    @JvmName("kceqhvmxocaowysf")
    public suspend fun dataType(`value`: VariableDataType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataType = mapped
    }

    /**
     * @param value The default value for the variable when no value is received.
     */
    @JvmName("esueywjuhesqnlan")
    public suspend fun defaultValue(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultValue = mapped
    }

    /**
     * @param value The description.
     */
    @JvmName("wuhowojdklnhrmrd")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The name of the variable.
     */
    @JvmName("gnxklvvlxqirtlup")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Tags associated with this variable.
     */
    @JvmName("sjyksiqrmhclusni")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Tags associated with this variable.
     */
    @JvmName("dcirmrfqdynvrtmi")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Tags associated with this variable.
     */
    @JvmName("gsxcsrthcwbbjouf")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Tags associated with this variable.
     */
    @JvmName("sclilgtyakrykwcc")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Tags associated with this variable.
     */
    @JvmName("meuhjitfllvvflrn")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The variable type. For more information see https://docs.aws.amazon.com/frauddetector/latest/ug/create-a-variable.html#variable-types
     */
    @JvmName("xwytqidauuomjtxa")
    public suspend fun variableType(`value`: VariableType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.variableType = mapped
    }

    internal fun build(): VariableArgs = VariableArgs(
        dataSource = dataSource,
        dataType = dataType,
        defaultValue = defaultValue,
        description = description,
        name = name,
        tags = tags,
        variableType = variableType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy