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

com.pulumi.awsnative.ec2.kotlin.DhcpOptionsArgs.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.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ec2.kotlin

import com.pulumi.awsnative.ec2.DhcpOptionsArgs.builder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::EC2::DHCPOptions
 * @property domainName This value is used to complete unqualified DNS hostnames.
 * @property domainNameServers The IPv4 addresses of up to four domain name servers, or AmazonProvidedDNS.
 * @property ipv6AddressPreferredLeaseTime The preferred Lease Time for ipV6 address in seconds.
 * @property netbiosNameServers The IPv4 addresses of up to four NetBIOS name servers.
 * @property netbiosNodeType The NetBIOS node type (1, 2, 4, or 8).
 * @property ntpServers The IPv4 addresses of up to four Network Time Protocol (NTP) servers.
 * @property tags Any tags assigned to the DHCP options set.
 */
public data class DhcpOptionsArgs(
    public val domainName: Output? = null,
    public val domainNameServers: Output>? = null,
    public val ipv6AddressPreferredLeaseTime: Output? = null,
    public val netbiosNameServers: Output>? = null,
    public val netbiosNodeType: Output? = null,
    public val ntpServers: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.DhcpOptionsArgs =
        com.pulumi.awsnative.ec2.DhcpOptionsArgs.builder()
            .domainName(domainName?.applyValue({ args0 -> args0 }))
            .domainNameServers(domainNameServers?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .ipv6AddressPreferredLeaseTime(ipv6AddressPreferredLeaseTime?.applyValue({ args0 -> args0 }))
            .netbiosNameServers(netbiosNameServers?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .netbiosNodeType(netbiosNodeType?.applyValue({ args0 -> args0 }))
            .ntpServers(ntpServers?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [DhcpOptionsArgs].
 */
@PulumiTagMarker
public class DhcpOptionsArgsBuilder internal constructor() {
    private var domainName: Output? = null

    private var domainNameServers: Output>? = null

    private var ipv6AddressPreferredLeaseTime: Output? = null

    private var netbiosNameServers: Output>? = null

    private var netbiosNodeType: Output? = null

    private var ntpServers: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value This value is used to complete unqualified DNS hostnames.
     */
    @JvmName("itumahxcijmfqqjw")
    public suspend fun domainName(`value`: Output) {
        this.domainName = value
    }

    /**
     * @param value The IPv4 addresses of up to four domain name servers, or AmazonProvidedDNS.
     */
    @JvmName("tgbdfneqgjnaiexf")
    public suspend fun domainNameServers(`value`: Output>) {
        this.domainNameServers = value
    }

    @JvmName("wkayndrikembglva")
    public suspend fun domainNameServers(vararg values: Output) {
        this.domainNameServers = Output.all(values.asList())
    }

    /**
     * @param values The IPv4 addresses of up to four domain name servers, or AmazonProvidedDNS.
     */
    @JvmName("esgsblpgoluucill")
    public suspend fun domainNameServers(values: List>) {
        this.domainNameServers = Output.all(values)
    }

    /**
     * @param value The preferred Lease Time for ipV6 address in seconds.
     */
    @JvmName("monuxxpqvuxbsjra")
    public suspend fun ipv6AddressPreferredLeaseTime(`value`: Output) {
        this.ipv6AddressPreferredLeaseTime = value
    }

    /**
     * @param value The IPv4 addresses of up to four NetBIOS name servers.
     */
    @JvmName("lawpxebvosiyvxrw")
    public suspend fun netbiosNameServers(`value`: Output>) {
        this.netbiosNameServers = value
    }

    @JvmName("eruliiffxepwkoff")
    public suspend fun netbiosNameServers(vararg values: Output) {
        this.netbiosNameServers = Output.all(values.asList())
    }

    /**
     * @param values The IPv4 addresses of up to four NetBIOS name servers.
     */
    @JvmName("oojiqlhpxkuyhiqa")
    public suspend fun netbiosNameServers(values: List>) {
        this.netbiosNameServers = Output.all(values)
    }

    /**
     * @param value The NetBIOS node type (1, 2, 4, or 8).
     */
    @JvmName("lswmdohdqxjtwnau")
    public suspend fun netbiosNodeType(`value`: Output) {
        this.netbiosNodeType = value
    }

    /**
     * @param value The IPv4 addresses of up to four Network Time Protocol (NTP) servers.
     */
    @JvmName("pkutjjlxawaohkvw")
    public suspend fun ntpServers(`value`: Output>) {
        this.ntpServers = value
    }

    @JvmName("wqudlbhwmimppnhj")
    public suspend fun ntpServers(vararg values: Output) {
        this.ntpServers = Output.all(values.asList())
    }

    /**
     * @param values The IPv4 addresses of up to four Network Time Protocol (NTP) servers.
     */
    @JvmName("kxuadyihrytncrqg")
    public suspend fun ntpServers(values: List>) {
        this.ntpServers = Output.all(values)
    }

    /**
     * @param value Any tags assigned to the DHCP options set.
     */
    @JvmName("jlaaxirurxmxbbfw")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("qlwirxjodcowlrda")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values Any tags assigned to the DHCP options set.
     */
    @JvmName("eysjngsxmqktiqkk")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value This value is used to complete unqualified DNS hostnames.
     */
    @JvmName("atbdqeugebcbhcwt")
    public suspend fun domainName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainName = mapped
    }

    /**
     * @param value The IPv4 addresses of up to four domain name servers, or AmazonProvidedDNS.
     */
    @JvmName("nyaufhjxbaompscq")
    public suspend fun domainNameServers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainNameServers = mapped
    }

    /**
     * @param values The IPv4 addresses of up to four domain name servers, or AmazonProvidedDNS.
     */
    @JvmName("inhnvpeojprcccif")
    public suspend fun domainNameServers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.domainNameServers = mapped
    }

    /**
     * @param value The preferred Lease Time for ipV6 address in seconds.
     */
    @JvmName("odlwnbeaumhdfvoy")
    public suspend fun ipv6AddressPreferredLeaseTime(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipv6AddressPreferredLeaseTime = mapped
    }

    /**
     * @param value The IPv4 addresses of up to four NetBIOS name servers.
     */
    @JvmName("jxjjqenwnbmqgycs")
    public suspend fun netbiosNameServers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.netbiosNameServers = mapped
    }

    /**
     * @param values The IPv4 addresses of up to four NetBIOS name servers.
     */
    @JvmName("vlhuxevyucnfkudv")
    public suspend fun netbiosNameServers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.netbiosNameServers = mapped
    }

    /**
     * @param value The NetBIOS node type (1, 2, 4, or 8).
     */
    @JvmName("okpflkwvikwafxxi")
    public suspend fun netbiosNodeType(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.netbiosNodeType = mapped
    }

    /**
     * @param value The IPv4 addresses of up to four Network Time Protocol (NTP) servers.
     */
    @JvmName("jvgsrjninehwlbda")
    public suspend fun ntpServers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ntpServers = mapped
    }

    /**
     * @param values The IPv4 addresses of up to four Network Time Protocol (NTP) servers.
     */
    @JvmName("mvqtwlwcxekisipk")
    public suspend fun ntpServers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ntpServers = mapped
    }

    /**
     * @param value Any tags assigned to the DHCP options set.
     */
    @JvmName("anrxmbduvnuthntc")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Any tags assigned to the DHCP options set.
     */
    @JvmName("omgobqxdyrifhogc")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Any tags assigned to the DHCP options set.
     */
    @JvmName("wdfpdpdjyhhmsvey")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Any tags assigned to the DHCP options set.
     */
    @JvmName("bdtfegojbwbokqps")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Any tags assigned to the DHCP options set.
     */
    @JvmName("hsegdptmgtnkxybm")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): DhcpOptionsArgs = DhcpOptionsArgs(
        domainName = domainName,
        domainNameServers = domainNameServers,
        ipv6AddressPreferredLeaseTime = ipv6AddressPreferredLeaseTime,
        netbiosNameServers = netbiosNameServers,
        netbiosNodeType = netbiosNodeType,
        ntpServers = ntpServers,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy