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

com.pulumi.kubernetes.resource.v1alpha2.kotlin.inputs.NamedResourcesStringSlicePatchArgs.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.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.PulumiTagMarker
import com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesStringSlicePatchArgs.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 NamedResourcesStringSlicePatchArgs(
    public val strings: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesStringSlicePatchArgs =
        com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesStringSlicePatchArgs.builder()
            .strings(strings?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

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

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

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

    /**
     * @param value Strings is the slice of strings.
     */
    @JvmName("dbwythwyyxebpovy")
    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("llbdessfdhjecvnk")
    public suspend fun strings(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.strings = mapped
    }

    internal fun build(): NamedResourcesStringSlicePatchArgs = NamedResourcesStringSlicePatchArgs(
        strings = strings,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy