![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.privatedns.kotlin.inputs.GetDnsZonePlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.privatedns.kotlin.inputs
import com.pulumi.azure.privatedns.inputs.GetDnsZonePlainArgs.builder
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
/**
* A collection of arguments for invoking getDnsZone.
* @property name The name of the Private DNS Zone.
* @property resourceGroupName The Name of the Resource Group where the Private DNS Zone exists.
* If the Name of the Resource Group is not provided, the first Private DNS Zone from the list of Private
* DNS Zones in your subscription that matches `name` will be returned.
* @property tags A mapping of tags for the zone.
*/
public data class GetDnsZonePlainArgs(
public val name: String,
public val resourceGroupName: String? = null,
public val tags: Map? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.privatedns.inputs.GetDnsZonePlainArgs =
com.pulumi.azure.privatedns.inputs.GetDnsZonePlainArgs.builder()
.name(name.let({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.let({ args0 -> args0 }))
.tags(tags?.let({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() })).build()
}
/**
* Builder for [GetDnsZonePlainArgs].
*/
@PulumiTagMarker
public class GetDnsZonePlainArgsBuilder internal constructor() {
private var name: String? = null
private var resourceGroupName: String? = null
private var tags: Map? = null
/**
* @param value The name of the Private DNS Zone.
*/
@JvmName("nmkchhixslvvvluv")
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 Private DNS Zone exists.
* If the Name of the Resource Group is not provided, the first Private DNS Zone from the list of Private
* DNS Zones in your subscription that matches `name` will be returned.
*/
@JvmName("voivdixfplvvcmbe")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.resourceGroupName = mapped
}
/**
* @param value A mapping of tags for the zone.
*/
@JvmName("avlecqrduirlbkns")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.tags = mapped
}
/**
* @param values A mapping of tags for the zone.
*/
@JvmName("pwqktvlcfqqoqndl")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> args0 })
this.tags = mapped
}
internal fun build(): GetDnsZonePlainArgs = GetDnsZonePlainArgs(
name = name ?: throw PulumiNullFieldException("name"),
resourceGroupName = resourceGroupName,
tags = tags,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy