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

com.pulumi.googlenative.container.v1beta1.kotlin.inputs.DNSConfigArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.container.v1beta1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.container.v1beta1.inputs.DNSConfigArgs.builder
import com.pulumi.googlenative.container.v1beta1.kotlin.enums.DNSConfigClusterDns
import com.pulumi.googlenative.container.v1beta1.kotlin.enums.DNSConfigClusterDnsScope
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * DNSConfig contains the desired set of options for configuring clusterDNS.
 * @property clusterDns cluster_dns indicates which in-cluster DNS provider should be used.
 * @property clusterDnsDomain cluster_dns_domain is the suffix used for all cluster service records.
 * @property clusterDnsScope cluster_dns_scope indicates the scope of access to cluster DNS records.
 */
public data class DNSConfigArgs(
    public val clusterDns: Output? = null,
    public val clusterDnsDomain: Output? = null,
    public val clusterDnsScope: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.container.v1beta1.inputs.DNSConfigArgs =
        com.pulumi.googlenative.container.v1beta1.inputs.DNSConfigArgs.builder()
            .clusterDns(clusterDns?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .clusterDnsDomain(clusterDnsDomain?.applyValue({ args0 -> args0 }))
            .clusterDnsScope(
                clusterDnsScope?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [DNSConfigArgs].
 */
@PulumiTagMarker
public class DNSConfigArgsBuilder internal constructor() {
    private var clusterDns: Output? = null

    private var clusterDnsDomain: Output? = null

    private var clusterDnsScope: Output? = null

    /**
     * @param value cluster_dns indicates which in-cluster DNS provider should be used.
     */
    @JvmName("orsylpiebuitahxa")
    public suspend fun clusterDns(`value`: Output) {
        this.clusterDns = value
    }

    /**
     * @param value cluster_dns_domain is the suffix used for all cluster service records.
     */
    @JvmName("dqvstimcpgvfvnky")
    public suspend fun clusterDnsDomain(`value`: Output) {
        this.clusterDnsDomain = value
    }

    /**
     * @param value cluster_dns_scope indicates the scope of access to cluster DNS records.
     */
    @JvmName("klansiwnppjpfguo")
    public suspend fun clusterDnsScope(`value`: Output) {
        this.clusterDnsScope = value
    }

    /**
     * @param value cluster_dns indicates which in-cluster DNS provider should be used.
     */
    @JvmName("xrgtbjjaxlgatvlr")
    public suspend fun clusterDns(`value`: DNSConfigClusterDns?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clusterDns = mapped
    }

    /**
     * @param value cluster_dns_domain is the suffix used for all cluster service records.
     */
    @JvmName("gtjkljnpslsprrkc")
    public suspend fun clusterDnsDomain(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clusterDnsDomain = mapped
    }

    /**
     * @param value cluster_dns_scope indicates the scope of access to cluster DNS records.
     */
    @JvmName("ptnkbaepxuumtjry")
    public suspend fun clusterDnsScope(`value`: DNSConfigClusterDnsScope?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clusterDnsScope = mapped
    }

    internal fun build(): DNSConfigArgs = DNSConfigArgs(
        clusterDns = clusterDns,
        clusterDnsDomain = clusterDnsDomain,
        clusterDnsScope = clusterDnsScope,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy