com.pulumi.awsnative.kotlin.inputs.CidrPlainArgs.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.kotlin.inputs
import com.pulumi.awsnative.inputs.CidrPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property cidrBits
* @property count
* @property ipBlock
*/
public data class CidrPlainArgs(
public val cidrBits: Int,
public val count: Int,
public val ipBlock: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.inputs.CidrPlainArgs =
com.pulumi.awsnative.inputs.CidrPlainArgs.builder()
.cidrBits(cidrBits.let({ args0 -> args0 }))
.count(count.let({ args0 -> args0 }))
.ipBlock(ipBlock.let({ args0 -> args0 })).build()
}
/**
* Builder for [CidrPlainArgs].
*/
@PulumiTagMarker
public class CidrPlainArgsBuilder internal constructor() {
private var cidrBits: Int? = null
private var count: Int? = null
private var ipBlock: String? = null
/**
* @param value
*/
@JvmName("igfbjykbmnsdhxmk")
public suspend fun cidrBits(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.cidrBits = mapped
}
/**
* @param value
*/
@JvmName("ebcebtvgsrwhtxmb")
public suspend fun count(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.count = mapped
}
/**
* @param value
*/
@JvmName("bptjvjbybifmpdby")
public suspend fun ipBlock(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.ipBlock = mapped
}
internal fun build(): CidrPlainArgs = CidrPlainArgs(
cidrBits = cidrBits ?: throw PulumiNullFieldException("cidrBits"),
count = count ?: throw PulumiNullFieldException("count"),
ipBlock = ipBlock ?: throw PulumiNullFieldException("ipBlock"),
)
}