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

com.pulumi.googlenative.dns.v1.kotlin.inputs.RRSetRoutingPolicyArgs.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.dns.v1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.dns.v1.inputs.RRSetRoutingPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * A RRSetRoutingPolicy represents ResourceRecordSet data that is returned dynamically with the response varying based on configured properties such as geolocation or by weighted random selection.
 * @property geo
 * @property kind
 * @property primaryBackup
 * @property wrr
 */
public data class RRSetRoutingPolicyArgs(
    public val geo: Output? = null,
    public val kind: Output? = null,
    public val primaryBackup: Output? = null,
    public val wrr: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.dns.v1.inputs.RRSetRoutingPolicyArgs =
        com.pulumi.googlenative.dns.v1.inputs.RRSetRoutingPolicyArgs.builder()
            .geo(geo?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .kind(kind?.applyValue({ args0 -> args0 }))
            .primaryBackup(primaryBackup?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .wrr(wrr?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [RRSetRoutingPolicyArgs].
 */
@PulumiTagMarker
public class RRSetRoutingPolicyArgsBuilder internal constructor() {
    private var geo: Output? = null

    private var kind: Output? = null

    private var primaryBackup: Output? = null

    private var wrr: Output? = null

    /**
     * @param value
     */
    @JvmName("qnqsrkhdkfleawqy")
    public suspend fun geo(`value`: Output) {
        this.geo = value
    }

    /**
     * @param value
     */
    @JvmName("pcijnkgcpksxyfej")
    public suspend fun kind(`value`: Output) {
        this.kind = value
    }

    /**
     * @param value
     */
    @JvmName("bmepfvieljrosohk")
    public suspend fun primaryBackup(`value`: Output) {
        this.primaryBackup = value
    }

    /**
     * @param value
     */
    @JvmName("pqohetlyfeqctltk")
    public suspend fun wrr(`value`: Output) {
        this.wrr = value
    }

    /**
     * @param value
     */
    @JvmName("dvtsbtpracehdatb")
    public suspend fun geo(`value`: RRSetRoutingPolicyGeoPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.geo = mapped
    }

    /**
     * @param argument
     */
    @JvmName("bibasxiwdlagmoiy")
    public suspend fun geo(argument: suspend RRSetRoutingPolicyGeoPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = RRSetRoutingPolicyGeoPolicyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.geo = mapped
    }

    /**
     * @param value
     */
    @JvmName("dibkrnhdqhyndgxq")
    public suspend fun kind(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kind = mapped
    }

    /**
     * @param value
     */
    @JvmName("tpjhykqpsdbbayvl")
    public suspend fun primaryBackup(`value`: RRSetRoutingPolicyPrimaryBackupPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.primaryBackup = mapped
    }

    /**
     * @param argument
     */
    @JvmName("lkrewjswkqtcnppp")
    public suspend fun primaryBackup(argument: suspend RRSetRoutingPolicyPrimaryBackupPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = RRSetRoutingPolicyPrimaryBackupPolicyArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.primaryBackup = mapped
    }

    /**
     * @param value
     */
    @JvmName("kxamgtrdstcoqofh")
    public suspend fun wrr(`value`: RRSetRoutingPolicyWrrPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.wrr = mapped
    }

    /**
     * @param argument
     */
    @JvmName("btlnvugwdpiopbtk")
    public suspend fun wrr(argument: suspend RRSetRoutingPolicyWrrPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = RRSetRoutingPolicyWrrPolicyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.wrr = mapped
    }

    internal fun build(): RRSetRoutingPolicyArgs = RRSetRoutingPolicyArgs(
        geo = geo,
        kind = kind,
        primaryBackup = primaryBackup,
        wrr = wrr,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy