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

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

package com.pulumi.gcp.osconfig.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentRolloutDisruptionBudgetArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property fixed Specifies a fixed value.
 * @property percent Specifies the relative value defined as a percentage,
 * which will be multiplied by a reference value.
 * --------------------------------------------------------------------------------
 */
public data class OsPolicyAssignmentRolloutDisruptionBudgetArgs(
    public val fixed: Output? = null,
    public val percent: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentRolloutDisruptionBudgetArgs =
        com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentRolloutDisruptionBudgetArgs.builder()
            .fixed(fixed?.applyValue({ args0 -> args0 }))
            .percent(percent?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [OsPolicyAssignmentRolloutDisruptionBudgetArgs].
 */
@PulumiTagMarker
public class OsPolicyAssignmentRolloutDisruptionBudgetArgsBuilder internal constructor() {
    private var fixed: Output? = null

    private var percent: Output? = null

    /**
     * @param value Specifies a fixed value.
     */
    @JvmName("ttydcdwptaxgtblq")
    public suspend fun fixed(`value`: Output) {
        this.fixed = value
    }

    /**
     * @param value Specifies the relative value defined as a percentage,
     * which will be multiplied by a reference value.
     * --------------------------------------------------------------------------------
     */
    @JvmName("pwvbqwnyxblrqpxx")
    public suspend fun percent(`value`: Output) {
        this.percent = value
    }

    /**
     * @param value Specifies a fixed value.
     */
    @JvmName("hccsffccdgmvxqqy")
    public suspend fun fixed(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fixed = mapped
    }

    /**
     * @param value Specifies the relative value defined as a percentage,
     * which will be multiplied by a reference value.
     * --------------------------------------------------------------------------------
     */
    @JvmName("ahyxbsxpxhqsygmf")
    public suspend fun percent(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.percent = mapped
    }

    internal fun build(): OsPolicyAssignmentRolloutDisruptionBudgetArgs =
        OsPolicyAssignmentRolloutDisruptionBudgetArgs(
            fixed = fixed,
            percent = percent,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy