
com.pulumi.azurenative.azurearcdata.kotlin.inputs.SqlManagedInstanceK8sSpecArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.azurearcdata.kotlin.inputs
import com.pulumi.azurenative.azurearcdata.inputs.SqlManagedInstanceK8sSpecArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* The kubernetes spec information.
* @property replicas This option specifies the number of SQL Managed Instance replicas that will be deployed in your Kubernetes cluster for high availability purposes. If sku.tier is BusinessCritical, allowed values are '2' or '3' with default of '3'. If sku.tier is GeneralPurpose, replicas must be '1'.
* @property scheduling The kubernetes scheduling information.
* @property security The kubernetes security information.
* @property settings The kubernetes settings information.
*/
public data class SqlManagedInstanceK8sSpecArgs(
public val replicas: Output? = null,
public val scheduling: Output? = null,
public val security: Output? = null,
public val settings: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.azurearcdata.inputs.SqlManagedInstanceK8sSpecArgs =
com.pulumi.azurenative.azurearcdata.inputs.SqlManagedInstanceK8sSpecArgs.builder()
.replicas(replicas?.applyValue({ args0 -> args0 }))
.scheduling(scheduling?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.security(security?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.settings(settings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [SqlManagedInstanceK8sSpecArgs].
*/
@PulumiTagMarker
public class SqlManagedInstanceK8sSpecArgsBuilder internal constructor() {
private var replicas: Output? = null
private var scheduling: Output? = null
private var security: Output? = null
private var settings: Output? = null
/**
* @param value This option specifies the number of SQL Managed Instance replicas that will be deployed in your Kubernetes cluster for high availability purposes. If sku.tier is BusinessCritical, allowed values are '2' or '3' with default of '3'. If sku.tier is GeneralPurpose, replicas must be '1'.
*/
@JvmName("faporqanyhutbaqq")
public suspend fun replicas(`value`: Output) {
this.replicas = value
}
/**
* @param value The kubernetes scheduling information.
*/
@JvmName("kjfolwvrlbxlludy")
public suspend fun scheduling(`value`: Output) {
this.scheduling = value
}
/**
* @param value The kubernetes security information.
*/
@JvmName("acqiatqjeadxmtmk")
public suspend fun security(`value`: Output) {
this.security = value
}
/**
* @param value The kubernetes settings information.
*/
@JvmName("txwlmofytaumande")
public suspend fun settings(`value`: Output) {
this.settings = value
}
/**
* @param value This option specifies the number of SQL Managed Instance replicas that will be deployed in your Kubernetes cluster for high availability purposes. If sku.tier is BusinessCritical, allowed values are '2' or '3' with default of '3'. If sku.tier is GeneralPurpose, replicas must be '1'.
*/
@JvmName("grnwnyovpuxgchjf")
public suspend fun replicas(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.replicas = mapped
}
/**
* @param value The kubernetes scheduling information.
*/
@JvmName("xkrlnpndrnplnwwe")
public suspend fun scheduling(`value`: K8sSchedulingArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.scheduling = mapped
}
/**
* @param argument The kubernetes scheduling information.
*/
@JvmName("ymocljywyeuakxmt")
public suspend fun scheduling(argument: suspend K8sSchedulingArgsBuilder.() -> Unit) {
val toBeMapped = K8sSchedulingArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.scheduling = mapped
}
/**
* @param value The kubernetes security information.
*/
@JvmName("atbjpyyvqslqowrr")
public suspend fun security(`value`: K8sSecurityArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.security = mapped
}
/**
* @param argument The kubernetes security information.
*/
@JvmName("qeodjfpwjflkmvfg")
public suspend fun security(argument: suspend K8sSecurityArgsBuilder.() -> Unit) {
val toBeMapped = K8sSecurityArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.security = mapped
}
/**
* @param value The kubernetes settings information.
*/
@JvmName("bsieyoililrwaviq")
public suspend fun settings(`value`: K8sSettingsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.settings = mapped
}
/**
* @param argument The kubernetes settings information.
*/
@JvmName("dmceaklvvmnvuekp")
public suspend fun settings(argument: suspend K8sSettingsArgsBuilder.() -> Unit) {
val toBeMapped = K8sSettingsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.settings = mapped
}
internal fun build(): SqlManagedInstanceK8sSpecArgs = SqlManagedInstanceK8sSpecArgs(
replicas = replicas,
scheduling = scheduling,
security = security,
settings = settings,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy