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

com.pulumi.awsnative.route53resolver.kotlin.inputs.ResolverRuleTargetAddressArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.route53resolver.kotlin.inputs

import com.pulumi.awsnative.route53resolver.inputs.ResolverRuleTargetAddressArgs.builder
import com.pulumi.awsnative.route53resolver.kotlin.enums.ResolverRuleTargetAddressProtocol
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property ip One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.
 * @property ipv6 One IPv6 address that you want to forward DNS queries to. You can specify only IPv6 addresses.
 * @property port The port at Ip that you want to forward DNS queries to.
 * @property protocol The protocol that you want to use to forward DNS queries.
 */
public data class ResolverRuleTargetAddressArgs(
    public val ip: Output? = null,
    public val ipv6: Output? = null,
    public val port: Output? = null,
    public val protocol: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.route53resolver.inputs.ResolverRuleTargetAddressArgs =
        com.pulumi.awsnative.route53resolver.inputs.ResolverRuleTargetAddressArgs.builder()
            .ip(ip?.applyValue({ args0 -> args0 }))
            .ipv6(ipv6?.applyValue({ args0 -> args0 }))
            .port(port?.applyValue({ args0 -> args0 }))
            .protocol(protocol?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ResolverRuleTargetAddressArgs].
 */
@PulumiTagMarker
public class ResolverRuleTargetAddressArgsBuilder internal constructor() {
    private var ip: Output? = null

    private var ipv6: Output? = null

    private var port: Output? = null

    private var protocol: Output? = null

    /**
     * @param value One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.
     */
    @JvmName("igydoelmknpmiokx")
    public suspend fun ip(`value`: Output) {
        this.ip = value
    }

    /**
     * @param value One IPv6 address that you want to forward DNS queries to. You can specify only IPv6 addresses.
     */
    @JvmName("ikdblhxpwkcdsvpd")
    public suspend fun ipv6(`value`: Output) {
        this.ipv6 = value
    }

    /**
     * @param value The port at Ip that you want to forward DNS queries to.
     */
    @JvmName("xamofhbddtlcuktm")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value The protocol that you want to use to forward DNS queries.
     */
    @JvmName("chpplsyrvhfisthq")
    public suspend fun protocol(`value`: Output) {
        this.protocol = value
    }

    /**
     * @param value One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.
     */
    @JvmName("obhdgnvrffmhvcnt")
    public suspend fun ip(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ip = mapped
    }

    /**
     * @param value One IPv6 address that you want to forward DNS queries to. You can specify only IPv6 addresses.
     */
    @JvmName("eaomcvclmposfovf")
    public suspend fun ipv6(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipv6 = mapped
    }

    /**
     * @param value The port at Ip that you want to forward DNS queries to.
     */
    @JvmName("yvwpmvqogcwxhmer")
    public suspend fun port(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.port = mapped
    }

    /**
     * @param value The protocol that you want to use to forward DNS queries.
     */
    @JvmName("rstsyttnatjcpmjw")
    public suspend fun protocol(`value`: ResolverRuleTargetAddressProtocol?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.protocol = mapped
    }

    internal fun build(): ResolverRuleTargetAddressArgs = ResolverRuleTargetAddressArgs(
        ip = ip,
        ipv6 = ipv6,
        port = port,
        protocol = protocol,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy