com.pulumi.azure.cosmosdb.kotlin.inputs.AccountVirtualNetworkRuleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.cosmosdb.kotlin.inputs
import com.pulumi.azure.cosmosdb.inputs.AccountVirtualNetworkRuleArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property id The ID of the virtual network subnet.
* @property ignoreMissingVnetServiceEndpoint If set to true, the specified subnet will be added as a virtual network rule even if its CosmosDB service endpoint is not active. Defaults to `false`.
*/
public data class AccountVirtualNetworkRuleArgs(
public val id: Output,
public val ignoreMissingVnetServiceEndpoint: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.cosmosdb.inputs.AccountVirtualNetworkRuleArgs =
com.pulumi.azure.cosmosdb.inputs.AccountVirtualNetworkRuleArgs.builder()
.id(id.applyValue({ args0 -> args0 }))
.ignoreMissingVnetServiceEndpoint(
ignoreMissingVnetServiceEndpoint?.applyValue({ args0 ->
args0
}),
).build()
}
/**
* Builder for [AccountVirtualNetworkRuleArgs].
*/
@PulumiTagMarker
public class AccountVirtualNetworkRuleArgsBuilder internal constructor() {
private var id: Output? = null
private var ignoreMissingVnetServiceEndpoint: Output? = null
/**
* @param value The ID of the virtual network subnet.
*/
@JvmName("xbtmblqiuejfwplg")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value If set to true, the specified subnet will be added as a virtual network rule even if its CosmosDB service endpoint is not active. Defaults to `false`.
*/
@JvmName("hgfjswcjtenkiiqv")
public suspend fun ignoreMissingVnetServiceEndpoint(`value`: Output) {
this.ignoreMissingVnetServiceEndpoint = value
}
/**
* @param value The ID of the virtual network subnet.
*/
@JvmName("lrctmhtyxifkvmjt")
public suspend fun id(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.id = mapped
}
/**
* @param value If set to true, the specified subnet will be added as a virtual network rule even if its CosmosDB service endpoint is not active. Defaults to `false`.
*/
@JvmName("vljraqkdsoapsqpn")
public suspend fun ignoreMissingVnetServiceEndpoint(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ignoreMissingVnetServiceEndpoint = mapped
}
internal fun build(): AccountVirtualNetworkRuleArgs = AccountVirtualNetworkRuleArgs(
id = id ?: throw PulumiNullFieldException("id"),
ignoreMissingVnetServiceEndpoint = ignoreMissingVnetServiceEndpoint,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy