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

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

package com.pulumi.awsnative.route53recoveryreadiness.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.route53recoveryreadiness.ReadinessCheckArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Aws Route53 Recovery Readiness Check Schema and API specification.
 * @property readinessCheckName Name of the ReadinessCheck to create.
 * @property resourceSetName The name of the resource set to check.
 * @property tags A collection of tags associated with a resource.
 */
public data class ReadinessCheckArgs(
    public val readinessCheckName: Output? = null,
    public val resourceSetName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.route53recoveryreadiness.ReadinessCheckArgs =
        com.pulumi.awsnative.route53recoveryreadiness.ReadinessCheckArgs.builder()
            .readinessCheckName(readinessCheckName?.applyValue({ args0 -> args0 }))
            .resourceSetName(resourceSetName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ReadinessCheckArgs].
 */
@PulumiTagMarker
public class ReadinessCheckArgsBuilder internal constructor() {
    private var readinessCheckName: Output? = null

    private var resourceSetName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Name of the ReadinessCheck to create.
     */
    @JvmName("odcftekmwyiiinsj")
    public suspend fun readinessCheckName(`value`: Output) {
        this.readinessCheckName = value
    }

    /**
     * @param value The name of the resource set to check.
     */
    @JvmName("hismeyjfvaxtwjia")
    public suspend fun resourceSetName(`value`: Output) {
        this.resourceSetName = value
    }

    /**
     * @param value A collection of tags associated with a resource.
     */
    @JvmName("ariiltptdevnpgfy")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A collection of tags associated with a resource.
     */
    @JvmName("ngmdskltlakieeki")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Name of the ReadinessCheck to create.
     */
    @JvmName("uckwhwogjvnfccey")
    public suspend fun readinessCheckName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.readinessCheckName = mapped
    }

    /**
     * @param value The name of the resource set to check.
     */
    @JvmName("oyivhyxehtgslggi")
    public suspend fun resourceSetName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceSetName = mapped
    }

    /**
     * @param value A collection of tags associated with a resource.
     */
    @JvmName("vifppfnhipxrsiio")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A collection of tags associated with a resource.
     */
    @JvmName("mdoltaavltuigovt")
    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 A collection of tags associated with a resource.
     */
    @JvmName("johvnclnvkccbriw")
    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 A collection of tags associated with a resource.
     */
    @JvmName("crjrgmvncfwgolrc")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A collection of tags associated with a resource.
     */
    @JvmName("cdaoijtfacenavqf")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ReadinessCheckArgs = ReadinessCheckArgs(
        readinessCheckName = readinessCheckName,
        resourceSetName = resourceSetName,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy