com.pulumi.awsnative.location.kotlin.inputs.GetMapPlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.location.kotlin.inputs
import com.pulumi.awsnative.location.inputs.GetMapPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @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` .
*/
public data class GetMapPlainArgs(
public val mapName: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.location.inputs.GetMapPlainArgs =
com.pulumi.awsnative.location.inputs.GetMapPlainArgs.builder()
.mapName(mapName.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetMapPlainArgs].
*/
@PulumiTagMarker
public class GetMapPlainArgsBuilder internal constructor() {
private var mapName: String? = null
/**
* @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("yfumwfleupyonwpj")
public suspend fun mapName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.mapName = mapped
}
internal fun build(): GetMapPlainArgs = GetMapPlainArgs(
mapName = mapName ?: throw PulumiNullFieldException("mapName"),
)
}