
com.pulumi.azurenative.network.kotlin.inputs.PrivateLinkServiceIpConfigurationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.network.kotlin.inputs
import com.pulumi.azurenative.network.inputs.PrivateLinkServiceIpConfigurationArgs.builder
import com.pulumi.azurenative.network.kotlin.enums.IPAllocationMethod
import com.pulumi.azurenative.network.kotlin.enums.IPVersion
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* The private link service ip configuration.
* @property id Resource ID.
* @property name The name of private link service ip configuration.
* @property primary Whether the ip configuration is primary or not.
* @property privateIPAddress The private IP address of the IP configuration.
* @property privateIPAddressVersion Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4.
* @property privateIPAllocationMethod The private IP address allocation method.
* @property subnet The reference to the subnet resource.
*/
public data class PrivateLinkServiceIpConfigurationArgs(
public val id: Output? = null,
public val name: Output? = null,
public val primary: Output? = null,
public val privateIPAddress: Output? = null,
public val privateIPAddressVersion: Output>? = null,
public val privateIPAllocationMethod: Output>? = null,
public val subnet: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.network.inputs.PrivateLinkServiceIpConfigurationArgs = com.pulumi.azurenative.network.inputs.PrivateLinkServiceIpConfigurationArgs.builder()
.id(id?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.primary(primary?.applyValue({ args0 -> args0 }))
.privateIPAddress(privateIPAddress?.applyValue({ args0 -> args0 }))
.privateIPAddressVersion(
privateIPAddressVersion?.applyValue({ args0 ->
args0.transform({ args0 ->
args0
}, { args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
)
.privateIPAllocationMethod(
privateIPAllocationMethod?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
)
.subnet(subnet?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [PrivateLinkServiceIpConfigurationArgs].
*/
@PulumiTagMarker
public class PrivateLinkServiceIpConfigurationArgsBuilder internal constructor() {
private var id: Output? = null
private var name: Output? = null
private var primary: Output? = null
private var privateIPAddress: Output? = null
private var privateIPAddressVersion: Output>? = null
private var privateIPAllocationMethod: Output>? = null
private var subnet: Output? = null
/**
* @param value Resource ID.
*/
@JvmName("gtemhopkpxofxuri")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value The name of private link service ip configuration.
*/
@JvmName("dwrqnpsnnvuubrfk")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Whether the ip configuration is primary or not.
*/
@JvmName("hcxgrpsmedhnfmmm")
public suspend fun primary(`value`: Output) {
this.primary = value
}
/**
* @param value The private IP address of the IP configuration.
*/
@JvmName("xedkysctemchuqmy")
public suspend fun privateIPAddress(`value`: Output) {
this.privateIPAddress = value
}
/**
* @param value Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4.
*/
@JvmName("hyxfcyvepbyokyho")
public suspend fun privateIPAddressVersion(`value`: Output>) {
this.privateIPAddressVersion = value
}
/**
* @param value The private IP address allocation method.
*/
@JvmName("erpjvyyrpppfhses")
public suspend fun privateIPAllocationMethod(`value`: Output>) {
this.privateIPAllocationMethod = value
}
/**
* @param value The reference to the subnet resource.
*/
@JvmName("xyarsvhydndknqte")
public suspend fun subnet(`value`: Output) {
this.subnet = value
}
/**
* @param value Resource ID.
*/
@JvmName("qsvoimsxmwfjjbfe")
public suspend fun id(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.id = mapped
}
/**
* @param value The name of private link service ip configuration.
*/
@JvmName("btnytbwljqiihuqi")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Whether the ip configuration is primary or not.
*/
@JvmName("bgnqfsryqwfugcjg")
public suspend fun primary(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.primary = mapped
}
/**
* @param value The private IP address of the IP configuration.
*/
@JvmName("pshgvohxicvllaiy")
public suspend fun privateIPAddress(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.privateIPAddress = mapped
}
/**
* @param value Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4.
*/
@JvmName("wycbgahuqsleosmy")
public suspend fun privateIPAddressVersion(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.privateIPAddressVersion = mapped
}
/**
* @param value Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4.
*/
@JvmName("opwlucfpfbmdyqkc")
public fun privateIPAddressVersion(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.privateIPAddressVersion = mapped
}
/**
* @param value Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4.
*/
@JvmName("qsewytgbbhwjumiv")
public fun privateIPAddressVersion(`value`: IPVersion) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.privateIPAddressVersion = mapped
}
/**
* @param value The private IP address allocation method.
*/
@JvmName("mdcwacjcjgpmxwjg")
public suspend fun privateIPAllocationMethod(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.privateIPAllocationMethod = mapped
}
/**
* @param value The private IP address allocation method.
*/
@JvmName("khvexadgunoojckt")
public fun privateIPAllocationMethod(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.privateIPAllocationMethod = mapped
}
/**
* @param value The private IP address allocation method.
*/
@JvmName("tbaaapfgybohbmlm")
public fun privateIPAllocationMethod(`value`: IPAllocationMethod) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.privateIPAllocationMethod = mapped
}
/**
* @param value The reference to the subnet resource.
*/
@JvmName("tjevjnbmdomidbho")
public suspend fun subnet(`value`: SubnetArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.subnet = mapped
}
/**
* @param argument The reference to the subnet resource.
*/
@JvmName("cegxrwisgkolimjo")
public suspend fun subnet(argument: suspend SubnetArgsBuilder.() -> Unit) {
val toBeMapped = SubnetArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.subnet = mapped
}
internal fun build(): PrivateLinkServiceIpConfigurationArgs =
PrivateLinkServiceIpConfigurationArgs(
id = id,
name = name,
primary = primary,
privateIPAddress = privateIPAddress,
privateIPAddressVersion = privateIPAddressVersion,
privateIPAllocationMethod = privateIPAllocationMethod,
subnet = subnet,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy