
com.pulumi.azurenative.security.kotlin.inputs.OnPremiseSqlResourceDetailsArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.security.kotlin.inputs
import com.pulumi.azurenative.security.inputs.OnPremiseSqlResourceDetailsArgs.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
/**
* Details of the On Premise Sql resource that was assessed
* @property databaseName The Sql database name installed on the machine
* @property machineName The name of the machine
* @property serverName The Sql server name installed on the machine
* @property source The platform where the assessed resource resides
* Expected value is 'OnPremiseSql'.
* @property sourceComputerId The oms agent Id installed on the machine
* @property vmuuid The unique Id of the machine
* @property workspaceId Azure resource Id of the workspace the machine is attached to
*/
public data class OnPremiseSqlResourceDetailsArgs(
public val databaseName: Output,
public val machineName: Output,
public val serverName: Output,
public val source: Output,
public val sourceComputerId: Output,
public val vmuuid: Output,
public val workspaceId: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.security.inputs.OnPremiseSqlResourceDetailsArgs =
com.pulumi.azurenative.security.inputs.OnPremiseSqlResourceDetailsArgs.builder()
.databaseName(databaseName.applyValue({ args0 -> args0 }))
.machineName(machineName.applyValue({ args0 -> args0 }))
.serverName(serverName.applyValue({ args0 -> args0 }))
.source(source.applyValue({ args0 -> args0 }))
.sourceComputerId(sourceComputerId.applyValue({ args0 -> args0 }))
.vmuuid(vmuuid.applyValue({ args0 -> args0 }))
.workspaceId(workspaceId.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [OnPremiseSqlResourceDetailsArgs].
*/
@PulumiTagMarker
public class OnPremiseSqlResourceDetailsArgsBuilder internal constructor() {
private var databaseName: Output? = null
private var machineName: Output? = null
private var serverName: Output? = null
private var source: Output? = null
private var sourceComputerId: Output? = null
private var vmuuid: Output? = null
private var workspaceId: Output? = null
/**
* @param value The Sql database name installed on the machine
*/
@JvmName("jmlcwnrvjmxqibwn")
public suspend fun databaseName(`value`: Output) {
this.databaseName = value
}
/**
* @param value The name of the machine
*/
@JvmName("gywuuheoxjhsuhhb")
public suspend fun machineName(`value`: Output) {
this.machineName = value
}
/**
* @param value The Sql server name installed on the machine
*/
@JvmName("imjanegxauufmxcl")
public suspend fun serverName(`value`: Output) {
this.serverName = value
}
/**
* @param value The platform where the assessed resource resides
* Expected value is 'OnPremiseSql'.
*/
@JvmName("kpjjuidxkdhewumm")
public suspend fun source(`value`: Output) {
this.source = value
}
/**
* @param value The oms agent Id installed on the machine
*/
@JvmName("ucgpxaaavcwmhrdq")
public suspend fun sourceComputerId(`value`: Output) {
this.sourceComputerId = value
}
/**
* @param value The unique Id of the machine
*/
@JvmName("xeoauphvnxhpmcpf")
public suspend fun vmuuid(`value`: Output) {
this.vmuuid = value
}
/**
* @param value Azure resource Id of the workspace the machine is attached to
*/
@JvmName("garvuwllagvmyreg")
public suspend fun workspaceId(`value`: Output) {
this.workspaceId = value
}
/**
* @param value The Sql database name installed on the machine
*/
@JvmName("cxhykoqwtibosiod")
public suspend fun databaseName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.databaseName = mapped
}
/**
* @param value The name of the machine
*/
@JvmName("upesfvssptlskamo")
public suspend fun machineName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.machineName = mapped
}
/**
* @param value The Sql server name installed on the machine
*/
@JvmName("jufccqvijfclwidd")
public suspend fun serverName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.serverName = mapped
}
/**
* @param value The platform where the assessed resource resides
* Expected value is 'OnPremiseSql'.
*/
@JvmName("igrpulnlekrbiogg")
public suspend fun source(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.source = mapped
}
/**
* @param value The oms agent Id installed on the machine
*/
@JvmName("ujwgtaopnxhabgoe")
public suspend fun sourceComputerId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.sourceComputerId = mapped
}
/**
* @param value The unique Id of the machine
*/
@JvmName("eonqevhkhmusjohu")
public suspend fun vmuuid(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.vmuuid = mapped
}
/**
* @param value Azure resource Id of the workspace the machine is attached to
*/
@JvmName("lgiubslyrlnflqpg")
public suspend fun workspaceId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.workspaceId = mapped
}
internal fun build(): OnPremiseSqlResourceDetailsArgs = OnPremiseSqlResourceDetailsArgs(
databaseName = databaseName ?: throw PulumiNullFieldException("databaseName"),
machineName = machineName ?: throw PulumiNullFieldException("machineName"),
serverName = serverName ?: throw PulumiNullFieldException("serverName"),
source = source ?: throw PulumiNullFieldException("source"),
sourceComputerId = sourceComputerId ?: throw PulumiNullFieldException("sourceComputerId"),
vmuuid = vmuuid ?: throw PulumiNullFieldException("vmuuid"),
workspaceId = workspaceId ?: throw PulumiNullFieldException("workspaceId"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy