
com.pulumi.azurenative.network.kotlin.inputs.TargetDnsServerArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.network.kotlin.inputs
import com.pulumi.azurenative.network.inputs.TargetDnsServerArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Describes a server to forward the DNS queries to.
* @property ipAddress DNS server IP address.
* @property port DNS server port.
*/
public data class TargetDnsServerArgs(
public val ipAddress: Output,
public val port: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.network.inputs.TargetDnsServerArgs =
com.pulumi.azurenative.network.inputs.TargetDnsServerArgs.builder()
.ipAddress(ipAddress.applyValue({ args0 -> args0 }))
.port(port?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TargetDnsServerArgs].
*/
@PulumiTagMarker
public class TargetDnsServerArgsBuilder internal constructor() {
private var ipAddress: Output? = null
private var port: Output? = null
/**
* @param value DNS server IP address.
*/
@JvmName("xqdnhnlkwvlgtnwd")
public suspend fun ipAddress(`value`: Output) {
this.ipAddress = value
}
/**
* @param value DNS server port.
*/
@JvmName("tbbuplviyaqpkmwv")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value DNS server IP address.
*/
@JvmName("nokprovjwbuooibt")
public suspend fun ipAddress(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.ipAddress = mapped
}
/**
* @param value DNS server port.
*/
@JvmName("wrevnijvjxmpnlvo")
public suspend fun port(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.port = mapped
}
internal fun build(): TargetDnsServerArgs = TargetDnsServerArgs(
ipAddress = ipAddress ?: throw PulumiNullFieldException("ipAddress"),
port = port,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy