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

com.pulumi.gcp.clouddeploy.kotlin.inputs.AutomationRuleAdvanceRolloutRuleArgs.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: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.clouddeploy.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.clouddeploy.inputs.AutomationRuleAdvanceRolloutRuleArgs.builder
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 id Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is `a-z{0,62}`.
 * @property sourcePhases Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^a-z?$`.
 * - - -
 * @property wait Optional. How long to wait after a rollout is finished.
 */
public data class AutomationRuleAdvanceRolloutRuleArgs(
    public val id: Output,
    public val sourcePhases: Output>? = null,
    public val wait: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.clouddeploy.inputs.AutomationRuleAdvanceRolloutRuleArgs =
        com.pulumi.gcp.clouddeploy.inputs.AutomationRuleAdvanceRolloutRuleArgs.builder()
            .id(id.applyValue({ args0 -> args0 }))
            .sourcePhases(sourcePhases?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .wait_(wait?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AutomationRuleAdvanceRolloutRuleArgs].
 */
@PulumiTagMarker
public class AutomationRuleAdvanceRolloutRuleArgsBuilder internal constructor() {
    private var id: Output? = null

    private var sourcePhases: Output>? = null

    private var wait: Output? = null

    /**
     * @param value Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is `a-z{0,62}`.
     */
    @JvmName("ducqcxbthhehdkdy")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^a-z?$`.
     * - - -
     */
    @JvmName("kfabmfxvfifffpns")
    public suspend fun sourcePhases(`value`: Output>) {
        this.sourcePhases = value
    }

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

    /**
     * @param values Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^a-z?$`.
     * - - -
     */
    @JvmName("wwplwmlljtnktdox")
    public suspend fun sourcePhases(values: List>) {
        this.sourcePhases = Output.all(values)
    }

    /**
     * @param value Optional. How long to wait after a rollout is finished.
     */
    @JvmName("ijvyuvhpklngahfx")
    public suspend fun wait(`value`: Output) {
        this.wait = value
    }

    /**
     * @param value Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is `a-z{0,62}`.
     */
    @JvmName("xkfoaakotwsjfkqq")
    public suspend fun id(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^a-z?$`.
     * - - -
     */
    @JvmName("metusiggnrbejcyb")
    public suspend fun sourcePhases(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourcePhases = mapped
    }

    /**
     * @param values Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^a-z?$`.
     * - - -
     */
    @JvmName("gqelqhuqugdqsysh")
    public suspend fun sourcePhases(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourcePhases = mapped
    }

    /**
     * @param value Optional. How long to wait after a rollout is finished.
     */
    @JvmName("vccwncqwenjvnygx")
    public suspend fun wait(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.wait = mapped
    }

    internal fun build(): AutomationRuleAdvanceRolloutRuleArgs = AutomationRuleAdvanceRolloutRuleArgs(
        id = id ?: throw PulumiNullFieldException("id"),
        sourcePhases = sourcePhases,
        wait = wait,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy