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

com.pulumi.awsnative.location.kotlin.MapArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.location.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.location.MapArgs.builder
import com.pulumi.awsnative.location.kotlin.enums.MapPricingPlan
import com.pulumi.awsnative.location.kotlin.inputs.MapConfigurationArgs
import com.pulumi.awsnative.location.kotlin.inputs.MapConfigurationArgsBuilder
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

/**
 * Definition of AWS::Location::Map Resource Type
 * @property configuration Specifies the `MapConfiguration` , including the map style, for the map resource that you create. The map style defines the look of maps and the data provider for your map resource.
 * @property description An optional description for the map resource.
 * @property mapName The name for the map resource.
 * Requirements:
 * - Must contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
 * - Must be a unique map resource name.
 * - No spaces allowed. For example, `ExampleMap` .
 * @property pricingPlan No longer used. If included, the only allowed value is `RequestBasedUsage` .
 * *Allowed Values* : `RequestBasedUsage`
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class MapArgs(
    public val configuration: Output? = null,
    public val description: Output? = null,
    public val mapName: Output? = null,
    public val pricingPlan: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.location.MapArgs =
        com.pulumi.awsnative.location.MapArgs.builder()
            .configuration(configuration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .mapName(mapName?.applyValue({ args0 -> args0 }))
            .pricingPlan(pricingPlan?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [MapArgs].
 */
@PulumiTagMarker
public class MapArgsBuilder internal constructor() {
    private var configuration: Output? = null

    private var description: Output? = null

    private var mapName: Output? = null

    private var pricingPlan: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Specifies the `MapConfiguration` , including the map style, for the map resource that you create. The map style defines the look of maps and the data provider for your map resource.
     */
    @JvmName("kmjesbhvvnwggbiq")
    public suspend fun configuration(`value`: Output) {
        this.configuration = value
    }

    /**
     * @param value An optional description for the map resource.
     */
    @JvmName("fcioqpyapgrsjuik")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name for the map resource.
     * Requirements:
     * - Must contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
     * - Must be a unique map resource name.
     * - No spaces allowed. For example, `ExampleMap` .
     */
    @JvmName("lflgrkjpkmbkhvvl")
    public suspend fun mapName(`value`: Output) {
        this.mapName = value
    }

    /**
     * @param value No longer used. If included, the only allowed value is `RequestBasedUsage` .
     * *Allowed Values* : `RequestBasedUsage`
     */
    @JvmName("prcifsxuieomcyfj")
    public suspend fun pricingPlan(`value`: Output) {
        this.pricingPlan = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("aphsvjkiyrqkwscm")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("xkjiujlpitsemqnr")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Specifies the `MapConfiguration` , including the map style, for the map resource that you create. The map style defines the look of maps and the data provider for your map resource.
     */
    @JvmName("egtnjgkfxfvboqyk")
    public suspend fun configuration(`value`: MapConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configuration = mapped
    }

    /**
     * @param argument Specifies the `MapConfiguration` , including the map style, for the map resource that you create. The map style defines the look of maps and the data provider for your map resource.
     */
    @JvmName("fdwxxweuoebjvjoa")
    public suspend fun configuration(argument: suspend MapConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = MapConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.configuration = mapped
    }

    /**
     * @param value An optional description for the map resource.
     */
    @JvmName("bnvnvhacmlivdmmh")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The name for the map resource.
     * Requirements:
     * - Must contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
     * - Must be a unique map resource name.
     * - No spaces allowed. For example, `ExampleMap` .
     */
    @JvmName("mftjebacfbahdbsp")
    public suspend fun mapName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mapName = mapped
    }

    /**
     * @param value No longer used. If included, the only allowed value is `RequestBasedUsage` .
     * *Allowed Values* : `RequestBasedUsage`
     */
    @JvmName("nkeqaaswwoqrvmqn")
    public suspend fun pricingPlan(`value`: MapPricingPlan?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pricingPlan = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("dsgilkvicbvcebnc")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("lbmqrrwnlsigvfhj")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("vdrwomdewfhhlfss")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("vuajrocwggeotxbo")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("olbsgmlncomvusto")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): MapArgs = MapArgs(
        configuration = configuration,
        description = description,
        mapName = mapName,
        pricingPlan = pricingPlan,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy