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

com.pulumi.azurenative.migrate.kotlin.inputs.AvailabilitySetResourceSettingsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.migrate.kotlin.inputs

import com.pulumi.azurenative.migrate.inputs.AvailabilitySetResourceSettingsArgs.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 kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Gets or sets the availability set resource settings.
 * @property faultDomain Gets or sets the target fault domain.
 * @property resourceType The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
 * Expected value is 'Microsoft.Compute/availabilitySets'.
 * @property tags Gets or sets the Resource tags.
 * @property targetResourceGroupName Gets or sets the target resource group name.
 * @property targetResourceName Gets or sets the target Resource name.
 * @property updateDomain Gets or sets the target update domain.
 */
public data class AvailabilitySetResourceSettingsArgs(
    public val faultDomain: Output? = null,
    public val resourceType: Output,
    public val tags: Output>? = null,
    public val targetResourceGroupName: Output? = null,
    public val targetResourceName: Output,
    public val updateDomain: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.migrate.inputs.AvailabilitySetResourceSettingsArgs =
        com.pulumi.azurenative.migrate.inputs.AvailabilitySetResourceSettingsArgs.builder()
            .faultDomain(faultDomain?.applyValue({ args0 -> args0 }))
            .resourceType(resourceType.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .targetResourceGroupName(targetResourceGroupName?.applyValue({ args0 -> args0 }))
            .targetResourceName(targetResourceName.applyValue({ args0 -> args0 }))
            .updateDomain(updateDomain?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AvailabilitySetResourceSettingsArgs].
 */
@PulumiTagMarker
public class AvailabilitySetResourceSettingsArgsBuilder internal constructor() {
    private var faultDomain: Output? = null

    private var resourceType: Output? = null

    private var tags: Output>? = null

    private var targetResourceGroupName: Output? = null

    private var targetResourceName: Output? = null

    private var updateDomain: Output? = null

    /**
     * @param value Gets or sets the target fault domain.
     */
    @JvmName("iceetbetqdxlgcsq")
    public suspend fun faultDomain(`value`: Output) {
        this.faultDomain = value
    }

    /**
     * @param value The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
     * Expected value is 'Microsoft.Compute/availabilitySets'.
     */
    @JvmName("ncemyavhkdjavjyc")
    public suspend fun resourceType(`value`: Output) {
        this.resourceType = value
    }

    /**
     * @param value Gets or sets the Resource tags.
     */
    @JvmName("subsfcggcenvsbyf")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Gets or sets the target resource group name.
     */
    @JvmName("spxxjamkuntgicdl")
    public suspend fun targetResourceGroupName(`value`: Output) {
        this.targetResourceGroupName = value
    }

    /**
     * @param value Gets or sets the target Resource name.
     */
    @JvmName("vfnkeoshllqmowkn")
    public suspend fun targetResourceName(`value`: Output) {
        this.targetResourceName = value
    }

    /**
     * @param value Gets or sets the target update domain.
     */
    @JvmName("cbjnmgvfwqmokjjp")
    public suspend fun updateDomain(`value`: Output) {
        this.updateDomain = value
    }

    /**
     * @param value Gets or sets the target fault domain.
     */
    @JvmName("knooyewvjthkiqrv")
    public suspend fun faultDomain(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.faultDomain = mapped
    }

    /**
     * @param value The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
     * Expected value is 'Microsoft.Compute/availabilitySets'.
     */
    @JvmName("ijltfgqjpeqoqqem")
    public suspend fun resourceType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceType = mapped
    }

    /**
     * @param value Gets or sets the Resource tags.
     */
    @JvmName("qipdseyevunnnbov")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Gets or sets the Resource tags.
     */
    @JvmName("clxsktefxduyvxou")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Gets or sets the target resource group name.
     */
    @JvmName("mseggtdsmranhsie")
    public suspend fun targetResourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetResourceGroupName = mapped
    }

    /**
     * @param value Gets or sets the target Resource name.
     */
    @JvmName("mebxafrhmiccdiji")
    public suspend fun targetResourceName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetResourceName = mapped
    }

    /**
     * @param value Gets or sets the target update domain.
     */
    @JvmName("cmslefrijpwndwhu")
    public suspend fun updateDomain(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.updateDomain = mapped
    }

    internal fun build(): AvailabilitySetResourceSettingsArgs = AvailabilitySetResourceSettingsArgs(
        faultDomain = faultDomain,
        resourceType = resourceType ?: throw PulumiNullFieldException("resourceType"),
        tags = tags,
        targetResourceGroupName = targetResourceGroupName,
        targetResourceName = targetResourceName ?: throw PulumiNullFieldException("targetResourceName"),
        updateDomain = updateDomain,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy