![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.elasticsan.kotlin.inputs.VolumeGroupNetworkRuleArgs.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.elasticsan.kotlin.inputs
import com.pulumi.azure.elasticsan.inputs.VolumeGroupNetworkRuleArgs.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 action The action to take when the Subnet attempts to access this Elastic SAN Volume Group. The only possible value is `Allow`. Defaults to `Allow`.
* @property subnetId The ID of the Subnet which should be allowed to access this Elastic SAN Volume Group.
*/
public data class VolumeGroupNetworkRuleArgs(
public val action: Output? = null,
public val subnetId: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.elasticsan.inputs.VolumeGroupNetworkRuleArgs =
com.pulumi.azure.elasticsan.inputs.VolumeGroupNetworkRuleArgs.builder()
.action(action?.applyValue({ args0 -> args0 }))
.subnetId(subnetId.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [VolumeGroupNetworkRuleArgs].
*/
@PulumiTagMarker
public class VolumeGroupNetworkRuleArgsBuilder internal constructor() {
private var action: Output? = null
private var subnetId: Output? = null
/**
* @param value The action to take when the Subnet attempts to access this Elastic SAN Volume Group. The only possible value is `Allow`. Defaults to `Allow`.
*/
@JvmName("jximhjaqysgbpwml")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value The ID of the Subnet which should be allowed to access this Elastic SAN Volume Group.
*/
@JvmName("iaihhvbgesctkcsc")
public suspend fun subnetId(`value`: Output) {
this.subnetId = value
}
/**
* @param value The action to take when the Subnet attempts to access this Elastic SAN Volume Group. The only possible value is `Allow`. Defaults to `Allow`.
*/
@JvmName("ydfywfqshtooatpv")
public suspend fun action(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param value The ID of the Subnet which should be allowed to access this Elastic SAN Volume Group.
*/
@JvmName("rmualelgdrmquihm")
public suspend fun subnetId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.subnetId = mapped
}
internal fun build(): VolumeGroupNetworkRuleArgs = VolumeGroupNetworkRuleArgs(
action = action,
subnetId = subnetId ?: throw PulumiNullFieldException("subnetId"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy