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

com.pulumi.azurenative.avs.kotlin.WorkloadNetworkDnsZoneArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.avs.kotlin

import com.pulumi.azurenative.avs.WorkloadNetworkDnsZoneArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * NSX DNS Zone
 * Azure REST API version: 2022-05-01. Prior API version in Azure Native 1.x: 2020-07-17-preview.
 * Other available API versions: 2023-03-01, 2023-09-01.
 * ## Example Usage
 * ### WorkloadNetworks_CreateDnsZone
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var workloadNetworkDnsZone = new AzureNative.AVS.WorkloadNetworkDnsZone("workloadNetworkDnsZone", new()
 *     {
 *         DisplayName = "dnsZone1",
 *         DnsServerIps = new[]
 *         {
 *             "1.1.1.1",
 *         },
 *         DnsZoneId = "dnsZone1",
 *         Domain = new[] {},
 *         PrivateCloudName = "cloud1",
 *         ResourceGroupName = "group1",
 *         Revision = 1,
 *         SourceIp = "8.8.8.8",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	avs "github.com/pulumi/pulumi-azure-native-sdk/avs/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := avs.NewWorkloadNetworkDnsZone(ctx, "workloadNetworkDnsZone", &avs.WorkloadNetworkDnsZoneArgs{
 * 			DisplayName: pulumi.String("dnsZone1"),
 * 			DnsServerIps: pulumi.StringArray{
 * 				pulumi.String("1.1.1.1"),
 * 			},
 * 			DnsZoneId:         pulumi.String("dnsZone1"),
 * 			Domain:            pulumi.StringArray{},
 * 			PrivateCloudName:  pulumi.String("cloud1"),
 * 			ResourceGroupName: pulumi.String("group1"),
 * 			Revision:          pulumi.Float64(1),
 * 			SourceIp:          pulumi.String("8.8.8.8"),
 * 		})
 * 		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.avs.WorkloadNetworkDnsZone;
 * import com.pulumi.azurenative.avs.WorkloadNetworkDnsZoneArgs;
 * 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 workloadNetworkDnsZone = new WorkloadNetworkDnsZone("workloadNetworkDnsZone", WorkloadNetworkDnsZoneArgs.builder()
 *             .displayName("dnsZone1")
 *             .dnsServerIps("1.1.1.1")
 *             .dnsZoneId("dnsZone1")
 *             .domain()
 *             .privateCloudName("cloud1")
 *             .resourceGroupName("group1")
 *             .revision(1)
 *             .sourceIp("8.8.8.8")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:avs:WorkloadNetworkDnsZone dnsZone1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}
 * ```
 * @property displayName Display name of the DNS Zone.
 * @property dnsServerIps DNS Server IP array of the DNS Zone.
 * @property dnsServices Number of DNS Services using the DNS zone.
 * @property dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
 * @property domain Domain names of the DNS Zone.
 * @property privateCloudName Name of the private cloud
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property revision NSX revision number.
 * @property sourceIp Source IP of the DNS Zone.
 */
public data class WorkloadNetworkDnsZoneArgs(
    public val displayName: Output? = null,
    public val dnsServerIps: Output>? = null,
    public val dnsServices: Output? = null,
    public val dnsZoneId: Output? = null,
    public val domain: Output>? = null,
    public val privateCloudName: Output? = null,
    public val resourceGroupName: Output? = null,
    public val revision: Output? = null,
    public val sourceIp: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.avs.WorkloadNetworkDnsZoneArgs =
        com.pulumi.azurenative.avs.WorkloadNetworkDnsZoneArgs.builder()
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .dnsServerIps(dnsServerIps?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .dnsServices(dnsServices?.applyValue({ args0 -> args0 }))
            .dnsZoneId(dnsZoneId?.applyValue({ args0 -> args0 }))
            .domain(domain?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .privateCloudName(privateCloudName?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .revision(revision?.applyValue({ args0 -> args0 }))
            .sourceIp(sourceIp?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WorkloadNetworkDnsZoneArgs].
 */
@PulumiTagMarker
public class WorkloadNetworkDnsZoneArgsBuilder internal constructor() {
    private var displayName: Output? = null

    private var dnsServerIps: Output>? = null

    private var dnsServices: Output? = null

    private var dnsZoneId: Output? = null

    private var domain: Output>? = null

    private var privateCloudName: Output? = null

    private var resourceGroupName: Output? = null

    private var revision: Output? = null

    private var sourceIp: Output? = null

    /**
     * @param value Display name of the DNS Zone.
     */
    @JvmName("oujwrbvbvygnekvm")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value DNS Server IP array of the DNS Zone.
     */
    @JvmName("egqhnplkoujskcel")
    public suspend fun dnsServerIps(`value`: Output>) {
        this.dnsServerIps = value
    }

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

    /**
     * @param values DNS Server IP array of the DNS Zone.
     */
    @JvmName("fongnqviunddsynm")
    public suspend fun dnsServerIps(values: List>) {
        this.dnsServerIps = Output.all(values)
    }

    /**
     * @param value Number of DNS Services using the DNS zone.
     */
    @JvmName("opdgfawfolbpayyt")
    public suspend fun dnsServices(`value`: Output) {
        this.dnsServices = value
    }

    /**
     * @param value NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
     */
    @JvmName("ifwjcqcyixgyxano")
    public suspend fun dnsZoneId(`value`: Output) {
        this.dnsZoneId = value
    }

    /**
     * @param value Domain names of the DNS Zone.
     */
    @JvmName("etcbpmrerdlnqcly")
    public suspend fun domain(`value`: Output>) {
        this.domain = value
    }

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

    /**
     * @param values Domain names of the DNS Zone.
     */
    @JvmName("urxhflgqiismyqhi")
    public suspend fun domain(values: List>) {
        this.domain = Output.all(values)
    }

    /**
     * @param value Name of the private cloud
     */
    @JvmName("bvrmmqlwuidfpwwc")
    public suspend fun privateCloudName(`value`: Output) {
        this.privateCloudName = value
    }

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

    /**
     * @param value NSX revision number.
     */
    @JvmName("lqjklxqpwnaxyuir")
    public suspend fun revision(`value`: Output) {
        this.revision = value
    }

    /**
     * @param value Source IP of the DNS Zone.
     */
    @JvmName("ildyrdoctycbswow")
    public suspend fun sourceIp(`value`: Output) {
        this.sourceIp = value
    }

    /**
     * @param value Display name of the DNS Zone.
     */
    @JvmName("dxmyjmnbjkfbebqf")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value DNS Server IP array of the DNS Zone.
     */
    @JvmName("xpahrxuiblluljng")
    public suspend fun dnsServerIps(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dnsServerIps = mapped
    }

    /**
     * @param values DNS Server IP array of the DNS Zone.
     */
    @JvmName("qmbqnvogsrvyhofb")
    public suspend fun dnsServerIps(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dnsServerIps = mapped
    }

    /**
     * @param value Number of DNS Services using the DNS zone.
     */
    @JvmName("ftodykakigwaqhme")
    public suspend fun dnsServices(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dnsServices = mapped
    }

    /**
     * @param value NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
     */
    @JvmName("rpgvgmgrxvkxuxti")
    public suspend fun dnsZoneId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dnsZoneId = mapped
    }

    /**
     * @param value Domain names of the DNS Zone.
     */
    @JvmName("egmxfmirulgacsum")
    public suspend fun domain(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domain = mapped
    }

    /**
     * @param values Domain names of the DNS Zone.
     */
    @JvmName("cksagcnftbniyeyg")
    public suspend fun domain(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.domain = mapped
    }

    /**
     * @param value Name of the private cloud
     */
    @JvmName("wnrvrycftxrkfmef")
    public suspend fun privateCloudName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateCloudName = mapped
    }

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

    /**
     * @param value NSX revision number.
     */
    @JvmName("qbfialhuydljlama")
    public suspend fun revision(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.revision = mapped
    }

    /**
     * @param value Source IP of the DNS Zone.
     */
    @JvmName("hklrhhmmdlibafnk")
    public suspend fun sourceIp(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceIp = mapped
    }

    internal fun build(): WorkloadNetworkDnsZoneArgs = WorkloadNetworkDnsZoneArgs(
        displayName = displayName,
        dnsServerIps = dnsServerIps,
        dnsServices = dnsServices,
        dnsZoneId = dnsZoneId,
        domain = domain,
        privateCloudName = privateCloudName,
        resourceGroupName = resourceGroupName,
        revision = revision,
        sourceIp = sourceIp,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy