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

com.pulumi.azurenative.security.kotlin.inputs.DevOpsConfigurationPropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.security.kotlin.inputs

import com.pulumi.azurenative.security.inputs.DevOpsConfigurationPropertiesArgs.builder
import com.pulumi.azurenative.security.kotlin.enums.AutoDiscovery
import com.pulumi.azurenative.security.kotlin.enums.DevOpsProvisioningState
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.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * DevOps Configuration properties.
 * @property authorization Authorization payload.
 * @property autoDiscovery AutoDiscovery states.
 * @property provisioningState The provisioning state of the resource.
 * Pending - Provisioning pending.
 * Failed - Provisioning failed.
 * Succeeded - Successful provisioning.
 * Canceled - Provisioning canceled.
 * PendingDeletion - Deletion pending.
 * DeletionSuccess - Deletion successful.
 * DeletionFailure - Deletion failure.
 * @property topLevelInventoryList List of top-level inventory to select when AutoDiscovery is disabled.
 * This field is ignored when AutoDiscovery is enabled.
 */
public data class DevOpsConfigurationPropertiesArgs(
    public val authorization: Output? = null,
    public val autoDiscovery: Output>? = null,
    public val provisioningState: Output>? = null,
    public val topLevelInventoryList: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.security.inputs.DevOpsConfigurationPropertiesArgs =
        com.pulumi.azurenative.security.inputs.DevOpsConfigurationPropertiesArgs.builder()
            .authorization(authorization?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .autoDiscovery(
                autoDiscovery?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .provisioningState(
                provisioningState?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .topLevelInventoryList(
                topLevelInventoryList?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

/**
 * Builder for [DevOpsConfigurationPropertiesArgs].
 */
@PulumiTagMarker
public class DevOpsConfigurationPropertiesArgsBuilder internal constructor() {
    private var authorization: Output? = null

    private var autoDiscovery: Output>? = null

    private var provisioningState: Output>? = null

    private var topLevelInventoryList: Output>? = null

    /**
     * @param value Authorization payload.
     */
    @JvmName("recbudvxgbywnhhk")
    public suspend fun authorization(`value`: Output) {
        this.authorization = value
    }

    /**
     * @param value AutoDiscovery states.
     */
    @JvmName("hqvujtytpjtysciy")
    public suspend fun autoDiscovery(`value`: Output>) {
        this.autoDiscovery = value
    }

    /**
     * @param value The provisioning state of the resource.
     * Pending - Provisioning pending.
     * Failed - Provisioning failed.
     * Succeeded - Successful provisioning.
     * Canceled - Provisioning canceled.
     * PendingDeletion - Deletion pending.
     * DeletionSuccess - Deletion successful.
     * DeletionFailure - Deletion failure.
     */
    @JvmName("asjaxroungsopvhq")
    public suspend fun provisioningState(`value`: Output>) {
        this.provisioningState = value
    }

    /**
     * @param value List of top-level inventory to select when AutoDiscovery is disabled.
     * This field is ignored when AutoDiscovery is enabled.
     */
    @JvmName("wfeetajbpdurmktl")
    public suspend fun topLevelInventoryList(`value`: Output>) {
        this.topLevelInventoryList = value
    }

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

    /**
     * @param values List of top-level inventory to select when AutoDiscovery is disabled.
     * This field is ignored when AutoDiscovery is enabled.
     */
    @JvmName("fltyoxdpasodhraa")
    public suspend fun topLevelInventoryList(values: List>) {
        this.topLevelInventoryList = Output.all(values)
    }

    /**
     * @param value Authorization payload.
     */
    @JvmName("odbygnwtlkpmottn")
    public suspend fun authorization(`value`: AuthorizationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authorization = mapped
    }

    /**
     * @param argument Authorization payload.
     */
    @JvmName("feakcwjpmjivmmps")
    public suspend fun authorization(argument: suspend AuthorizationArgsBuilder.() -> Unit) {
        val toBeMapped = AuthorizationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.authorization = mapped
    }

    /**
     * @param value AutoDiscovery states.
     */
    @JvmName("xbjyfswbnwkqlftf")
    public suspend fun autoDiscovery(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoDiscovery = mapped
    }

    /**
     * @param value AutoDiscovery states.
     */
    @JvmName("tjmhwjtmjvmxmjin")
    public fun autoDiscovery(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.autoDiscovery = mapped
    }

    /**
     * @param value AutoDiscovery states.
     */
    @JvmName("dnfoqiuqnfoemnim")
    public fun autoDiscovery(`value`: AutoDiscovery) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.autoDiscovery = mapped
    }

    /**
     * @param value The provisioning state of the resource.
     * Pending - Provisioning pending.
     * Failed - Provisioning failed.
     * Succeeded - Successful provisioning.
     * Canceled - Provisioning canceled.
     * PendingDeletion - Deletion pending.
     * DeletionSuccess - Deletion successful.
     * DeletionFailure - Deletion failure.
     */
    @JvmName("uahqelbuylryxgpj")
    public suspend fun provisioningState(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.provisioningState = mapped
    }

    /**
     * @param value The provisioning state of the resource.
     * Pending - Provisioning pending.
     * Failed - Provisioning failed.
     * Succeeded - Successful provisioning.
     * Canceled - Provisioning canceled.
     * PendingDeletion - Deletion pending.
     * DeletionSuccess - Deletion successful.
     * DeletionFailure - Deletion failure.
     */
    @JvmName("sjgkadonwxorubgg")
    public fun provisioningState(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.provisioningState = mapped
    }

    /**
     * @param value The provisioning state of the resource.
     * Pending - Provisioning pending.
     * Failed - Provisioning failed.
     * Succeeded - Successful provisioning.
     * Canceled - Provisioning canceled.
     * PendingDeletion - Deletion pending.
     * DeletionSuccess - Deletion successful.
     * DeletionFailure - Deletion failure.
     */
    @JvmName("ilkyqubwwwcgmnwp")
    public fun provisioningState(`value`: DevOpsProvisioningState) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.provisioningState = mapped
    }

    /**
     * @param value List of top-level inventory to select when AutoDiscovery is disabled.
     * This field is ignored when AutoDiscovery is enabled.
     */
    @JvmName("oxkqdhmhotxeajrb")
    public suspend fun topLevelInventoryList(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.topLevelInventoryList = mapped
    }

    /**
     * @param values List of top-level inventory to select when AutoDiscovery is disabled.
     * This field is ignored when AutoDiscovery is enabled.
     */
    @JvmName("rxulnnuyopmmrbta")
    public suspend fun topLevelInventoryList(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.topLevelInventoryList = mapped
    }

    internal fun build(): DevOpsConfigurationPropertiesArgs = DevOpsConfigurationPropertiesArgs(
        authorization = authorization,
        autoDiscovery = autoDiscovery,
        provisioningState = provisioningState,
        topLevelInventoryList = topLevelInventoryList,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy