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

com.pulumi.googlenative.testing.v1.kotlin.inputs.ClientInfoArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.testing.v1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.testing.v1.inputs.ClientInfoArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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

/**
 * Information about the client which invoked the test.
 * @property clientInfoDetails The list of detailed information about client.
 * @property name Client name, such as gcloud.
 */
public data class ClientInfoArgs(
    public val clientInfoDetails: Output>? = null,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.testing.v1.inputs.ClientInfoArgs =
        com.pulumi.googlenative.testing.v1.inputs.ClientInfoArgs.builder()
            .clientInfoDetails(
                clientInfoDetails?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .name(name.applyValue({ args0 -> args0 })).build()
}

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

    private var name: Output? = null

    /**
     * @param value The list of detailed information about client.
     */
    @JvmName("rhgewmlqpuuwgieu")
    public suspend fun clientInfoDetails(`value`: Output>) {
        this.clientInfoDetails = value
    }

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

    /**
     * @param values The list of detailed information about client.
     */
    @JvmName("kluokjjokkildolm")
    public suspend fun clientInfoDetails(values: List>) {
        this.clientInfoDetails = Output.all(values)
    }

    /**
     * @param value Client name, such as gcloud.
     */
    @JvmName("hctxvwuptyqsuqqd")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The list of detailed information about client.
     */
    @JvmName("cekjnfhkfanbrsld")
    public suspend fun clientInfoDetails(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientInfoDetails = mapped
    }

    /**
     * @param argument The list of detailed information about client.
     */
    @JvmName("dkbaruueiqvrifnp")
    public suspend fun clientInfoDetails(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ClientInfoDetailArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.clientInfoDetails = mapped
    }

    /**
     * @param argument The list of detailed information about client.
     */
    @JvmName("vxtakqywydktlqio")
    public suspend fun clientInfoDetails(vararg argument: suspend ClientInfoDetailArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ClientInfoDetailArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.clientInfoDetails = mapped
    }

    /**
     * @param argument The list of detailed information about client.
     */
    @JvmName("xgfpapjjrxvnlost")
    public suspend fun clientInfoDetails(argument: suspend ClientInfoDetailArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ClientInfoDetailArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.clientInfoDetails = mapped
    }

    /**
     * @param values The list of detailed information about client.
     */
    @JvmName("cayjrtyrdksjmtyk")
    public suspend fun clientInfoDetails(vararg values: ClientInfoDetailArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientInfoDetails = mapped
    }

    /**
     * @param value Client name, such as gcloud.
     */
    @JvmName("iunphwmttwyycusq")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): ClientInfoArgs = ClientInfoArgs(
        clientInfoDetails = clientInfoDetails,
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy