com.pulumi.azure.stack.kotlin.inputs.HciLogicalNetworkSubnetArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.stack.kotlin.inputs
import com.pulumi.azure.stack.inputs.HciLogicalNetworkSubnetArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property addressPrefix The address prefix in CIDR notation. Changing this forces a new resource to be created.
* @property ipAllocationMethod The IP address allocation method for the subnet. Possible values are `Dynamic` and `Static`. Changing this forces a new resource to be created.
* @property ipPools One or more `ip_pool` block as defined above. Changing this forces a new resource to be created.
* @property routes One or more `route` block as defined above. Changing this forces a new resource to be created.
* @property vlanId The VLAN ID for the Logical Network. Changing this forces a new resource to be created.
*/
public data class HciLogicalNetworkSubnetArgs(
public val addressPrefix: Output? = null,
public val ipAllocationMethod: Output,
public val ipPools: Output>? = null,
public val routes: Output>? = null,
public val vlanId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.stack.inputs.HciLogicalNetworkSubnetArgs =
com.pulumi.azure.stack.inputs.HciLogicalNetworkSubnetArgs.builder()
.addressPrefix(addressPrefix?.applyValue({ args0 -> args0 }))
.ipAllocationMethod(ipAllocationMethod.applyValue({ args0 -> args0 }))
.ipPools(
ipPools?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.routes(routes?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.vlanId(vlanId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [HciLogicalNetworkSubnetArgs].
*/
@PulumiTagMarker
public class HciLogicalNetworkSubnetArgsBuilder internal constructor() {
private var addressPrefix: Output? = null
private var ipAllocationMethod: Output? = null
private var ipPools: Output>? = null
private var routes: Output>? = null
private var vlanId: Output? = null
/**
* @param value The address prefix in CIDR notation. Changing this forces a new resource to be created.
*/
@JvmName("cyisexratanpxaan")
public suspend fun addressPrefix(`value`: Output) {
this.addressPrefix = value
}
/**
* @param value The IP address allocation method for the subnet. Possible values are `Dynamic` and `Static`. Changing this forces a new resource to be created.
*/
@JvmName("gyjomeofilrdaasy")
public suspend fun ipAllocationMethod(`value`: Output) {
this.ipAllocationMethod = value
}
/**
* @param value One or more `ip_pool` block as defined above. Changing this forces a new resource to be created.
*/
@JvmName("wahmnojyfupwaoif")
public suspend fun ipPools(`value`: Output>) {
this.ipPools = value
}
@JvmName("ejybejxbytuuomsp")
public suspend fun ipPools(vararg values: Output) {
this.ipPools = Output.all(values.asList())
}
/**
* @param values One or more `ip_pool` block as defined above. Changing this forces a new resource to be created.
*/
@JvmName("ibefprfmupuspfuj")
public suspend fun ipPools(values: List