com.pulumi.azure.netapp.kotlin.inputs.GetVolumeQuotaRulePlainArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.netapp.kotlin.inputs
import com.pulumi.azure.netapp.inputs.GetVolumeQuotaRulePlainArgs.builder
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
/**
* A collection of arguments for invoking getVolumeQuotaRule.
* @property name The name of this Volume Quota Rule.
* @property volumeId The NetApp volume ID where the Volume Quota Rule is assigned to.
*/
public data class GetVolumeQuotaRulePlainArgs(
public val name: String,
public val volumeId: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.netapp.inputs.GetVolumeQuotaRulePlainArgs =
com.pulumi.azure.netapp.inputs.GetVolumeQuotaRulePlainArgs.builder()
.name(name.let({ args0 -> args0 }))
.volumeId(volumeId.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetVolumeQuotaRulePlainArgs].
*/
@PulumiTagMarker
public class GetVolumeQuotaRulePlainArgsBuilder internal constructor() {
private var name: String? = null
private var volumeId: String? = null
/**
* @param value The name of this Volume Quota Rule.
*/
@JvmName("xqagdtuoysviftop")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.name = mapped
}
/**
* @param value The NetApp volume ID where the Volume Quota Rule is assigned to.
*/
@JvmName("owmxpmpecnikcbfr")
public suspend fun volumeId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.volumeId = mapped
}
internal fun build(): GetVolumeQuotaRulePlainArgs = GetVolumeQuotaRulePlainArgs(
name = name ?: throw PulumiNullFieldException("name"),
volumeId = volumeId ?: throw PulumiNullFieldException("volumeId"),
)
}