
com.pulumi.azure.netapp.kotlin.inputs.VolumeGroupSapHanaVolumeExportPolicyRuleArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.netapp.kotlin.inputs
import com.pulumi.azure.netapp.inputs.VolumeGroupSapHanaVolumeExportPolicyRuleArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property allowedClients A comma-sperated list of allowed client IPv4 addresses.
* @property nfsv3Enabled Enables NFSv3. Please note that this cannot be enabled if volume has NFSv4.1 as its protocol.
* @property nfsv41Enabled Enables NFSv4.1. Please note that this cannot be enabled if volume has NFSv3 as its protocol.
* @property rootAccessEnabled Is root access permitted to this volume? Defaults to `true`.
* @property ruleIndex The index number of the rule, must start at 1 and maximum 5.
* @property unixReadOnly Is the file system on unix read only? Defaults to `false.
* @property unixReadWrite Is the file system on unix read and write? Defaults to `true`.
*/
public data class VolumeGroupSapHanaVolumeExportPolicyRuleArgs(
public val allowedClients: Output,
public val nfsv3Enabled: Output,
public val nfsv41Enabled: Output,
public val rootAccessEnabled: Output? = null,
public val ruleIndex: Output,
public val unixReadOnly: Output? = null,
public val unixReadWrite: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.netapp.inputs.VolumeGroupSapHanaVolumeExportPolicyRuleArgs =
com.pulumi.azure.netapp.inputs.VolumeGroupSapHanaVolumeExportPolicyRuleArgs.builder()
.allowedClients(allowedClients.applyValue({ args0 -> args0 }))
.nfsv3Enabled(nfsv3Enabled.applyValue({ args0 -> args0 }))
.nfsv41Enabled(nfsv41Enabled.applyValue({ args0 -> args0 }))
.rootAccessEnabled(rootAccessEnabled?.applyValue({ args0 -> args0 }))
.ruleIndex(ruleIndex.applyValue({ args0 -> args0 }))
.unixReadOnly(unixReadOnly?.applyValue({ args0 -> args0 }))
.unixReadWrite(unixReadWrite?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [VolumeGroupSapHanaVolumeExportPolicyRuleArgs].
*/
@PulumiTagMarker
public class VolumeGroupSapHanaVolumeExportPolicyRuleArgsBuilder internal constructor() {
private var allowedClients: Output? = null
private var nfsv3Enabled: Output? = null
private var nfsv41Enabled: Output? = null
private var rootAccessEnabled: Output? = null
private var ruleIndex: Output? = null
private var unixReadOnly: Output? = null
private var unixReadWrite: Output? = null
/**
* @param value A comma-sperated list of allowed client IPv4 addresses.
*/
@JvmName("lyghouvmijqmmons")
public suspend fun allowedClients(`value`: Output) {
this.allowedClients = value
}
/**
* @param value Enables NFSv3. Please note that this cannot be enabled if volume has NFSv4.1 as its protocol.
*/
@JvmName("rwsmvioafarhboms")
public suspend fun nfsv3Enabled(`value`: Output) {
this.nfsv3Enabled = value
}
/**
* @param value Enables NFSv4.1. Please note that this cannot be enabled if volume has NFSv3 as its protocol.
*/
@JvmName("vgehrfewrmcjyxxc")
public suspend fun nfsv41Enabled(`value`: Output) {
this.nfsv41Enabled = value
}
/**
* @param value Is root access permitted to this volume? Defaults to `true`.
*/
@JvmName("lnatyngycvdtlvsy")
public suspend fun rootAccessEnabled(`value`: Output) {
this.rootAccessEnabled = value
}
/**
* @param value The index number of the rule, must start at 1 and maximum 5.
*/
@JvmName("kcfwhtdiwlinphmw")
public suspend fun ruleIndex(`value`: Output) {
this.ruleIndex = value
}
/**
* @param value Is the file system on unix read only? Defaults to `false.
*/
@JvmName("kiyhggnlcmugkdil")
public suspend fun unixReadOnly(`value`: Output) {
this.unixReadOnly = value
}
/**
* @param value Is the file system on unix read and write? Defaults to `true`.
*/
@JvmName("paxnxpnvlerwakax")
public suspend fun unixReadWrite(`value`: Output) {
this.unixReadWrite = value
}
/**
* @param value A comma-sperated list of allowed client IPv4 addresses.
*/
@JvmName("dolsavrnytftmnju")
public suspend fun allowedClients(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.allowedClients = mapped
}
/**
* @param value Enables NFSv3. Please note that this cannot be enabled if volume has NFSv4.1 as its protocol.
*/
@JvmName("ojpavgaumcwgfsdc")
public suspend fun nfsv3Enabled(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.nfsv3Enabled = mapped
}
/**
* @param value Enables NFSv4.1. Please note that this cannot be enabled if volume has NFSv3 as its protocol.
*/
@JvmName("rglspbnpydjvevuc")
public suspend fun nfsv41Enabled(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.nfsv41Enabled = mapped
}
/**
* @param value Is root access permitted to this volume? Defaults to `true`.
*/
@JvmName("ymkmnlwqmjyegktp")
public suspend fun rootAccessEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.rootAccessEnabled = mapped
}
/**
* @param value The index number of the rule, must start at 1 and maximum 5.
*/
@JvmName("ckiltbyulupnequr")
public suspend fun ruleIndex(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.ruleIndex = mapped
}
/**
* @param value Is the file system on unix read only? Defaults to `false.
*/
@JvmName("gtnfydcynqgmsavx")
public suspend fun unixReadOnly(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.unixReadOnly = mapped
}
/**
* @param value Is the file system on unix read and write? Defaults to `true`.
*/
@JvmName("iniidrpdnuqiriis")
public suspend fun unixReadWrite(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.unixReadWrite = mapped
}
internal fun build(): VolumeGroupSapHanaVolumeExportPolicyRuleArgs =
VolumeGroupSapHanaVolumeExportPolicyRuleArgs(
allowedClients = allowedClients ?: throw PulumiNullFieldException("allowedClients"),
nfsv3Enabled = nfsv3Enabled ?: throw PulumiNullFieldException("nfsv3Enabled"),
nfsv41Enabled = nfsv41Enabled ?: throw PulumiNullFieldException("nfsv41Enabled"),
rootAccessEnabled = rootAccessEnabled,
ruleIndex = ruleIndex ?: throw PulumiNullFieldException("ruleIndex"),
unixReadOnly = unixReadOnly,
unixReadWrite = unixReadWrite,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy