All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.mssql.kotlin.inputs.ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.mssql.kotlin.inputs

import com.pulumi.azure.mssql.inputs.ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property graceMinutes Applies only if `mode` is `Automatic`. The grace period in minutes before failover with data loss is attempted.
 * @property mode The failover mode. Possible values are `Automatic` or `Manual`.
 */
public data class ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs(
    public val graceMinutes: Output? = null,
    public val mode: Output,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.mssql.inputs.ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs =
        com.pulumi.azure.mssql.inputs.ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs.builder()
            .graceMinutes(graceMinutes?.applyValue({ args0 -> args0 }))
            .mode(mode.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs].
 */
@PulumiTagMarker
public class ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgsBuilder internal
constructor() {
    private var graceMinutes: Output? = null

    private var mode: Output? = null

    /**
     * @param value Applies only if `mode` is `Automatic`. The grace period in minutes before failover with data loss is attempted.
     */
    @JvmName("fywnexagybsojyln")
    public suspend fun graceMinutes(`value`: Output) {
        this.graceMinutes = value
    }

    /**
     * @param value The failover mode. Possible values are `Automatic` or `Manual`.
     */
    @JvmName("rxajhbwcbpuvoqfi")
    public suspend fun mode(`value`: Output) {
        this.mode = value
    }

    /**
     * @param value Applies only if `mode` is `Automatic`. The grace period in minutes before failover with data loss is attempted.
     */
    @JvmName("nevaktqkkbhrjysx")
    public suspend fun graceMinutes(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.graceMinutes = mapped
    }

    /**
     * @param value The failover mode. Possible values are `Automatic` or `Manual`.
     */
    @JvmName("aeckjpwycrhnvspa")
    public suspend fun mode(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    internal fun build(): ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs =
        ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs(
            graceMinutes = graceMinutes,
            mode = mode ?: throw PulumiNullFieldException("mode"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy