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

com.pulumi.awsnative.route53recoveryreadiness.kotlin.inputs.ResourceSetTargetResourceArgs.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.route53recoveryreadiness.kotlin.inputs

import com.pulumi.awsnative.route53recoveryreadiness.inputs.ResourceSetTargetResourceArgs.builder
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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The target resource that the Route 53 record points to.
 * @property nlbResource The Network Load Balancer resource that a DNS target resource points to.
 * @property r53Resource The Route 53 resource that a DNS target resource record points to.
 */
public data class ResourceSetTargetResourceArgs(
    public val nlbResource: Output? = null,
    public val r53Resource: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.route53recoveryreadiness.inputs.ResourceSetTargetResourceArgs =
        com.pulumi.awsnative.route53recoveryreadiness.inputs.ResourceSetTargetResourceArgs.builder()
            .nlbResource(nlbResource?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .r53Resource(r53Resource?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ResourceSetTargetResourceArgs].
 */
@PulumiTagMarker
public class ResourceSetTargetResourceArgsBuilder internal constructor() {
    private var nlbResource: Output? = null

    private var r53Resource: Output? = null

    /**
     * @param value The Network Load Balancer resource that a DNS target resource points to.
     */
    @JvmName("trubctxeoeargflp")
    public suspend fun nlbResource(`value`: Output) {
        this.nlbResource = value
    }

    /**
     * @param value The Route 53 resource that a DNS target resource record points to.
     */
    @JvmName("ukflidvhrvjdnavk")
    public suspend fun r53Resource(`value`: Output) {
        this.r53Resource = value
    }

    /**
     * @param value The Network Load Balancer resource that a DNS target resource points to.
     */
    @JvmName("hpimeapcwjtokoiv")
    public suspend fun nlbResource(`value`: ResourceSetNlbResourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nlbResource = mapped
    }

    /**
     * @param argument The Network Load Balancer resource that a DNS target resource points to.
     */
    @JvmName("mxnhdrxynkdmlpiw")
    public suspend fun nlbResource(argument: suspend ResourceSetNlbResourceArgsBuilder.() -> Unit) {
        val toBeMapped = ResourceSetNlbResourceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.nlbResource = mapped
    }

    /**
     * @param value The Route 53 resource that a DNS target resource record points to.
     */
    @JvmName("kamcjkiqbstvruag")
    public suspend fun r53Resource(`value`: ResourceSetR53ResourceRecordArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.r53Resource = mapped
    }

    /**
     * @param argument The Route 53 resource that a DNS target resource record points to.
     */
    @JvmName("ttjgareycmydvmly")
    public suspend fun r53Resource(argument: suspend ResourceSetR53ResourceRecordArgsBuilder.() -> Unit) {
        val toBeMapped = ResourceSetR53ResourceRecordArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.r53Resource = mapped
    }

    internal fun build(): ResourceSetTargetResourceArgs = ResourceSetTargetResourceArgs(
        nlbResource = nlbResource,
        r53Resource = r53Resource,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy