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

com.pulumi.azurenative.operationsmanagement.kotlin.inputs.ManagementConfigurationPropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.operationsmanagement.kotlin.inputs

import com.pulumi.azurenative.operationsmanagement.inputs.ManagementConfigurationPropertiesArgs.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.Any
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * ManagementConfiguration properties supported by the OperationsManagement resource provider.
 * @property applicationId The applicationId of the appliance for this Management.
 * @property parameters Parameters to run the ARM template
 * @property parentResourceType The type of the parent resource.
 * @property template The Json object containing the ARM template to deploy
 */
public data class ManagementConfigurationPropertiesArgs(
    public val applicationId: Output? = null,
    public val parameters: Output>,
    public val parentResourceType: Output,
    public val template: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.operationsmanagement.inputs.ManagementConfigurationPropertiesArgs =
        com.pulumi.azurenative.operationsmanagement.inputs.ManagementConfigurationPropertiesArgs.builder()
            .applicationId(applicationId?.applyValue({ args0 -> args0 }))
            .parameters(
                parameters.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .parentResourceType(parentResourceType.applyValue({ args0 -> args0 }))
            .template(template.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ManagementConfigurationPropertiesArgs].
 */
@PulumiTagMarker
public class ManagementConfigurationPropertiesArgsBuilder internal constructor() {
    private var applicationId: Output? = null

    private var parameters: Output>? = null

    private var parentResourceType: Output? = null

    private var template: Output? = null

    /**
     * @param value The applicationId of the appliance for this Management.
     */
    @JvmName("jyhwpgcnnudmpawy")
    public suspend fun applicationId(`value`: Output) {
        this.applicationId = value
    }

    /**
     * @param value Parameters to run the ARM template
     */
    @JvmName("vycfslnyyoqlrxyq")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

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

    /**
     * @param values Parameters to run the ARM template
     */
    @JvmName("lgsprbnfvfurphhe")
    public suspend fun parameters(values: List>) {
        this.parameters = Output.all(values)
    }

    /**
     * @param value The type of the parent resource.
     */
    @JvmName("qauwjnpasiahkebf")
    public suspend fun parentResourceType(`value`: Output) {
        this.parentResourceType = value
    }

    /**
     * @param value The Json object containing the ARM template to deploy
     */
    @JvmName("dyrgpaksblapvuvd")
    public suspend fun template(`value`: Output) {
        this.template = value
    }

    /**
     * @param value The applicationId of the appliance for this Management.
     */
    @JvmName("jfpewxefvtrpmhar")
    public suspend fun applicationId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationId = mapped
    }

    /**
     * @param value Parameters to run the ARM template
     */
    @JvmName("svwjjmlpaowrdfyp")
    public suspend fun parameters(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param argument Parameters to run the ARM template
     */
    @JvmName("sevwsqsmtsqsosld")
    public suspend fun parameters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ArmTemplateParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument Parameters to run the ARM template
     */
    @JvmName("tnfnggehjrldntag")
    public suspend fun parameters(vararg argument: suspend ArmTemplateParameterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ArmTemplateParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument Parameters to run the ARM template
     */
    @JvmName("tsviiahqnhixewjq")
    public suspend fun parameters(argument: suspend ArmTemplateParameterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ArmTemplateParameterArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param values Parameters to run the ARM template
     */
    @JvmName("kiedemgxljudijxr")
    public suspend fun parameters(vararg values: ArmTemplateParameterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param value The type of the parent resource.
     */
    @JvmName("pppqpqemwpacdlth")
    public suspend fun parentResourceType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parentResourceType = mapped
    }

    /**
     * @param value The Json object containing the ARM template to deploy
     */
    @JvmName("ixkauaxjohygnwvd")
    public suspend fun template(`value`: Any) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.template = mapped
    }

    internal fun build(): ManagementConfigurationPropertiesArgs =
        ManagementConfigurationPropertiesArgs(
            applicationId = applicationId,
            parameters = parameters ?: throw PulumiNullFieldException("parameters"),
            parentResourceType = parentResourceType ?: throw PulumiNullFieldException("parentResourceType"),
            template = template ?: throw PulumiNullFieldException("template"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy