com.pulumi.aws.ec2.kotlin.inputs.SpotFleetRequestSpotMaintenanceStrategiesArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.ec2.kotlin.inputs
import com.pulumi.aws.ec2.inputs.SpotFleetRequestSpotMaintenanceStrategiesArgs.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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property capacityRebalance Nested argument containing the capacity rebalance for your fleet request. Defined below.
*/
public data class SpotFleetRequestSpotMaintenanceStrategiesArgs(
public val capacityRebalance: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.ec2.inputs.SpotFleetRequestSpotMaintenanceStrategiesArgs =
com.pulumi.aws.ec2.inputs.SpotFleetRequestSpotMaintenanceStrategiesArgs.builder()
.capacityRebalance(
capacityRebalance?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [SpotFleetRequestSpotMaintenanceStrategiesArgs].
*/
@PulumiTagMarker
public class SpotFleetRequestSpotMaintenanceStrategiesArgsBuilder internal constructor() {
private var capacityRebalance:
Output? = null
/**
* @param value Nested argument containing the capacity rebalance for your fleet request. Defined below.
*/
@JvmName("vjrmhdlmmdcooinw")
public suspend fun capacityRebalance(`value`: Output) {
this.capacityRebalance = value
}
/**
* @param value Nested argument containing the capacity rebalance for your fleet request. Defined below.
*/
@JvmName("dyrykgisqoetckhn")
public suspend fun capacityRebalance(`value`: SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.capacityRebalance = mapped
}
/**
* @param argument Nested argument containing the capacity rebalance for your fleet request. Defined below.
*/
@JvmName("kilqjbmgscjnicdu")
public suspend fun capacityRebalance(argument: suspend SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgsBuilder.() -> Unit) {
val toBeMapped =
SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.capacityRebalance = mapped
}
internal fun build(): SpotFleetRequestSpotMaintenanceStrategiesArgs =
SpotFleetRequestSpotMaintenanceStrategiesArgs(
capacityRebalance = capacityRebalance,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy