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

com.pulumi.gcp.osconfig.kotlin.inputs.PatchDeploymentPatchConfigAptArgs.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.PatchDeploymentPatchConfigAptArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property excludes List of packages to exclude from update. These packages will be excluded.
 * @property exclusivePackages An exclusive list of packages to be updated. These are the only packages that will be updated.
 * If these packages are not installed, they will be ignored. This field cannot be specified with
 * any other patch configuration fields.
 * @property type By changing the type to DIST, the patching is performed using apt-get dist-upgrade instead.
 * Possible values are: `DIST`, `UPGRADE`.
 */
public data class PatchDeploymentPatchConfigAptArgs(
    public val excludes: Output>? = null,
    public val exclusivePackages: Output>? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.osconfig.inputs.PatchDeploymentPatchConfigAptArgs =
        com.pulumi.gcp.osconfig.inputs.PatchDeploymentPatchConfigAptArgs.builder()
            .excludes(excludes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .exclusivePackages(exclusivePackages?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .type(type?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PatchDeploymentPatchConfigAptArgs].
 */
@PulumiTagMarker
public class PatchDeploymentPatchConfigAptArgsBuilder internal constructor() {
    private var excludes: Output>? = null

    private var exclusivePackages: Output>? = null

    private var type: Output? = null

    /**
     * @param value List of packages to exclude from update. These packages will be excluded.
     */
    @JvmName("qkjuipuaplerfxkf")
    public suspend fun excludes(`value`: Output>) {
        this.excludes = value
    }

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

    /**
     * @param values List of packages to exclude from update. These packages will be excluded.
     */
    @JvmName("xrikilrifjiclvve")
    public suspend fun excludes(values: List>) {
        this.excludes = Output.all(values)
    }

    /**
     * @param value An exclusive list of packages to be updated. These are the only packages that will be updated.
     * If these packages are not installed, they will be ignored. This field cannot be specified with
     * any other patch configuration fields.
     */
    @JvmName("sbbudhgjxooesfgx")
    public suspend fun exclusivePackages(`value`: Output>) {
        this.exclusivePackages = value
    }

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

    /**
     * @param values An exclusive list of packages to be updated. These are the only packages that will be updated.
     * If these packages are not installed, they will be ignored. This field cannot be specified with
     * any other patch configuration fields.
     */
    @JvmName("mkwnonceyngigfsj")
    public suspend fun exclusivePackages(values: List>) {
        this.exclusivePackages = Output.all(values)
    }

    /**
     * @param value By changing the type to DIST, the patching is performed using apt-get dist-upgrade instead.
     * Possible values are: `DIST`, `UPGRADE`.
     */
    @JvmName("sbkqcvqlrnnpdvhp")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value List of packages to exclude from update. These packages will be excluded.
     */
    @JvmName("pfyhhxbxruycxqgr")
    public suspend fun excludes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excludes = mapped
    }

    /**
     * @param values List of packages to exclude from update. These packages will be excluded.
     */
    @JvmName("xsfktrfyyafmogki")
    public suspend fun excludes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.excludes = mapped
    }

    /**
     * @param value An exclusive list of packages to be updated. These are the only packages that will be updated.
     * If these packages are not installed, they will be ignored. This field cannot be specified with
     * any other patch configuration fields.
     */
    @JvmName("wnppbnsmugmkkidd")
    public suspend fun exclusivePackages(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exclusivePackages = mapped
    }

    /**
     * @param values An exclusive list of packages to be updated. These are the only packages that will be updated.
     * If these packages are not installed, they will be ignored. This field cannot be specified with
     * any other patch configuration fields.
     */
    @JvmName("qomqlfxipobgckpx")
    public suspend fun exclusivePackages(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.exclusivePackages = mapped
    }

    /**
     * @param value By changing the type to DIST, the patching is performed using apt-get dist-upgrade instead.
     * Possible values are: `DIST`, `UPGRADE`.
     */
    @JvmName("ouuliffurlmbekon")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): PatchDeploymentPatchConfigAptArgs = PatchDeploymentPatchConfigAptArgs(
        excludes = excludes,
        exclusivePackages = exclusivePackages,
        type = type,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy