com.pulumi.awsnative.ec2.kotlin.IpamPoolCidrArgs.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.ec2.kotlin
import com.pulumi.awsnative.ec2.IpamPoolCidrArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Resource Schema of AWS::EC2::IPAMPoolCidr Type
* @property cidr Represents a single IPv4 or IPv6 CIDR
* @property ipamPoolId Id of the IPAM Pool.
* @property netmaskLength The desired netmask length of the provision. If set, IPAM will choose a block of free space with this size and return the CIDR representing it.
*/
public data class IpamPoolCidrArgs(
public val cidr: Output? = null,
public val ipamPoolId: Output? = null,
public val netmaskLength: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ec2.IpamPoolCidrArgs =
com.pulumi.awsnative.ec2.IpamPoolCidrArgs.builder()
.cidr(cidr?.applyValue({ args0 -> args0 }))
.ipamPoolId(ipamPoolId?.applyValue({ args0 -> args0 }))
.netmaskLength(netmaskLength?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [IpamPoolCidrArgs].
*/
@PulumiTagMarker
public class IpamPoolCidrArgsBuilder internal constructor() {
private var cidr: Output? = null
private var ipamPoolId: Output? = null
private var netmaskLength: Output? = null
/**
* @param value Represents a single IPv4 or IPv6 CIDR
*/
@JvmName("toticslfdawqbnqy")
public suspend fun cidr(`value`: Output) {
this.cidr = value
}
/**
* @param value Id of the IPAM Pool.
*/
@JvmName("bvtieqafryhkuxcu")
public suspend fun ipamPoolId(`value`: Output) {
this.ipamPoolId = value
}
/**
* @param value The desired netmask length of the provision. If set, IPAM will choose a block of free space with this size and return the CIDR representing it.
*/
@JvmName("tdositfremnxdfgq")
public suspend fun netmaskLength(`value`: Output) {
this.netmaskLength = value
}
/**
* @param value Represents a single IPv4 or IPv6 CIDR
*/
@JvmName("vrqlbdwcckbpmkaj")
public suspend fun cidr(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cidr = mapped
}
/**
* @param value Id of the IPAM Pool.
*/
@JvmName("jpbjnlxtoosdqlkt")
public suspend fun ipamPoolId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ipamPoolId = mapped
}
/**
* @param value The desired netmask length of the provision. If set, IPAM will choose a block of free space with this size and return the CIDR representing it.
*/
@JvmName("ojswmhgahgnlndnq")
public suspend fun netmaskLength(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.netmaskLength = mapped
}
internal fun build(): IpamPoolCidrArgs = IpamPoolCidrArgs(
cidr = cidr,
ipamPoolId = ipamPoolId,
netmaskLength = netmaskLength,
)
}