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

com.pulumi.awsnative.route53.kotlin.CidrCollectionArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.route53.kotlin

import com.pulumi.awsnative.route53.CidrCollectionArgs.builder
import com.pulumi.awsnative.route53.kotlin.inputs.CidrCollectionLocationArgs
import com.pulumi.awsnative.route53.kotlin.inputs.CidrCollectionLocationArgsBuilder
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

/**
 * Resource schema for AWS::Route53::CidrCollection.
 * @property locations A complex type that contains information about the list of CIDR locations.
 * @property name A unique name for the CIDR collection.
 */
public data class CidrCollectionArgs(
    public val locations: Output>? = null,
    public val name: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.route53.CidrCollectionArgs =
        com.pulumi.awsnative.route53.CidrCollectionArgs.builder()
            .locations(
                locations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CidrCollectionArgs].
 */
@PulumiTagMarker
public class CidrCollectionArgsBuilder internal constructor() {
    private var locations: Output>? = null

    private var name: Output? = null

    /**
     * @param value A complex type that contains information about the list of CIDR locations.
     */
    @JvmName("xvcqigcjthywpwun")
    public suspend fun locations(`value`: Output>) {
        this.locations = value
    }

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

    /**
     * @param values A complex type that contains information about the list of CIDR locations.
     */
    @JvmName("yobesgqfhtsobkgo")
    public suspend fun locations(values: List>) {
        this.locations = Output.all(values)
    }

    /**
     * @param value A unique name for the CIDR collection.
     */
    @JvmName("vnrtgnjdvyqqtqfr")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A complex type that contains information about the list of CIDR locations.
     */
    @JvmName("qrhmoswepvuismhb")
    public suspend fun locations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.locations = mapped
    }

    /**
     * @param argument A complex type that contains information about the list of CIDR locations.
     */
    @JvmName("byewnkpxqdgrgubr")
    public suspend fun locations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CidrCollectionLocationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.locations = mapped
    }

    /**
     * @param argument A complex type that contains information about the list of CIDR locations.
     */
    @JvmName("hpaqjjrmtjfpieta")
    public suspend fun locations(vararg argument: suspend CidrCollectionLocationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CidrCollectionLocationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.locations = mapped
    }

    /**
     * @param argument A complex type that contains information about the list of CIDR locations.
     */
    @JvmName("lrttejtodlviqbcl")
    public suspend fun locations(argument: suspend CidrCollectionLocationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(CidrCollectionLocationArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.locations = mapped
    }

    /**
     * @param values A complex type that contains information about the list of CIDR locations.
     */
    @JvmName("aefsosmwoxrkgbbi")
    public suspend fun locations(vararg values: CidrCollectionLocationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.locations = mapped
    }

    /**
     * @param value A unique name for the CIDR collection.
     */
    @JvmName("rurajhtefjrwbiqd")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): CidrCollectionArgs = CidrCollectionArgs(
        locations = locations,
        name = name,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy