com.pulumi.azurenative.sql.kotlin.inputs.GetServerKeyPlainArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.sql.kotlin.inputs
import com.pulumi.azurenative.sql.inputs.GetServerKeyPlainArgs.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
/**
*
* @property keyName The name of the server key to be retrieved.
* @property resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @property serverName The name of the server.
*/
public data class GetServerKeyPlainArgs(
public val keyName: String,
public val resourceGroupName: String,
public val serverName: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.sql.inputs.GetServerKeyPlainArgs =
com.pulumi.azurenative.sql.inputs.GetServerKeyPlainArgs.builder()
.keyName(keyName.let({ args0 -> args0 }))
.resourceGroupName(resourceGroupName.let({ args0 -> args0 }))
.serverName(serverName.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetServerKeyPlainArgs].
*/
@PulumiTagMarker
public class GetServerKeyPlainArgsBuilder internal constructor() {
private var keyName: String? = null
private var resourceGroupName: String? = null
private var serverName: String? = null
/**
* @param value The name of the server key to be retrieved.
*/
@JvmName("wuysikustavaqjun")
public suspend fun keyName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.keyName = mapped
}
/**
* @param value The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
*/
@JvmName("ywhnirtbposmqnko")
public suspend fun resourceGroupName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.resourceGroupName = mapped
}
/**
* @param value The name of the server.
*/
@JvmName("ogdcoughdeaqyhtq")
public suspend fun serverName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.serverName = mapped
}
internal fun build(): GetServerKeyPlainArgs = GetServerKeyPlainArgs(
keyName = keyName ?: throw PulumiNullFieldException("keyName"),
resourceGroupName = resourceGroupName ?: throw PulumiNullFieldException("resourceGroupName"),
serverName = serverName ?: throw PulumiNullFieldException("serverName"),
)
}