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

com.pulumi.azurenative.servicefabric.kotlin.inputs.SettingsSectionDescriptionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.servicefabric.kotlin.inputs

import com.pulumi.azurenative.servicefabric.inputs.SettingsSectionDescriptionArgs.builder
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.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Describes a section in the fabric settings of the cluster.
 * @property name The section name of the fabric settings.
 * @property parameters The collection of parameters in the section.
 */
public data class SettingsSectionDescriptionArgs(
    public val name: Output,
    public val parameters: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.servicefabric.inputs.SettingsSectionDescriptionArgs = com.pulumi.azurenative.servicefabric.inputs.SettingsSectionDescriptionArgs.builder()
        .name(name.applyValue({ args0 -> args0 }))
        .parameters(
            parameters.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        ).build()
}

/**
 * Builder for [SettingsSectionDescriptionArgs].
 */
@PulumiTagMarker
public class SettingsSectionDescriptionArgsBuilder internal constructor() {
    private var name: Output? = null

    private var parameters: Output>? = null

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

    /**
     * @param value The collection of parameters in the section.
     */
    @JvmName("xeiebvjrfwofpsor")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

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

    /**
     * @param values The collection of parameters in the section.
     */
    @JvmName("bglgndrdpexghkem")
    public suspend fun parameters(values: List>) {
        this.parameters = Output.all(values)
    }

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

    /**
     * @param value The collection of parameters in the section.
     */
    @JvmName("gpwoawlonekcbact")
    public suspend fun parameters(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param argument The collection of parameters in the section.
     */
    @JvmName("nmjxskmlgrbedtwv")
    public suspend fun parameters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SettingsParameterDescriptionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument The collection of parameters in the section.
     */
    @JvmName("hrcgieuteyftvwkk")
    public suspend fun parameters(vararg argument: suspend SettingsParameterDescriptionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SettingsParameterDescriptionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument The collection of parameters in the section.
     */
    @JvmName("unchvuxuftwnflfx")
    public suspend fun parameters(argument: suspend SettingsParameterDescriptionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            SettingsParameterDescriptionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param values The collection of parameters in the section.
     */
    @JvmName("phcbwxgwvpltteix")
    public suspend fun parameters(vararg values: SettingsParameterDescriptionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    internal fun build(): SettingsSectionDescriptionArgs = SettingsSectionDescriptionArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        parameters = parameters ?: throw PulumiNullFieldException("parameters"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy