![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.azurestackhci.kotlin.outputs.SubnetResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-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.azurenative.azurestackhci.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property addressPrefix The address prefix for the subnet: Cidr for this subnet - IPv4, IPv6.
* @property addressPrefixes List of address prefixes for the subnet.
* @property ipAllocationMethod IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'
* @property ipConfigurationReferences IPConfigurationReferences - list of IPConfigurationReferences
* @property ipPools network associated pool of IP Addresses
* @property name Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
* @property routeTable Route table resource.
* @property vlan Vlan to use for the subnet
*/
public data class SubnetResponse(
public val addressPrefix: String? = null,
public val addressPrefixes: List? = null,
public val ipAllocationMethod: String? = null,
public val ipConfigurationReferences: List? = null,
public val ipPools: List? = null,
public val name: String? = null,
public val routeTable: RouteTableResponse? = null,
public val vlan: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.azurestackhci.outputs.SubnetResponse): SubnetResponse = SubnetResponse(
addressPrefix = javaType.addressPrefix().map({ args0 -> args0 }).orElse(null),
addressPrefixes = javaType.addressPrefixes().map({ args0 -> args0 }),
ipAllocationMethod = javaType.ipAllocationMethod().map({ args0 -> args0 }).orElse(null),
ipConfigurationReferences = javaType.ipConfigurationReferences().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.azurestackhci.kotlin.outputs.SubnetPropertiesFormatResponseIpConfigurationReferences.Companion.toKotlin(args0)
})
}),
ipPools = javaType.ipPools().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.azurestackhci.kotlin.outputs.IPPoolResponse.Companion.toKotlin(args0)
})
}),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
routeTable = javaType.routeTable().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.azurestackhci.kotlin.outputs.RouteTableResponse.Companion.toKotlin(args0)
})
}).orElse(null),
vlan = javaType.vlan().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy