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

com.pulumi.gcp.memcache.kotlin.inputs.InstanceMemcacheParametersArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.memcache.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.memcache.inputs.InstanceMemcacheParametersArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property id (Output)
 * This is a unique ID associated with this set of parameters.
 * @property params User-defined set of parameters to use in the memcache process.
 */
public data class InstanceMemcacheParametersArgs(
    public val id: Output? = null,
    public val params: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.memcache.inputs.InstanceMemcacheParametersArgs =
        com.pulumi.gcp.memcache.inputs.InstanceMemcacheParametersArgs.builder()
            .id(id?.applyValue({ args0 -> args0 }))
            .params(
                params?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [InstanceMemcacheParametersArgs].
 */
@PulumiTagMarker
public class InstanceMemcacheParametersArgsBuilder internal constructor() {
    private var id: Output? = null

    private var params: Output>? = null

    /**
     * @param value (Output)
     * This is a unique ID associated with this set of parameters.
     */
    @JvmName("hwhjgyvbnaseyqhx")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value User-defined set of parameters to use in the memcache process.
     */
    @JvmName("ioknhfuhptknlvqb")
    public suspend fun params(`value`: Output>) {
        this.params = value
    }

    /**
     * @param value (Output)
     * This is a unique ID associated with this set of parameters.
     */
    @JvmName("vcvoikblidsdxdfp")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value User-defined set of parameters to use in the memcache process.
     */
    @JvmName("vuqrsisiidevqgpi")
    public suspend fun params(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.params = mapped
    }

    /**
     * @param values User-defined set of parameters to use in the memcache process.
     */
    @JvmName("hxkpomvqjyfiuusm")
    public fun params(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.params = mapped
    }

    internal fun build(): InstanceMemcacheParametersArgs = InstanceMemcacheParametersArgs(
        id = id,
        params = params,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy