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

com.pulumi.gcp.osconfig.kotlin.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourceRepositoryAptArgs.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.OsPolicyAssignmentOsPolicyResourceGroupResourceRepositoryAptArgs.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.
 * Possible values are: `ARCHIVE_TYPE_UNSPECIFIED`, `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`.
 * @property uri URI for this repository.
 */
public data class OsPolicyAssignmentOsPolicyResourceGroupResourceRepositoryAptArgs(
    public val archiveType: Output,
    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.OsPolicyAssignmentOsPolicyResourceGroupResourceRepositoryAptArgs =
        com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourceRepositoryAptArgs.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 [OsPolicyAssignmentOsPolicyResourceGroupResourceRepositoryAptArgs].
 */
@PulumiTagMarker
public class OsPolicyAssignmentOsPolicyResourceGroupResourceRepositoryAptArgsBuilder 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.
     * Possible values are: `ARCHIVE_TYPE_UNSPECIFIED`, `DEB`, `DEB_SRC`.
     */
    @JvmName("deljmhdmlynqgbtb")
    public suspend fun archiveType(`value`: Output) {
        this.archiveType = value
    }

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

    @JvmName("oomuebxlxfwmgojo")
    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("rplwutmeicksaipu")
    public suspend fun components(values: List>) {
        this.components = Output.all(values)
    }

    /**
     * @param value Distribution of this repository.
     */
    @JvmName("redyfpaxwhuilqco")
    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`.
     */
    @JvmName("bahnjtcvwrwpjbpi")
    public suspend fun gpgKey(`value`: Output) {
        this.gpgKey = value
    }

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

    /**
     * @param value Type of archive files in this repository.
     * Possible values are: `ARCHIVE_TYPE_UNSPECIFIED`, `DEB`, `DEB_SRC`.
     */
    @JvmName("xevkxrgusemutbrl")
    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("mxfjybefdxjoraqw")
    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("taltucemqmjsoysh")
    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("scuscomiijwlxubi")
    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`.
     */
    @JvmName("ptnduxaambgwvhxl")
    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("vtumjyqavisjbmji")
    public suspend fun uri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.uri = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy