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

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

package com.pulumi.azure.privatedns.kotlin.inputs

import com.pulumi.azure.privatedns.inputs.ResolverForwardingRuleTargetDnsServerArgs.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

/**
 *
 * @property ipAddress DNS server IP address.
 * @property port DNS server port.
 */
public data class ResolverForwardingRuleTargetDnsServerArgs(
    public val ipAddress: Output,
    public val port: Output? = null,
) : ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.privatedns.inputs.ResolverForwardingRuleTargetDnsServerArgs =
        com.pulumi.azure.privatedns.inputs.ResolverForwardingRuleTargetDnsServerArgs.builder()
            .ipAddress(ipAddress.applyValue({ args0 -> args0 }))
            .port(port?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ResolverForwardingRuleTargetDnsServerArgs].
 */
@PulumiTagMarker
public class ResolverForwardingRuleTargetDnsServerArgsBuilder internal constructor() {
    private var ipAddress: Output? = null

    private var port: Output? = null

    /**
     * @param value DNS server IP address.
     */
    @JvmName("eqybhojddjwuwcsu")
    public suspend fun ipAddress(`value`: Output) {
        this.ipAddress = value
    }

    /**
     * @param value DNS server port.
     */
    @JvmName("nqfgmglfouktwrsy")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value DNS server IP address.
     */
    @JvmName("rpapbcmrkidtlkym")
    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("upkbsexolqossmnt")
    public suspend fun port(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.port = mapped
    }

    internal fun build(): ResolverForwardingRuleTargetDnsServerArgs =
        ResolverForwardingRuleTargetDnsServerArgs(
            ipAddress = ipAddress ?: throw PulumiNullFieldException("ipAddress"),
            port = port,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy