com.pulumi.azure.compute.kotlin.inputs.BastionHostIpConfigurationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.compute.kotlin.inputs
import com.pulumi.azure.compute.inputs.BastionHostIpConfigurationArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property name The name of the IP configuration. Changing this forces a new resource to be created.
* @property publicIpAddressId Reference to a Public IP Address to associate with this Bastion Host. Changing this forces a new resource to be created.
* @property subnetId Reference to a subnet in which this Bastion Host has been created. Changing this forces a new resource to be created.
* > **Note:** The Subnet used for the Bastion Host must have the name `AzureBastionSubnet` and the subnet mask must be at least a `/26`.
*/
public data class BastionHostIpConfigurationArgs(
public val name: Output,
public val publicIpAddressId: Output,
public val subnetId: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.compute.inputs.BastionHostIpConfigurationArgs =
com.pulumi.azure.compute.inputs.BastionHostIpConfigurationArgs.builder()
.name(name.applyValue({ args0 -> args0 }))
.publicIpAddressId(publicIpAddressId.applyValue({ args0 -> args0 }))
.subnetId(subnetId.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BastionHostIpConfigurationArgs].
*/
@PulumiTagMarker
public class BastionHostIpConfigurationArgsBuilder internal constructor() {
private var name: Output? = null
private var publicIpAddressId: Output? = null
private var subnetId: Output? = null
/**
* @param value The name of the IP configuration. Changing this forces a new resource to be created.
*/
@JvmName("vdmtnfledbhrtsbs")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Reference to a Public IP Address to associate with this Bastion Host. Changing this forces a new resource to be created.
*/
@JvmName("tcbbutqrwihykdtp")
public suspend fun publicIpAddressId(`value`: Output) {
this.publicIpAddressId = value
}
/**
* @param value Reference to a subnet in which this Bastion Host has been created. Changing this forces a new resource to be created.
* > **Note:** The Subnet used for the Bastion Host must have the name `AzureBastionSubnet` and the subnet mask must be at least a `/26`.
*/
@JvmName("iinniwfqyrkpcejs")
public suspend fun subnetId(`value`: Output) {
this.subnetId = value
}
/**
* @param value The name of the IP configuration. Changing this forces a new resource to be created.
*/
@JvmName("gcpkcdqwrolhguya")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Reference to a Public IP Address to associate with this Bastion Host. Changing this forces a new resource to be created.
*/
@JvmName("ljraspmfjwcuuiyk")
public suspend fun publicIpAddressId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.publicIpAddressId = mapped
}
/**
* @param value Reference to a subnet in which this Bastion Host has been created. Changing this forces a new resource to be created.
* > **Note:** The Subnet used for the Bastion Host must have the name `AzureBastionSubnet` and the subnet mask must be at least a `/26`.
*/
@JvmName("jautgfoeaxiaheuk")
public suspend fun subnetId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.subnetId = mapped
}
internal fun build(): BastionHostIpConfigurationArgs = BastionHostIpConfigurationArgs(
name = name ?: throw PulumiNullFieldException("name"),
publicIpAddressId = publicIpAddressId ?: throw PulumiNullFieldException("publicIpAddressId"),
subnetId = subnetId ?: throw PulumiNullFieldException("subnetId"),
)
}