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

com.pulumi.azure.dns.kotlin.inputs.GetZonePlainArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.dns.kotlin.inputs

import com.pulumi.azure.dns.inputs.GetZonePlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getZone.
 * @property name The name of the DNS Zone.
 * @property resourceGroupName The Name of the Resource Group where the DNS Zone exists.
 * If the Name of the Resource Group is not provided, the first DNS Zone from the list of DNS Zones
 * in your subscription that matches `name` will be returned.
 */
public data class GetZonePlainArgs(
    public val name: String,
    public val resourceGroupName: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.dns.inputs.GetZonePlainArgs =
        com.pulumi.azure.dns.inputs.GetZonePlainArgs.builder()
            .name(name.let({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetZonePlainArgs].
 */
@PulumiTagMarker
public class GetZonePlainArgsBuilder internal constructor() {
    private var name: String? = null

    private var resourceGroupName: String? = null

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

    /**
     * @param value The Name of the Resource Group where the DNS Zone exists.
     * If the Name of the Resource Group is not provided, the first DNS Zone from the list of DNS Zones
     * in your subscription that matches `name` will be returned.
     */
    @JvmName("glvekoouqsrrancu")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.resourceGroupName = mapped
    }

    internal fun build(): GetZonePlainArgs = GetZonePlainArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        resourceGroupName = resourceGroupName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy