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

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

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

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

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

/**
 * Defines the public IP address resource settings.
 * @property domainNameLabel Gets or sets the domain name label.
 * @property fqdn Gets or sets the fully qualified domain name.
 * @property publicIpAllocationMethod Gets or sets public IP allocation method.
 * @property resourceType The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
 * Expected value is 'Microsoft.Network/publicIPAddresses'.
 * @property sku Gets or sets public IP sku.
 * @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 zones Gets or sets public IP zones.
 */
public data class PublicIPAddressResourceSettingsArgs(
    public val domainNameLabel: Output? = null,
    public val fqdn: Output? = null,
    public val publicIpAllocationMethod: Output? = null,
    public val resourceType: Output,
    public val sku: Output? = null,
    public val tags: Output>? = null,
    public val targetResourceGroupName: Output? = null,
    public val targetResourceName: Output,
    public val zones: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.migrate.inputs.PublicIPAddressResourceSettingsArgs =
        com.pulumi.azurenative.migrate.inputs.PublicIPAddressResourceSettingsArgs.builder()
            .domainNameLabel(domainNameLabel?.applyValue({ args0 -> args0 }))
            .fqdn(fqdn?.applyValue({ args0 -> args0 }))
            .publicIpAllocationMethod(publicIpAllocationMethod?.applyValue({ args0 -> args0 }))
            .resourceType(resourceType.applyValue({ args0 -> args0 }))
            .sku(sku?.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 }))
            .zones(zones?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PublicIPAddressResourceSettingsArgs].
 */
@PulumiTagMarker
public class PublicIPAddressResourceSettingsArgsBuilder internal constructor() {
    private var domainNameLabel: Output? = null

    private var fqdn: Output? = null

    private var publicIpAllocationMethod: Output? = null

    private var resourceType: Output? = null

    private var sku: Output? = null

    private var tags: Output>? = null

    private var targetResourceGroupName: Output? = null

    private var targetResourceName: Output? = null

    private var zones: Output? = null

    /**
     * @param value Gets or sets the domain name label.
     */
    @JvmName("lkhlegavthjqrvcy")
    public suspend fun domainNameLabel(`value`: Output) {
        this.domainNameLabel = value
    }

    /**
     * @param value Gets or sets the fully qualified domain name.
     */
    @JvmName("cncrspdwlcppujfr")
    public suspend fun fqdn(`value`: Output) {
        this.fqdn = value
    }

    /**
     * @param value Gets or sets public IP allocation method.
     */
    @JvmName("ihmrgdswjbbtcmqb")
    public suspend fun publicIpAllocationMethod(`value`: Output) {
        this.publicIpAllocationMethod = value
    }

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

    /**
     * @param value Gets or sets public IP sku.
     */
    @JvmName("jimqrqnmgwhcrmci")
    public suspend fun sku(`value`: Output) {
        this.sku = value
    }

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

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

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

    /**
     * @param value Gets or sets public IP zones.
     */
    @JvmName("roxufqroorlokfkw")
    public suspend fun zones(`value`: Output) {
        this.zones = value
    }

    /**
     * @param value Gets or sets the domain name label.
     */
    @JvmName("vmxevakehremfwxg")
    public suspend fun domainNameLabel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainNameLabel = mapped
    }

    /**
     * @param value Gets or sets the fully qualified domain name.
     */
    @JvmName("krdutvrkkmygnwrx")
    public suspend fun fqdn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fqdn = mapped
    }

    /**
     * @param value Gets or sets public IP allocation method.
     */
    @JvmName("fycbhihdofcuolnb")
    public suspend fun publicIpAllocationMethod(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicIpAllocationMethod = mapped
    }

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

    /**
     * @param value Gets or sets public IP sku.
     */
    @JvmName("fvfrinipkxpwpwip")
    public suspend fun sku(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sku = mapped
    }

    /**
     * @param value Gets or sets the Resource tags.
     */
    @JvmName("fguepaohjtjjwifl")
    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("tiwnocoosaniglhn")
    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("meppmueexmrdjvpy")
    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("lurltjiufedtpsec")
    public suspend fun targetResourceName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetResourceName = mapped
    }

    /**
     * @param value Gets or sets public IP zones.
     */
    @JvmName("fafsyusfkamxvonq")
    public suspend fun zones(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zones = mapped
    }

    internal fun build(): PublicIPAddressResourceSettingsArgs = PublicIPAddressResourceSettingsArgs(
        domainNameLabel = domainNameLabel,
        fqdn = fqdn,
        publicIpAllocationMethod = publicIpAllocationMethod,
        resourceType = resourceType ?: throw PulumiNullFieldException("resourceType"),
        sku = sku,
        tags = tags,
        targetResourceGroupName = targetResourceGroupName,
        targetResourceName = targetResourceName ?: throw PulumiNullFieldException("targetResourceName"),
        zones = zones,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy