com.pulumi.awsnative.elasticbeanstalk.kotlin.inputs.EnvironmentOptionSettingArgs.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.elasticbeanstalk.kotlin.inputs
import com.pulumi.awsnative.elasticbeanstalk.inputs.EnvironmentOptionSettingArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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 namespace A unique namespace that identifies the option's associated AWS resource.
* @property optionName The name of the configuration option.
* @property resourceName A unique resource name for the option setting. Use it for a time–based scaling configuration option.
* @property value The current value for the configuration option.
*/
public data class EnvironmentOptionSettingArgs(
public val namespace: Output,
public val optionName: Output,
public val resourceName: Output? = null,
public val `value`: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.elasticbeanstalk.inputs.EnvironmentOptionSettingArgs =
com.pulumi.awsnative.elasticbeanstalk.inputs.EnvironmentOptionSettingArgs.builder()
.namespace(namespace.applyValue({ args0 -> args0 }))
.optionName(optionName.applyValue({ args0 -> args0 }))
.resourceName(resourceName?.applyValue({ args0 -> args0 }))
.`value`(`value`?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EnvironmentOptionSettingArgs].
*/
@PulumiTagMarker
public class EnvironmentOptionSettingArgsBuilder internal constructor() {
private var namespace: Output? = null
private var optionName: Output? = null
private var resourceName: Output? = null
private var `value`: Output? = null
/**
* @param value A unique namespace that identifies the option's associated AWS resource.
*/
@JvmName("yatcafdyhvdvoqdo")
public suspend fun namespace(`value`: Output) {
this.namespace = value
}
/**
* @param value The name of the configuration option.
*/
@JvmName("bvgyiqovjjpmpsmu")
public suspend fun optionName(`value`: Output) {
this.optionName = value
}
/**
* @param value A unique resource name for the option setting. Use it for a time–based scaling configuration option.
*/
@JvmName("kdhhfrehunvyfwbh")
public suspend fun resourceName(`value`: Output) {
this.resourceName = value
}
/**
* @param value The current value for the configuration option.
*/
@JvmName("onogobudiblqmcar")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value A unique namespace that identifies the option's associated AWS resource.
*/
@JvmName("bhpavdxhdodsnlat")
public suspend fun namespace(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.namespace = mapped
}
/**
* @param value The name of the configuration option.
*/
@JvmName("jtwfnecqbxvyjwae")
public suspend fun optionName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.optionName = mapped
}
/**
* @param value A unique resource name for the option setting. Use it for a time–based scaling configuration option.
*/
@JvmName("vabrwsjxmouinvyg")
public suspend fun resourceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceName = mapped
}
/**
* @param value The current value for the configuration option.
*/
@JvmName("yrxsrdkprloaetxn")
public suspend fun `value`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): EnvironmentOptionSettingArgs = EnvironmentOptionSettingArgs(
namespace = namespace ?: throw PulumiNullFieldException("namespace"),
optionName = optionName ?: throw PulumiNullFieldException("optionName"),
resourceName = resourceName,
`value` = `value`,
)
}