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

com.pulumi.kubernetes.resource.v1alpha2.kotlin.inputs.NamedResourcesStringSliceArgs.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: 4.18.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.resource.v1alpha2.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesStringSliceArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * NamedResourcesStringSlice contains a slice of strings.
 * @property strings Strings is the slice of strings.
 */
public data class NamedResourcesStringSliceArgs(
    public val strings: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesStringSliceArgs =
        com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesStringSliceArgs.builder()
            .strings(strings.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    /**
     * @param value Strings is the slice of strings.
     */
    @JvmName("beqwpiofndepyiom")
    public suspend fun strings(`value`: Output>) {
        this.strings = value
    }

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

    /**
     * @param values Strings is the slice of strings.
     */
    @JvmName("wxkhblaaauhcinch")
    public suspend fun strings(values: List>) {
        this.strings = Output.all(values)
    }

    /**
     * @param value Strings is the slice of strings.
     */
    @JvmName("nidegfodiergfdvp")
    public suspend fun strings(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.strings = mapped
    }

    /**
     * @param values Strings is the slice of strings.
     */
    @JvmName("jhlskiltoivhjuyx")
    public suspend fun strings(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.strings = mapped
    }

    internal fun build(): NamedResourcesStringSliceArgs = NamedResourcesStringSliceArgs(
        strings = strings ?: throw PulumiNullFieldException("strings"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy