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

com.pulumi.awsnative.backup.kotlin.inputs.FrameworkControlArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.backup.kotlin.inputs

import com.pulumi.awsnative.backup.inputs.FrameworkControlArgs.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

/**
 *
 * @property controlInputParameters A list of ParameterName and ParameterValue pairs.
 * @property controlName The name of a control. This name is between 1 and 256 characters.
 * @property controlScope The scope of a control. The control scope defines what the control will evaluate. Three examples of control scopes are: a specific backup plan, all backup plans with a specific tag, or all backup plans.
 */
public data class FrameworkControlArgs(
    public val controlInputParameters: Output>? = null,
    public val controlName: Output,
    public val controlScope: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.backup.inputs.FrameworkControlArgs =
        com.pulumi.awsnative.backup.inputs.FrameworkControlArgs.builder()
            .controlInputParameters(
                controlInputParameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .controlName(controlName.applyValue({ args0 -> args0 }))
            .controlScope(controlScope?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var controlName: Output? = null

    private var controlScope: Output? = null

    /**
     * @param value A list of ParameterName and ParameterValue pairs.
     */
    @JvmName("ducborlorebaibnv")
    public suspend fun controlInputParameters(`value`: Output>) {
        this.controlInputParameters = value
    }

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

    /**
     * @param values A list of ParameterName and ParameterValue pairs.
     */
    @JvmName("tmsdvygefagrkoyr")
    public suspend fun controlInputParameters(values: List>) {
        this.controlInputParameters = Output.all(values)
    }

    /**
     * @param value The name of a control. This name is between 1 and 256 characters.
     */
    @JvmName("hqrcvrqxoxtlfoww")
    public suspend fun controlName(`value`: Output) {
        this.controlName = value
    }

    /**
     * @param value The scope of a control. The control scope defines what the control will evaluate. Three examples of control scopes are: a specific backup plan, all backup plans with a specific tag, or all backup plans.
     */
    @JvmName("hnbhwfcdhfpwybtv")
    public suspend fun controlScope(`value`: Output) {
        this.controlScope = value
    }

    /**
     * @param value A list of ParameterName and ParameterValue pairs.
     */
    @JvmName("tcpnpjxkqwugwuob")
    public suspend fun controlInputParameters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.controlInputParameters = mapped
    }

    /**
     * @param argument A list of ParameterName and ParameterValue pairs.
     */
    @JvmName("qdkpfrbtyeilnauu")
    public suspend fun controlInputParameters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FrameworkControlInputParameterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.controlInputParameters = mapped
    }

    /**
     * @param argument A list of ParameterName and ParameterValue pairs.
     */
    @JvmName("fdrpvbnqirdcqebl")
    public suspend fun controlInputParameters(vararg argument: suspend FrameworkControlInputParameterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FrameworkControlInputParameterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.controlInputParameters = mapped
    }

    /**
     * @param argument A list of ParameterName and ParameterValue pairs.
     */
    @JvmName("iaaitbolkeippwif")
    public suspend fun controlInputParameters(argument: suspend FrameworkControlInputParameterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            FrameworkControlInputParameterArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.controlInputParameters = mapped
    }

    /**
     * @param values A list of ParameterName and ParameterValue pairs.
     */
    @JvmName("fnutvfenhqekxswt")
    public suspend fun controlInputParameters(vararg values: FrameworkControlInputParameterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.controlInputParameters = mapped
    }

    /**
     * @param value The name of a control. This name is between 1 and 256 characters.
     */
    @JvmName("aayrskotavcywufe")
    public suspend fun controlName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.controlName = mapped
    }

    /**
     * @param value The scope of a control. The control scope defines what the control will evaluate. Three examples of control scopes are: a specific backup plan, all backup plans with a specific tag, or all backup plans.
     */
    @JvmName("wwtjhldeufskhgeq")
    public suspend fun controlScope(`value`: FrameworkControlControlScopePropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.controlScope = mapped
    }

    /**
     * @param argument The scope of a control. The control scope defines what the control will evaluate. Three examples of control scopes are: a specific backup plan, all backup plans with a specific tag, or all backup plans.
     */
    @JvmName("koailbnrjiornaua")
    public suspend fun controlScope(argument: suspend FrameworkControlControlScopePropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = FrameworkControlControlScopePropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.controlScope = mapped
    }

    internal fun build(): FrameworkControlArgs = FrameworkControlArgs(
        controlInputParameters = controlInputParameters,
        controlName = controlName ?: throw PulumiNullFieldException("controlName"),
        controlScope = controlScope,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy