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

com.pulumi.azurenative.network.kotlin.PublicIPAddressArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.network.kotlin

import com.pulumi.azurenative.network.PublicIPAddressArgs.builder
import com.pulumi.azurenative.network.kotlin.enums.DeleteOptions
import com.pulumi.azurenative.network.kotlin.enums.IPAllocationMethod
import com.pulumi.azurenative.network.kotlin.enums.IPVersion
import com.pulumi.azurenative.network.kotlin.enums.PublicIPAddressMigrationPhase
import com.pulumi.azurenative.network.kotlin.inputs.DdosSettingsArgs
import com.pulumi.azurenative.network.kotlin.inputs.DdosSettingsArgsBuilder
import com.pulumi.azurenative.network.kotlin.inputs.ExtendedLocationArgs
import com.pulumi.azurenative.network.kotlin.inputs.ExtendedLocationArgsBuilder
import com.pulumi.azurenative.network.kotlin.inputs.IpTagArgs
import com.pulumi.azurenative.network.kotlin.inputs.IpTagArgsBuilder
import com.pulumi.azurenative.network.kotlin.inputs.NatGatewayArgs
import com.pulumi.azurenative.network.kotlin.inputs.NatGatewayArgsBuilder
import com.pulumi.azurenative.network.kotlin.inputs.PublicIPAddressDnsSettingsArgs
import com.pulumi.azurenative.network.kotlin.inputs.PublicIPAddressDnsSettingsArgsBuilder
import com.pulumi.azurenative.network.kotlin.inputs.PublicIPAddressSkuArgs
import com.pulumi.azurenative.network.kotlin.inputs.PublicIPAddressSkuArgsBuilder
import com.pulumi.azurenative.network.kotlin.inputs.SubResourceArgs
import com.pulumi.azurenative.network.kotlin.inputs.SubResourceArgsBuilder
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.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Public IP address resource.
 * Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2020-11-01.
 * Other available API versions: 2016-03-30, 2019-06-01, 2019-08-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01.
 * ## Example Usage
 * ### Create public IP address DNS
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var publicIPAddress = new AzureNative.Network.PublicIPAddress("publicIPAddress", new()
 *     {
 *         DnsSettings = new AzureNative.Network.Inputs.PublicIPAddressDnsSettingsArgs
 *         {
 *             DomainNameLabel = "dnslbl",
 *         },
 *         Location = "eastus",
 *         PublicIpAddressName = "test-ip",
 *         ResourceGroupName = "rg1",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := network.NewPublicIPAddress(ctx, "publicIPAddress", &network.PublicIPAddressArgs{
 * 			DnsSettings: &network.PublicIPAddressDnsSettingsArgs{
 * 				DomainNameLabel: pulumi.String("dnslbl"),
 * 			},
 * 			Location:            pulumi.String("eastus"),
 * 			PublicIpAddressName: pulumi.String("test-ip"),
 * 			ResourceGroupName:   pulumi.String("rg1"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.network.PublicIPAddress;
 * import com.pulumi.azurenative.network.PublicIPAddressArgs;
 * import com.pulumi.azurenative.network.inputs.PublicIPAddressDnsSettingsArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var publicIPAddress = new PublicIPAddress("publicIPAddress", PublicIPAddressArgs.builder()
 *             .dnsSettings(PublicIPAddressDnsSettingsArgs.builder()
 *                 .domainNameLabel("dnslbl")
 *                 .build())
 *             .location("eastus")
 *             .publicIpAddressName("test-ip")
 *             .resourceGroupName("rg1")
 *             .build());
 *     }
 * }
 * ```
 * ### Create public IP address DNS with Domain Name Label Scope
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var publicIPAddress = new AzureNative.Network.PublicIPAddress("publicIPAddress", new()
 *     {
 *         DnsSettings = new AzureNative.Network.Inputs.PublicIPAddressDnsSettingsArgs
 *         {
 *             DomainNameLabel = "dnslbl",
 *             DomainNameLabelScope = AzureNative.Network.PublicIpAddressDnsSettingsDomainNameLabelScope.TenantReuse,
 *         },
 *         Location = "eastus",
 *         PublicIpAddressName = "test-ip",
 *         ResourceGroupName = "rg1",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := network.NewPublicIPAddress(ctx, "publicIPAddress", &network.PublicIPAddressArgs{
 * 			DnsSettings: &network.PublicIPAddressDnsSettingsArgs{
 * 				DomainNameLabel:      pulumi.String("dnslbl"),
 * 				DomainNameLabelScope: network.PublicIpAddressDnsSettingsDomainNameLabelScopeTenantReuse,
 * 			},
 * 			Location:            pulumi.String("eastus"),
 * 			PublicIpAddressName: pulumi.String("test-ip"),
 * 			ResourceGroupName:   pulumi.String("rg1"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.network.PublicIPAddress;
 * import com.pulumi.azurenative.network.PublicIPAddressArgs;
 * import com.pulumi.azurenative.network.inputs.PublicIPAddressDnsSettingsArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var publicIPAddress = new PublicIPAddress("publicIPAddress", PublicIPAddressArgs.builder()
 *             .dnsSettings(PublicIPAddressDnsSettingsArgs.builder()
 *                 .domainNameLabel("dnslbl")
 *                 .domainNameLabelScope("TenantReuse")
 *                 .build())
 *             .location("eastus")
 *             .publicIpAddressName("test-ip")
 *             .resourceGroupName("rg1")
 *             .build());
 *     }
 * }
 * ```
 * ### Create public IP address allocation method
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var publicIPAddress = new AzureNative.Network.PublicIPAddress("publicIPAddress", new()
 *     {
 *         IdleTimeoutInMinutes = 10,
 *         Location = "eastus",
 *         PublicIPAddressVersion = AzureNative.Network.IPVersion.IPv4,
 *         PublicIPAllocationMethod = AzureNative.Network.IPAllocationMethod.Static,
 *         PublicIpAddressName = "test-ip",
 *         ResourceGroupName = "rg1",
 *         Sku = new AzureNative.Network.Inputs.PublicIPAddressSkuArgs
 *         {
 *             Name = AzureNative.Network.PublicIPAddressSkuName.Standard,
 *             Tier = AzureNative.Network.PublicIPAddressSkuTier.Global,
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := network.NewPublicIPAddress(ctx, "publicIPAddress", &network.PublicIPAddressArgs{
 * 			IdleTimeoutInMinutes:     pulumi.Int(10),
 * 			Location:                 pulumi.String("eastus"),
 * 			PublicIPAddressVersion:   pulumi.String(network.IPVersionIPv4),
 * 			PublicIPAllocationMethod: pulumi.String(network.IPAllocationMethodStatic),
 * 			PublicIpAddressName:      pulumi.String("test-ip"),
 * 			ResourceGroupName:        pulumi.String("rg1"),
 * 			Sku: &network.PublicIPAddressSkuArgs{
 * 				Name: pulumi.String(network.PublicIPAddressSkuNameStandard),
 * 				Tier: pulumi.String(network.PublicIPAddressSkuTierGlobal),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.network.PublicIPAddress;
 * import com.pulumi.azurenative.network.PublicIPAddressArgs;
 * import com.pulumi.azurenative.network.inputs.PublicIPAddressSkuArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var publicIPAddress = new PublicIPAddress("publicIPAddress", PublicIPAddressArgs.builder()
 *             .idleTimeoutInMinutes(10)
 *             .location("eastus")
 *             .publicIPAddressVersion("IPv4")
 *             .publicIPAllocationMethod("Static")
 *             .publicIpAddressName("test-ip")
 *             .resourceGroupName("rg1")
 *             .sku(PublicIPAddressSkuArgs.builder()
 *                 .name("Standard")
 *                 .tier("Global")
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ### Create public IP address defaults
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var publicIPAddress = new AzureNative.Network.PublicIPAddress("publicIPAddress", new()
 *     {
 *         Location = "eastus",
 *         PublicIpAddressName = "test-ip",
 *         ResourceGroupName = "rg1",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := network.NewPublicIPAddress(ctx, "publicIPAddress", &network.PublicIPAddressArgs{
 * 			Location:            pulumi.String("eastus"),
 * 			PublicIpAddressName: pulumi.String("test-ip"),
 * 			ResourceGroupName:   pulumi.String("rg1"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.network.PublicIPAddress;
 * import com.pulumi.azurenative.network.PublicIPAddressArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var publicIPAddress = new PublicIPAddress("publicIPAddress", PublicIPAddressArgs.builder()
 *             .location("eastus")
 *             .publicIpAddressName("test-ip")
 *             .resourceGroupName("rg1")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:network:PublicIPAddress testDNS-ip /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}
 * ```
 * @property ddosSettings The DDoS protection custom policy associated with the public IP address.
 * @property deleteOption Specify what happens to the public IP address when the VM using it is deleted
 * @property dnsSettings The FQDN of the DNS record associated with the public IP address.
 * @property extendedLocation The extended location of the public ip address.
 * @property id Resource ID.
 * @property idleTimeoutInMinutes The idle timeout of the public IP address.
 * @property ipAddress The IP address associated with the public IP address resource.
 * @property ipTags The list of tags associated with the public IP address.
 * @property linkedPublicIPAddress The linked public IP address of the public IP address resource.
 * @property location Resource location.
 * @property migrationPhase Migration phase of Public IP Address.
 * @property natGateway The NatGateway for the Public IP address.
 * @property publicIPAddressVersion The public IP address version.
 * @property publicIPAllocationMethod The public IP address allocation method.
 * @property publicIPPrefix The Public IP Prefix this Public IP Address should be allocated from.
 * @property publicIpAddressName The name of the public IP address.
 * @property resourceGroupName The name of the resource group.
 * @property servicePublicIPAddress The service public IP address of the public IP address resource.
 * @property sku The public IP address SKU.
 * @property tags Resource tags.
 * @property zones A list of availability zones denoting the IP allocated for the resource needs to come from.
 */
public data class PublicIPAddressArgs(
    public val ddosSettings: Output? = null,
    public val deleteOption: Output>? = null,
    public val dnsSettings: Output? = null,
    public val extendedLocation: Output? = null,
    public val id: Output? = null,
    public val idleTimeoutInMinutes: Output? = null,
    public val ipAddress: Output? = null,
    public val ipTags: Output>? = null,
    public val linkedPublicIPAddress: Output? = null,
    public val location: Output? = null,
    public val migrationPhase: Output>? = null,
    public val natGateway: Output? = null,
    public val publicIPAddressVersion: Output>? = null,
    public val publicIPAllocationMethod: Output>? = null,
    public val publicIPPrefix: Output? = null,
    public val publicIpAddressName: Output? = null,
    public val resourceGroupName: Output? = null,
    public val servicePublicIPAddress: Output? = null,
    public val sku: Output? = null,
    public val tags: Output>? = null,
    public val zones: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.PublicIPAddressArgs =
        com.pulumi.azurenative.network.PublicIPAddressArgs.builder()
            .ddosSettings(ddosSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .deleteOption(
                deleteOption?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .dnsSettings(dnsSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .extendedLocation(extendedLocation?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .id(id?.applyValue({ args0 -> args0 }))
            .idleTimeoutInMinutes(idleTimeoutInMinutes?.applyValue({ args0 -> args0 }))
            .ipAddress(ipAddress?.applyValue({ args0 -> args0 }))
            .ipTags(ipTags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .linkedPublicIPAddress(
                linkedPublicIPAddress?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .location(location?.applyValue({ args0 -> args0 }))
            .migrationPhase(
                migrationPhase?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .natGateway(natGateway?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .publicIPAddressVersion(
                publicIPAddressVersion?.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0
                    }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .publicIPAllocationMethod(
                publicIPAllocationMethod?.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0
                    }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .publicIPPrefix(publicIPPrefix?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .publicIpAddressName(publicIpAddressName?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .servicePublicIPAddress(
                servicePublicIPAddress?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .sku(sku?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .zones(zones?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [PublicIPAddressArgs].
 */
@PulumiTagMarker
public class PublicIPAddressArgsBuilder internal constructor() {
    private var ddosSettings: Output? = null

    private var deleteOption: Output>? = null

    private var dnsSettings: Output? = null

    private var extendedLocation: Output? = null

    private var id: Output? = null

    private var idleTimeoutInMinutes: Output? = null

    private var ipAddress: Output? = null

    private var ipTags: Output>? = null

    private var linkedPublicIPAddress:
        Output? = null

    private var location: Output? = null

    private var migrationPhase: Output>? = null

    private var natGateway: Output? = null

    private var publicIPAddressVersion: Output>? = null

    private var publicIPAllocationMethod: Output>? = null

    private var publicIPPrefix: Output? = null

    private var publicIpAddressName: Output? = null

    private var resourceGroupName: Output? = null

    private var servicePublicIPAddress:
        Output? = null

    private var sku: Output? = null

    private var tags: Output>? = null

    private var zones: Output>? = null

    /**
     * @param value The DDoS protection custom policy associated with the public IP address.
     */
    @JvmName("ccbeeuujbsrxfehn")
    public suspend fun ddosSettings(`value`: Output) {
        this.ddosSettings = value
    }

    /**
     * @param value Specify what happens to the public IP address when the VM using it is deleted
     */
    @JvmName("ffquofvmhhrwavax")
    public suspend fun deleteOption(`value`: Output>) {
        this.deleteOption = value
    }

    /**
     * @param value The FQDN of the DNS record associated with the public IP address.
     */
    @JvmName("mmsvtxlvihasdphq")
    public suspend fun dnsSettings(`value`: Output) {
        this.dnsSettings = value
    }

    /**
     * @param value The extended location of the public ip address.
     */
    @JvmName("tjmebacctedqmnbh")
    public suspend fun extendedLocation(`value`: Output) {
        this.extendedLocation = value
    }

    /**
     * @param value Resource ID.
     */
    @JvmName("miosixbljokwwqqk")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value The idle timeout of the public IP address.
     */
    @JvmName("eaypbujigijciemm")
    public suspend fun idleTimeoutInMinutes(`value`: Output) {
        this.idleTimeoutInMinutes = value
    }

    /**
     * @param value The IP address associated with the public IP address resource.
     */
    @JvmName("cilmkpvmukoqnqvk")
    public suspend fun ipAddress(`value`: Output) {
        this.ipAddress = value
    }

    /**
     * @param value The list of tags associated with the public IP address.
     */
    @JvmName("wntnkktcdogfqgpc")
    public suspend fun ipTags(`value`: Output>) {
        this.ipTags = value
    }

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

    /**
     * @param values The list of tags associated with the public IP address.
     */
    @JvmName("soeibnivxpnpspfl")
    public suspend fun ipTags(values: List>) {
        this.ipTags = Output.all(values)
    }

    /**
     * @param value The linked public IP address of the public IP address resource.
     */
    @JvmName("ibkfudrwaxuvlcbk")
    public suspend fun linkedPublicIPAddress(`value`: Output) {
        this.linkedPublicIPAddress = value
    }

    /**
     * @param value Resource location.
     */
    @JvmName("xirrelnkolvylpcf")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Migration phase of Public IP Address.
     */
    @JvmName("kvwtyjpbnhjkbydx")
    public suspend fun migrationPhase(`value`: Output>) {
        this.migrationPhase = value
    }

    /**
     * @param value The NatGateway for the Public IP address.
     */
    @JvmName("kgbollpygyanoqsg")
    public suspend fun natGateway(`value`: Output) {
        this.natGateway = value
    }

    /**
     * @param value The public IP address version.
     */
    @JvmName("lkpsextyislhgpxq")
    public suspend fun publicIPAddressVersion(`value`: Output>) {
        this.publicIPAddressVersion = value
    }

    /**
     * @param value The public IP address allocation method.
     */
    @JvmName("dlsfgvcepucbhkaq")
    public suspend fun publicIPAllocationMethod(`value`: Output>) {
        this.publicIPAllocationMethod = value
    }

    /**
     * @param value The Public IP Prefix this Public IP Address should be allocated from.
     */
    @JvmName("gehirtqryigetiuw")
    public suspend fun publicIPPrefix(`value`: Output) {
        this.publicIPPrefix = value
    }

    /**
     * @param value The name of the public IP address.
     */
    @JvmName("bapuvsyghtjqafmx")
    public suspend fun publicIpAddressName(`value`: Output) {
        this.publicIpAddressName = value
    }

    /**
     * @param value The name of the resource group.
     */
    @JvmName("kthyaxqminplxumj")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The service public IP address of the public IP address resource.
     */
    @JvmName("tdlktosdgnbhijye")
    public suspend fun servicePublicIPAddress(`value`: Output) {
        this.servicePublicIPAddress = value
    }

    /**
     * @param value The public IP address SKU.
     */
    @JvmName("doimtuhfonrqibsw")
    public suspend fun sku(`value`: Output) {
        this.sku = value
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("wfmvpdmnpbfbldyj")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value A list of availability zones denoting the IP allocated for the resource needs to come from.
     */
    @JvmName("xtuhqlrueubcfmdl")
    public suspend fun zones(`value`: Output>) {
        this.zones = value
    }

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

    /**
     * @param values A list of availability zones denoting the IP allocated for the resource needs to come from.
     */
    @JvmName("oaoeclklvimxilmw")
    public suspend fun zones(values: List>) {
        this.zones = Output.all(values)
    }

    /**
     * @param value The DDoS protection custom policy associated with the public IP address.
     */
    @JvmName("tfgfryjgjppfwluj")
    public suspend fun ddosSettings(`value`: DdosSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ddosSettings = mapped
    }

    /**
     * @param argument The DDoS protection custom policy associated with the public IP address.
     */
    @JvmName("ltonyoepkijtneli")
    public suspend fun ddosSettings(argument: suspend DdosSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = DdosSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.ddosSettings = mapped
    }

    /**
     * @param value Specify what happens to the public IP address when the VM using it is deleted
     */
    @JvmName("wgylifpfjrxqfdtd")
    public suspend fun deleteOption(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deleteOption = mapped
    }

    /**
     * @param value Specify what happens to the public IP address when the VM using it is deleted
     */
    @JvmName("tqinucgmyhkskoyy")
    public fun deleteOption(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.deleteOption = mapped
    }

    /**
     * @param value Specify what happens to the public IP address when the VM using it is deleted
     */
    @JvmName("dyrdwcrxbhvlhaum")
    public fun deleteOption(`value`: DeleteOptions) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.deleteOption = mapped
    }

    /**
     * @param value The FQDN of the DNS record associated with the public IP address.
     */
    @JvmName("qeflwnewqhsifvvw")
    public suspend fun dnsSettings(`value`: PublicIPAddressDnsSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dnsSettings = mapped
    }

    /**
     * @param argument The FQDN of the DNS record associated with the public IP address.
     */
    @JvmName("gyvkyajvtvtkdaty")
    public suspend fun dnsSettings(argument: suspend PublicIPAddressDnsSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = PublicIPAddressDnsSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.dnsSettings = mapped
    }

    /**
     * @param value The extended location of the public ip address.
     */
    @JvmName("mlwmwchttdxiqkej")
    public suspend fun extendedLocation(`value`: ExtendedLocationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.extendedLocation = mapped
    }

    /**
     * @param argument The extended location of the public ip address.
     */
    @JvmName("evswkoyitusalwdp")
    public suspend fun extendedLocation(argument: suspend ExtendedLocationArgsBuilder.() -> Unit) {
        val toBeMapped = ExtendedLocationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.extendedLocation = mapped
    }

    /**
     * @param value Resource ID.
     */
    @JvmName("nnjpkxltvaqhpucm")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value The idle timeout of the public IP address.
     */
    @JvmName("erlhgcwncciqcxvl")
    public suspend fun idleTimeoutInMinutes(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.idleTimeoutInMinutes = mapped
    }

    /**
     * @param value The IP address associated with the public IP address resource.
     */
    @JvmName("teibfaqcwskvkerh")
    public suspend fun ipAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipAddress = mapped
    }

    /**
     * @param value The list of tags associated with the public IP address.
     */
    @JvmName("oqaxwskkeifmjxox")
    public suspend fun ipTags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipTags = mapped
    }

    /**
     * @param argument The list of tags associated with the public IP address.
     */
    @JvmName("lstusanaqrvqxtjn")
    public suspend fun ipTags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { IpTagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.ipTags = mapped
    }

    /**
     * @param argument The list of tags associated with the public IP address.
     */
    @JvmName("rlidfklponrgugdg")
    public suspend fun ipTags(vararg argument: suspend IpTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { IpTagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.ipTags = mapped
    }

    /**
     * @param argument The list of tags associated with the public IP address.
     */
    @JvmName("saoyfaivmsdtmcvs")
    public suspend fun ipTags(argument: suspend IpTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(IpTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.ipTags = mapped
    }

    /**
     * @param values The list of tags associated with the public IP address.
     */
    @JvmName("lwarnsjosdxasouc")
    public suspend fun ipTags(vararg values: IpTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipTags = mapped
    }

    /**
     * @param value The linked public IP address of the public IP address resource.
     */
    @JvmName("klwchikewmqxekbb")
    public suspend fun linkedPublicIPAddress(`value`: com.pulumi.azurenative.network.kotlin.inputs.PublicIPAddressArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.linkedPublicIPAddress = mapped
    }

    /**
     * @param argument The linked public IP address of the public IP address resource.
     */
    @JvmName("lrtmtoroyhxskutr")
    public suspend fun linkedPublicIPAddress(argument: suspend com.pulumi.azurenative.network.kotlin.inputs.PublicIPAddressArgsBuilder.() -> Unit) {
        val toBeMapped =
            com.pulumi.azurenative.network.kotlin.inputs.PublicIPAddressArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.linkedPublicIPAddress = mapped
    }

    /**
     * @param value Resource location.
     */
    @JvmName("tgusjyouakishxmk")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Migration phase of Public IP Address.
     */
    @JvmName("drkkkpgvstqtiqjw")
    public suspend fun migrationPhase(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.migrationPhase = mapped
    }

    /**
     * @param value Migration phase of Public IP Address.
     */
    @JvmName("yxcxlktmcxykptqi")
    public fun migrationPhase(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.migrationPhase = mapped
    }

    /**
     * @param value Migration phase of Public IP Address.
     */
    @JvmName("yipubyqolnkjknpa")
    public fun migrationPhase(`value`: PublicIPAddressMigrationPhase) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.migrationPhase = mapped
    }

    /**
     * @param value The NatGateway for the Public IP address.
     */
    @JvmName("avtxnwceecuesora")
    public suspend fun natGateway(`value`: NatGatewayArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.natGateway = mapped
    }

    /**
     * @param argument The NatGateway for the Public IP address.
     */
    @JvmName("ekplqdcfyfwptrkx")
    public suspend fun natGateway(argument: suspend NatGatewayArgsBuilder.() -> Unit) {
        val toBeMapped = NatGatewayArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.natGateway = mapped
    }

    /**
     * @param value The public IP address version.
     */
    @JvmName("dqhtjcaxavptiloa")
    public suspend fun publicIPAddressVersion(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicIPAddressVersion = mapped
    }

    /**
     * @param value The public IP address version.
     */
    @JvmName("qoddlyoxhdmyixyn")
    public fun publicIPAddressVersion(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicIPAddressVersion = mapped
    }

    /**
     * @param value The public IP address version.
     */
    @JvmName("nmwhniecxgjnnesi")
    public fun publicIPAddressVersion(`value`: IPVersion) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicIPAddressVersion = mapped
    }

    /**
     * @param value The public IP address allocation method.
     */
    @JvmName("lmfpivbpasdjbamk")
    public suspend fun publicIPAllocationMethod(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicIPAllocationMethod = mapped
    }

    /**
     * @param value The public IP address allocation method.
     */
    @JvmName("pdkrynuxuqyykcbf")
    public fun publicIPAllocationMethod(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicIPAllocationMethod = mapped
    }

    /**
     * @param value The public IP address allocation method.
     */
    @JvmName("jbmihmncnvqbvgxp")
    public fun publicIPAllocationMethod(`value`: IPAllocationMethod) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicIPAllocationMethod = mapped
    }

    /**
     * @param value The Public IP Prefix this Public IP Address should be allocated from.
     */
    @JvmName("wstclqqkyagikxqp")
    public suspend fun publicIPPrefix(`value`: SubResourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicIPPrefix = mapped
    }

    /**
     * @param argument The Public IP Prefix this Public IP Address should be allocated from.
     */
    @JvmName("vmjtrvgmonetnwaf")
    public suspend fun publicIPPrefix(argument: suspend SubResourceArgsBuilder.() -> Unit) {
        val toBeMapped = SubResourceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.publicIPPrefix = mapped
    }

    /**
     * @param value The name of the public IP address.
     */
    @JvmName("iellkendiyutpcoq")
    public suspend fun publicIpAddressName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicIpAddressName = mapped
    }

    /**
     * @param value The name of the resource group.
     */
    @JvmName("osxrpgihqpgbfwbh")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The service public IP address of the public IP address resource.
     */
    @JvmName("ybxluowngrkhtfrv")
    public suspend fun servicePublicIPAddress(`value`: com.pulumi.azurenative.network.kotlin.inputs.PublicIPAddressArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.servicePublicIPAddress = mapped
    }

    /**
     * @param argument The service public IP address of the public IP address resource.
     */
    @JvmName("tukgmpgdakhmtnvj")
    public suspend fun servicePublicIPAddress(argument: suspend com.pulumi.azurenative.network.kotlin.inputs.PublicIPAddressArgsBuilder.() -> Unit) {
        val toBeMapped =
            com.pulumi.azurenative.network.kotlin.inputs.PublicIPAddressArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.servicePublicIPAddress = mapped
    }

    /**
     * @param value The public IP address SKU.
     */
    @JvmName("vgsqsbaynfragapj")
    public suspend fun sku(`value`: PublicIPAddressSkuArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sku = mapped
    }

    /**
     * @param argument The public IP address SKU.
     */
    @JvmName("xnqyqgesfgdkifmp")
    public suspend fun sku(argument: suspend PublicIPAddressSkuArgsBuilder.() -> Unit) {
        val toBeMapped = PublicIPAddressSkuArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sku = mapped
    }

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

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

    /**
     * @param value A list of availability zones denoting the IP allocated for the resource needs to come from.
     */
    @JvmName("rfsuwqlmxjvrlvdc")
    public suspend fun zones(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zones = mapped
    }

    /**
     * @param values A list of availability zones denoting the IP allocated for the resource needs to come from.
     */
    @JvmName("cflbcakvcnahxsik")
    public suspend fun zones(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.zones = mapped
    }

    internal fun build(): PublicIPAddressArgs = PublicIPAddressArgs(
        ddosSettings = ddosSettings,
        deleteOption = deleteOption,
        dnsSettings = dnsSettings,
        extendedLocation = extendedLocation,
        id = id,
        idleTimeoutInMinutes = idleTimeoutInMinutes,
        ipAddress = ipAddress,
        ipTags = ipTags,
        linkedPublicIPAddress = linkedPublicIPAddress,
        location = location,
        migrationPhase = migrationPhase,
        natGateway = natGateway,
        publicIPAddressVersion = publicIPAddressVersion,
        publicIPAllocationMethod = publicIPAllocationMethod,
        publicIPPrefix = publicIPPrefix,
        publicIpAddressName = publicIpAddressName,
        resourceGroupName = resourceGroupName,
        servicePublicIPAddress = servicePublicIPAddress,
        sku = sku,
        tags = tags,
        zones = zones,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy