![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.sql.kotlin.inputs.JobTargetArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.sql.kotlin.inputs
import com.pulumi.azurenative.sql.inputs.JobTargetArgs.builder
import com.pulumi.azurenative.sql.kotlin.enums.JobTargetGroupMembershipType
import com.pulumi.azurenative.sql.kotlin.enums.JobTargetType
import com.pulumi.core.Either
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
/**
* A job target, for example a specific database or a container of databases that is evaluated during job execution.
* @property databaseName The target database name.
* @property elasticPoolName The target elastic pool name.
* @property membershipType Whether the target is included or excluded from the group.
* @property refreshCredential The resource ID of the credential that is used during job execution to connect to the target and determine the list of databases inside the target.
* @property serverName The target server name.
* @property shardMapName The target shard map.
* @property type The target type.
*/
public data class JobTargetArgs(
public val databaseName: Output? = null,
public val elasticPoolName: Output? = null,
public val membershipType: Output? = null,
public val refreshCredential: Output? = null,
public val serverName: Output? = null,
public val shardMapName: Output? = null,
public val type: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.sql.inputs.JobTargetArgs =
com.pulumi.azurenative.sql.inputs.JobTargetArgs.builder()
.databaseName(databaseName?.applyValue({ args0 -> args0 }))
.elasticPoolName(elasticPoolName?.applyValue({ args0 -> args0 }))
.membershipType(membershipType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.refreshCredential(refreshCredential?.applyValue({ args0 -> args0 }))
.serverName(serverName?.applyValue({ args0 -> args0 }))
.shardMapName(shardMapName?.applyValue({ args0 -> args0 }))
.type(
type.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [JobTargetArgs].
*/
@PulumiTagMarker
public class JobTargetArgsBuilder internal constructor() {
private var databaseName: Output? = null
private var elasticPoolName: Output? = null
private var membershipType: Output? = null
private var refreshCredential: Output? = null
private var serverName: Output? = null
private var shardMapName: Output? = null
private var type: Output>? = null
/**
* @param value The target database name.
*/
@JvmName("txistmxlbyeseopq")
public suspend fun databaseName(`value`: Output) {
this.databaseName = value
}
/**
* @param value The target elastic pool name.
*/
@JvmName("gopvrdlemuecjpdn")
public suspend fun elasticPoolName(`value`: Output) {
this.elasticPoolName = value
}
/**
* @param value Whether the target is included or excluded from the group.
*/
@JvmName("kfcvonnprsusscen")
public suspend fun membershipType(`value`: Output) {
this.membershipType = value
}
/**
* @param value The resource ID of the credential that is used during job execution to connect to the target and determine the list of databases inside the target.
*/
@JvmName("qeviplfyevsdbrmh")
public suspend fun refreshCredential(`value`: Output) {
this.refreshCredential = value
}
/**
* @param value The target server name.
*/
@JvmName("cdynmucknqekujtl")
public suspend fun serverName(`value`: Output) {
this.serverName = value
}
/**
* @param value The target shard map.
*/
@JvmName("bubktyapbeyvnmho")
public suspend fun shardMapName(`value`: Output) {
this.shardMapName = value
}
/**
* @param value The target type.
*/
@JvmName("xveqwgbqjavjavws")
public suspend fun type(`value`: Output>) {
this.type = value
}
/**
* @param value The target database name.
*/
@JvmName("jfjhdvnnakstsikv")
public suspend fun databaseName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.databaseName = mapped
}
/**
* @param value The target elastic pool name.
*/
@JvmName("tvtwxvfufvoyyfle")
public suspend fun elasticPoolName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.elasticPoolName = mapped
}
/**
* @param value Whether the target is included or excluded from the group.
*/
@JvmName("likeseerkduuqyom")
public suspend fun membershipType(`value`: JobTargetGroupMembershipType?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.membershipType = mapped
}
/**
* @param value The resource ID of the credential that is used during job execution to connect to the target and determine the list of databases inside the target.
*/
@JvmName("rgnstbytxxnfecsu")
public suspend fun refreshCredential(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.refreshCredential = mapped
}
/**
* @param value The target server name.
*/
@JvmName("peveuneatqdaqfiy")
public suspend fun serverName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serverName = mapped
}
/**
* @param value The target shard map.
*/
@JvmName("psxbppwlikmynodh")
public suspend fun shardMapName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.shardMapName = mapped
}
/**
* @param value The target type.
*/
@JvmName("xwhoekwstuivxrbr")
public suspend fun type(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value The target type.
*/
@JvmName("rjshvogqspwftjev")
public fun type(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value The target type.
*/
@JvmName("nbwcsfbpphvxbmsn")
public fun type(`value`: JobTargetType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): JobTargetArgs = JobTargetArgs(
databaseName = databaseName,
elasticPoolName = elasticPoolName,
membershipType = membershipType,
refreshCredential = refreshCredential,
serverName = serverName,
shardMapName = shardMapName,
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy