com.pulumi.azure.netapp.kotlin.inputs.GetAccountPlainArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.netapp.kotlin.inputs
import com.pulumi.azure.netapp.inputs.GetAccountPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getAccount.
* @property identity
* @property name The name of the NetApp Account.
* @property resourceGroupName The Name of the Resource Group where the NetApp Account exists.
*/
public data class GetAccountPlainArgs(
public val identity: GetAccountIdentity? = null,
public val name: String,
public val resourceGroupName: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.netapp.inputs.GetAccountPlainArgs =
com.pulumi.azure.netapp.inputs.GetAccountPlainArgs.builder()
.identity(identity?.let({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.name(name.let({ args0 -> args0 }))
.resourceGroupName(resourceGroupName.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetAccountPlainArgs].
*/
@PulumiTagMarker
public class GetAccountPlainArgsBuilder internal constructor() {
private var identity: GetAccountIdentity? = null
private var name: String? = null
private var resourceGroupName: String? = null
/**
* @param value
*/
@JvmName("ygcvgbsppmtnegna")
public suspend fun identity(`value`: GetAccountIdentity?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.identity = mapped
}
/**
* @param argument
*/
@JvmName("uaxgjmmpwyotpkwl")
public suspend fun identity(argument: suspend GetAccountIdentityBuilder.() -> Unit) {
val toBeMapped = GetAccountIdentityBuilder().applySuspend { argument() }.build()
val mapped = toBeMapped
this.identity = mapped
}
/**
* @param value The name of the NetApp Account.
*/
@JvmName("lsyfhvqwxcfajxst")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.name = mapped
}
/**
* @param value The Name of the Resource Group where the NetApp Account exists.
*/
@JvmName("qguxkkameshhrnwe")
public suspend fun resourceGroupName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.resourceGroupName = mapped
}
internal fun build(): GetAccountPlainArgs = GetAccountPlainArgs(
identity = identity,
name = name ?: throw PulumiNullFieldException("name"),
resourceGroupName = resourceGroupName ?: throw PulumiNullFieldException("resourceGroupName"),
)
}