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

com.pulumi.azure.siterecovery.kotlin.inputs.ReplicationRecoveryPlanShutdownRecoveryGroupPreActionArgs.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.siterecovery.kotlin.inputs

import com.pulumi.azure.siterecovery.inputs.ReplicationRecoveryPlanShutdownRecoveryGroupPreActionArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property fabricLocation
 * @property failOverDirections
 * @property failOverTypes
 * @property manualActionInstruction
 * @property name The name of the Replication Plan. The name can contain only letters, numbers, and hyphens. It should start with a letter and end with a letter or a number. Can be a maximum of 63 characters. Changing this forces a new resource to be created.
 * @property runbookId
 * @property scriptPath
 * @property type
 */
public data class ReplicationRecoveryPlanShutdownRecoveryGroupPreActionArgs(
    public val fabricLocation: Output? = null,
    public val failOverDirections: Output>,
    public val failOverTypes: Output>,
    public val manualActionInstruction: Output? = null,
    public val name: Output,
    public val runbookId: Output? = null,
    public val scriptPath: Output? = null,
    public val type: Output,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.siterecovery.inputs.ReplicationRecoveryPlanShutdownRecoveryGroupPreActionArgs =
        com.pulumi.azure.siterecovery.inputs.ReplicationRecoveryPlanShutdownRecoveryGroupPreActionArgs.builder()
            .fabricLocation(fabricLocation?.applyValue({ args0 -> args0 }))
            .failOverDirections(failOverDirections.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .failOverTypes(failOverTypes.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .manualActionInstruction(manualActionInstruction?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .runbookId(runbookId?.applyValue({ args0 -> args0 }))
            .scriptPath(scriptPath?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ReplicationRecoveryPlanShutdownRecoveryGroupPreActionArgs].
 */
@PulumiTagMarker
public class ReplicationRecoveryPlanShutdownRecoveryGroupPreActionArgsBuilder internal constructor() {
    private var fabricLocation: Output? = null

    private var failOverDirections: Output>? = null

    private var failOverTypes: Output>? = null

    private var manualActionInstruction: Output? = null

    private var name: Output? = null

    private var runbookId: Output? = null

    private var scriptPath: Output? = null

    private var type: Output? = null

    /**
     * @param value
     */
    @JvmName("dlpskldprmjvfhqh")
    public suspend fun fabricLocation(`value`: Output) {
        this.fabricLocation = value
    }

    /**
     * @param value
     */
    @JvmName("tqxfsohgvsncgtqo")
    public suspend fun failOverDirections(`value`: Output>) {
        this.failOverDirections = value
    }

    @JvmName("bgwboamaxecqrwlf")
    public suspend fun failOverDirections(vararg values: Output) {
        this.failOverDirections = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("clunxrnsdwnceeuo")
    public suspend fun failOverDirections(values: List>) {
        this.failOverDirections = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("wfrlunfqrmdxraca")
    public suspend fun failOverTypes(`value`: Output>) {
        this.failOverTypes = value
    }

    @JvmName("ignujycbnveqvgdt")
    public suspend fun failOverTypes(vararg values: Output) {
        this.failOverTypes = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("eqerxdgxbmujluay")
    public suspend fun failOverTypes(values: List>) {
        this.failOverTypes = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("eoovptxamymupgdl")
    public suspend fun manualActionInstruction(`value`: Output) {
        this.manualActionInstruction = value
    }

    /**
     * @param value The name of the Replication Plan. The name can contain only letters, numbers, and hyphens. It should start with a letter and end with a letter or a number. Can be a maximum of 63 characters. Changing this forces a new resource to be created.
     */
    @JvmName("wficcrfajpvogyxk")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value
     */
    @JvmName("pcivqtyghitaahmv")
    public suspend fun runbookId(`value`: Output) {
        this.runbookId = value
    }

    /**
     * @param value
     */
    @JvmName("bprdoksmwqnasyey")
    public suspend fun scriptPath(`value`: Output) {
        this.scriptPath = value
    }

    /**
     * @param value
     */
    @JvmName("jetneefwutqdlncj")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value
     */
    @JvmName("ykcstgxmrfvwbawe")
    public suspend fun fabricLocation(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fabricLocation = mapped
    }

    /**
     * @param value
     */
    @JvmName("nccsajmesgusktbj")
    public suspend fun failOverDirections(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.failOverDirections = mapped
    }

    /**
     * @param values
     */
    @JvmName("gebmmislfitakbau")
    public suspend fun failOverDirections(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.failOverDirections = mapped
    }

    /**
     * @param value
     */
    @JvmName("meysxkcokmdprfox")
    public suspend fun failOverTypes(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.failOverTypes = mapped
    }

    /**
     * @param values
     */
    @JvmName("qjtlnxpleqivxdeu")
    public suspend fun failOverTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.failOverTypes = mapped
    }

    /**
     * @param value
     */
    @JvmName("ofbolylcuahllekk")
    public suspend fun manualActionInstruction(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.manualActionInstruction = mapped
    }

    /**
     * @param value The name of the Replication Plan. The name can contain only letters, numbers, and hyphens. It should start with a letter and end with a letter or a number. Can be a maximum of 63 characters. Changing this forces a new resource to be created.
     */
    @JvmName("qvikvogxcdhaycnf")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value
     */
    @JvmName("xokxlmqqhdtebeof")
    public suspend fun runbookId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.runbookId = mapped
    }

    /**
     * @param value
     */
    @JvmName("lrhxsggepseuoyhe")
    public suspend fun scriptPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scriptPath = mapped
    }

    /**
     * @param value
     */
    @JvmName("qcnqdcwbeentorsr")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): ReplicationRecoveryPlanShutdownRecoveryGroupPreActionArgs =
        ReplicationRecoveryPlanShutdownRecoveryGroupPreActionArgs(
            fabricLocation = fabricLocation,
            failOverDirections = failOverDirections ?: throw PulumiNullFieldException("failOverDirections"),
            failOverTypes = failOverTypes ?: throw PulumiNullFieldException("failOverTypes"),
            manualActionInstruction = manualActionInstruction,
            name = name ?: throw PulumiNullFieldException("name"),
            runbookId = runbookId,
            scriptPath = scriptPath,
            type = type ?: throw PulumiNullFieldException("type"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy