All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.stack.kotlin.outputs.HciLogicalNetworkSubnet.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.stack.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 HciLogicalNetworkSubnet(
    public val addressPrefix: String? = null,
    public val ipAllocationMethod: String,
    public val ipPools: List? = null,
    public val routes: List? = null,
    public val vlanId: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.stack.outputs.HciLogicalNetworkSubnet): HciLogicalNetworkSubnet = HciLogicalNetworkSubnet(
            addressPrefix = javaType.addressPrefix().map({ args0 -> args0 }).orElse(null),
            ipAllocationMethod = javaType.ipAllocationMethod(),
            ipPools = javaType.ipPools().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.stack.kotlin.outputs.HciLogicalNetworkSubnetIpPool.Companion.toKotlin(args0)
                })
            }),
            routes = javaType.routes().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.stack.kotlin.outputs.HciLogicalNetworkSubnetRoute.Companion.toKotlin(args0)
                })
            }),
            vlanId = javaType.vlanId().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy