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

com.pulumi.azurenative.recoveryservices.kotlin.inputs.A2AContainerMappingInputArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.recoveryservices.kotlin.inputs

import com.pulumi.azurenative.recoveryservices.inputs.A2AContainerMappingInputArgs.builder
import com.pulumi.azurenative.recoveryservices.kotlin.enums.AgentAutoUpdateStatus
import com.pulumi.azurenative.recoveryservices.kotlin.enums.AutomationAccountAuthenticationType
import com.pulumi.core.Either
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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A2A container mapping input.
 * @property agentAutoUpdateStatus A value indicating whether the auto update is enabled.
 * @property automationAccountArmId The automation account arm id.
 * @property automationAccountAuthenticationType A value indicating the type authentication to use for automation Account.
 * @property instanceType The class type.
 * Expected value is 'A2A'.
 */
public data class A2AContainerMappingInputArgs(
    public val agentAutoUpdateStatus: Output>? = null,
    public val automationAccountArmId: Output? = null,
    public val automationAccountAuthenticationType: Output>? = null,
    public val instanceType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.recoveryservices.inputs.A2AContainerMappingInputArgs = com.pulumi.azurenative.recoveryservices.inputs.A2AContainerMappingInputArgs.builder()
        .agentAutoUpdateStatus(
            agentAutoUpdateStatus?.applyValue({ args0 ->
                args0.transform({ args0 ->
                    args0
                }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
            }),
        )
        .automationAccountArmId(automationAccountArmId?.applyValue({ args0 -> args0 }))
        .automationAccountAuthenticationType(
            automationAccountAuthenticationType?.applyValue({ args0 ->
                args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
            }),
        )
        .instanceType(instanceType.applyValue({ args0 -> args0 })).build()
}

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

    private var automationAccountArmId: Output? = null

    private var automationAccountAuthenticationType:
        Output>? = null

    private var instanceType: Output? = null

    /**
     * @param value A value indicating whether the auto update is enabled.
     */
    @JvmName("drgiytlitvpjfhxd")
    public suspend fun agentAutoUpdateStatus(`value`: Output>) {
        this.agentAutoUpdateStatus = value
    }

    /**
     * @param value The automation account arm id.
     */
    @JvmName("xfklreieoremjgmb")
    public suspend fun automationAccountArmId(`value`: Output) {
        this.automationAccountArmId = value
    }

    /**
     * @param value A value indicating the type authentication to use for automation Account.
     */
    @JvmName("cacglydwawqadtke")
    public suspend fun automationAccountAuthenticationType(`value`: Output>) {
        this.automationAccountAuthenticationType = value
    }

    /**
     * @param value The class type.
     * Expected value is 'A2A'.
     */
    @JvmName("dmknouimqmumokop")
    public suspend fun instanceType(`value`: Output) {
        this.instanceType = value
    }

    /**
     * @param value A value indicating whether the auto update is enabled.
     */
    @JvmName("tinrhxdpbryohfkt")
    public suspend fun agentAutoUpdateStatus(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.agentAutoUpdateStatus = mapped
    }

    /**
     * @param value A value indicating whether the auto update is enabled.
     */
    @JvmName("fuekrbylymekrfoq")
    public fun agentAutoUpdateStatus(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.agentAutoUpdateStatus = mapped
    }

    /**
     * @param value A value indicating whether the auto update is enabled.
     */
    @JvmName("gckmjpognysajten")
    public fun agentAutoUpdateStatus(`value`: AgentAutoUpdateStatus) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.agentAutoUpdateStatus = mapped
    }

    /**
     * @param value The automation account arm id.
     */
    @JvmName("uotpuccatugfieru")
    public suspend fun automationAccountArmId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.automationAccountArmId = mapped
    }

    /**
     * @param value A value indicating the type authentication to use for automation Account.
     */
    @JvmName("btautthwofjmbiov")
    public suspend fun automationAccountAuthenticationType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.automationAccountAuthenticationType = mapped
    }

    /**
     * @param value A value indicating the type authentication to use for automation Account.
     */
    @JvmName("viaodvnxhxhlykui")
    public fun automationAccountAuthenticationType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.automationAccountAuthenticationType = mapped
    }

    /**
     * @param value A value indicating the type authentication to use for automation Account.
     */
    @JvmName("tqqafbdswvkaxrnc")
    public fun automationAccountAuthenticationType(`value`: AutomationAccountAuthenticationType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.automationAccountAuthenticationType = mapped
    }

    /**
     * @param value The class type.
     * Expected value is 'A2A'.
     */
    @JvmName("ydkyenkdiqjqjjgc")
    public suspend fun instanceType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.instanceType = mapped
    }

    internal fun build(): A2AContainerMappingInputArgs = A2AContainerMappingInputArgs(
        agentAutoUpdateStatus = agentAutoUpdateStatus,
        automationAccountArmId = automationAccountArmId,
        automationAccountAuthenticationType = automationAccountAuthenticationType,
        instanceType = instanceType ?: throw PulumiNullFieldException("instanceType"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy