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

com.pulumi.googlenative.compute.beta.kotlin.inputs.RolloutPolicyArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.compute.beta.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.beta.inputs.RolloutPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * A rollout policy configuration.
 * @property defaultRolloutTime An optional RFC3339 timestamp on or after which the update is considered rolled out to any zone that is not explicitly stated.
 * @property locationRolloutPolicies Location based rollout policies to apply to the resource. Currently only zone names are supported and must be represented as valid URLs, like: zones/us-central1-a. The value expects an RFC3339 timestamp on or after which the update is considered rolled out to the specified location.
 */
public data class RolloutPolicyArgs(
    public val defaultRolloutTime: Output? = null,
    public val locationRolloutPolicies: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.compute.beta.inputs.RolloutPolicyArgs =
        com.pulumi.googlenative.compute.beta.inputs.RolloutPolicyArgs.builder()
            .defaultRolloutTime(defaultRolloutTime?.applyValue({ args0 -> args0 }))
            .locationRolloutPolicies(
                locationRolloutPolicies?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [RolloutPolicyArgs].
 */
@PulumiTagMarker
public class RolloutPolicyArgsBuilder internal constructor() {
    private var defaultRolloutTime: Output? = null

    private var locationRolloutPolicies: Output>? = null

    /**
     * @param value An optional RFC3339 timestamp on or after which the update is considered rolled out to any zone that is not explicitly stated.
     */
    @JvmName("virvkvihlagouqpd")
    public suspend fun defaultRolloutTime(`value`: Output) {
        this.defaultRolloutTime = value
    }

    /**
     * @param value Location based rollout policies to apply to the resource. Currently only zone names are supported and must be represented as valid URLs, like: zones/us-central1-a. The value expects an RFC3339 timestamp on or after which the update is considered rolled out to the specified location.
     */
    @JvmName("nblxsjktpiuwwmex")
    public suspend fun locationRolloutPolicies(`value`: Output>) {
        this.locationRolloutPolicies = value
    }

    /**
     * @param value An optional RFC3339 timestamp on or after which the update is considered rolled out to any zone that is not explicitly stated.
     */
    @JvmName("mhdkgtawsnghtkuf")
    public suspend fun defaultRolloutTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultRolloutTime = mapped
    }

    /**
     * @param value Location based rollout policies to apply to the resource. Currently only zone names are supported and must be represented as valid URLs, like: zones/us-central1-a. The value expects an RFC3339 timestamp on or after which the update is considered rolled out to the specified location.
     */
    @JvmName("ygjlbceuysyheres")
    public suspend fun locationRolloutPolicies(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.locationRolloutPolicies = mapped
    }

    /**
     * @param values Location based rollout policies to apply to the resource. Currently only zone names are supported and must be represented as valid URLs, like: zones/us-central1-a. The value expects an RFC3339 timestamp on or after which the update is considered rolled out to the specified location.
     */
    @JvmName("ximysigjmbottdsi")
    public fun locationRolloutPolicies(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.locationRolloutPolicies = mapped
    }

    internal fun build(): RolloutPolicyArgs = RolloutPolicyArgs(
        defaultRolloutTime = defaultRolloutTime,
        locationRolloutPolicies = locationRolloutPolicies,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy