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

com.pulumi.gcp.osconfig.kotlin.inputs.GuestPoliciesPackageRepositoryAptArgs.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.13.1.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.GuestPoliciesPackageRepositoryAptArgs.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 archiveType Type of archive files in this repository. The default behavior is DEB.
 * Default value is `DEB`.
 * Possible values are: `DEB`, `DEB_SRC`.
 * @property components List of components for this repository. Must contain at least one item.
 * @property distribution Distribution of this repository.
 * @property gpgKey URI of the key file for this repository. The agent maintains a keyring at
 * /etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg containing all the keys in any applied guest policy.
 * @property uri URI for this repository.
 */
public data class GuestPoliciesPackageRepositoryAptArgs(
    public val archiveType: Output? = null,
    public val components: Output>,
    public val distribution: Output,
    public val gpgKey: Output? = null,
    public val uri: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.osconfig.inputs.GuestPoliciesPackageRepositoryAptArgs =
        com.pulumi.gcp.osconfig.inputs.GuestPoliciesPackageRepositoryAptArgs.builder()
            .archiveType(archiveType?.applyValue({ args0 -> args0 }))
            .components(components.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .distribution(distribution.applyValue({ args0 -> args0 }))
            .gpgKey(gpgKey?.applyValue({ args0 -> args0 }))
            .uri(uri.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GuestPoliciesPackageRepositoryAptArgs].
 */
@PulumiTagMarker
public class GuestPoliciesPackageRepositoryAptArgsBuilder internal constructor() {
    private var archiveType: Output? = null

    private var components: Output>? = null

    private var distribution: Output? = null

    private var gpgKey: Output? = null

    private var uri: Output? = null

    /**
     * @param value Type of archive files in this repository. The default behavior is DEB.
     * Default value is `DEB`.
     * Possible values are: `DEB`, `DEB_SRC`.
     */
    @JvmName("myysomgmdfqhcsvr")
    public suspend fun archiveType(`value`: Output) {
        this.archiveType = value
    }

    /**
     * @param value List of components for this repository. Must contain at least one item.
     */
    @JvmName("ewjxnfbejjpsdjog")
    public suspend fun components(`value`: Output>) {
        this.components = value
    }

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

    /**
     * @param values List of components for this repository. Must contain at least one item.
     */
    @JvmName("dxnasknbmfepgkjj")
    public suspend fun components(values: List>) {
        this.components = Output.all(values)
    }

    /**
     * @param value Distribution of this repository.
     */
    @JvmName("pobnovtkdbwojaue")
    public suspend fun distribution(`value`: Output) {
        this.distribution = value
    }

    /**
     * @param value URI of the key file for this repository. The agent maintains a keyring at
     * /etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg containing all the keys in any applied guest policy.
     */
    @JvmName("qijskyfeaqtoxqsr")
    public suspend fun gpgKey(`value`: Output) {
        this.gpgKey = value
    }

    /**
     * @param value URI for this repository.
     */
    @JvmName("qadffrcjebkbfsvv")
    public suspend fun uri(`value`: Output) {
        this.uri = value
    }

    /**
     * @param value Type of archive files in this repository. The default behavior is DEB.
     * Default value is `DEB`.
     * Possible values are: `DEB`, `DEB_SRC`.
     */
    @JvmName("lcxmgblhqyegfngx")
    public suspend fun archiveType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.archiveType = mapped
    }

    /**
     * @param value List of components for this repository. Must contain at least one item.
     */
    @JvmName("wmymxyjmgmedfwyw")
    public suspend fun components(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.components = mapped
    }

    /**
     * @param values List of components for this repository. Must contain at least one item.
     */
    @JvmName("ueriqdafxsigugci")
    public suspend fun components(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.components = mapped
    }

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

    /**
     * @param value URI of the key file for this repository. The agent maintains a keyring at
     * /etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg containing all the keys in any applied guest policy.
     */
    @JvmName("eifedowgkdalffjl")
    public suspend fun gpgKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.gpgKey = mapped
    }

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

    internal fun build(): GuestPoliciesPackageRepositoryAptArgs =
        GuestPoliciesPackageRepositoryAptArgs(
            archiveType = archiveType,
            components = components ?: throw PulumiNullFieldException("components"),
            distribution = distribution ?: throw PulumiNullFieldException("distribution"),
            gpgKey = gpgKey,
            uri = uri ?: throw PulumiNullFieldException("uri"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy