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

com.pulumi.gcp.osconfig.kotlin.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourceRepositoryYumArgs.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.12.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.OsPolicyAssignmentOsPolicyResourceGroupResourceRepositoryYumArgs.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 baseUrl The location of the repository directory.
 * @property displayName The display name of the repository.
 * @property gpgKeys URIs of GPG keys.
 * @property id A one word, unique name for this repository. This is the
 * `repo id` in the yum config file and also the `display_name` if
 * `display_name` is omitted. This id is also used as the unique identifier
 * when checking for resource conflicts.
 */
public data class OsPolicyAssignmentOsPolicyResourceGroupResourceRepositoryYumArgs(
    public val baseUrl: Output,
    public val displayName: Output? = null,
    public val gpgKeys: Output>? = null,
    public val id: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourceRepositoryYumArgs =
        com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourceRepositoryYumArgs.builder()
            .baseUrl(baseUrl.applyValue({ args0 -> args0 }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .gpgKeys(gpgKeys?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .id(id.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [OsPolicyAssignmentOsPolicyResourceGroupResourceRepositoryYumArgs].
 */
@PulumiTagMarker
public class OsPolicyAssignmentOsPolicyResourceGroupResourceRepositoryYumArgsBuilder internal constructor() {
    private var baseUrl: Output? = null

    private var displayName: Output? = null

    private var gpgKeys: Output>? = null

    private var id: Output? = null

    /**
     * @param value The location of the repository directory.
     */
    @JvmName("hjmfassscmapxvqs")
    public suspend fun baseUrl(`value`: Output) {
        this.baseUrl = value
    }

    /**
     * @param value The display name of the repository.
     */
    @JvmName("brfkusiwlsldthpk")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value URIs of GPG keys.
     */
    @JvmName("esarqeshgaqhixum")
    public suspend fun gpgKeys(`value`: Output>) {
        this.gpgKeys = value
    }

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

    /**
     * @param values URIs of GPG keys.
     */
    @JvmName("cewymvvewvhofriv")
    public suspend fun gpgKeys(values: List>) {
        this.gpgKeys = Output.all(values)
    }

    /**
     * @param value A one word, unique name for this repository. This is the
     * `repo id` in the yum config file and also the `display_name` if
     * `display_name` is omitted. This id is also used as the unique identifier
     * when checking for resource conflicts.
     */
    @JvmName("ffwivdtxbjrsvnnc")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value The location of the repository directory.
     */
    @JvmName("brnqulxxfanfwtjp")
    public suspend fun baseUrl(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.baseUrl = mapped
    }

    /**
     * @param value The display name of the repository.
     */
    @JvmName("hjgtlhsrbrjwbmse")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value URIs of GPG keys.
     */
    @JvmName("clsxligulyveagtj")
    public suspend fun gpgKeys(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.gpgKeys = mapped
    }

    /**
     * @param values URIs of GPG keys.
     */
    @JvmName("cuxuqykengabuybk")
    public suspend fun gpgKeys(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.gpgKeys = mapped
    }

    /**
     * @param value A one word, unique name for this repository. This is the
     * `repo id` in the yum config file and also the `display_name` if
     * `display_name` is omitted. This id is also used as the unique identifier
     * when checking for resource conflicts.
     */
    @JvmName("llxhmwhdwhaueymk")
    public suspend fun id(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.id = mapped
    }

    internal fun build(): OsPolicyAssignmentOsPolicyResourceGroupResourceRepositoryYumArgs =
        OsPolicyAssignmentOsPolicyResourceGroupResourceRepositoryYumArgs(
            baseUrl = baseUrl ?: throw PulumiNullFieldException("baseUrl"),
            displayName = displayName,
            gpgKeys = gpgKeys,
            id = id ?: throw PulumiNullFieldException("id"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy