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

com.pulumi.gcp.osconfig.kotlin.inputs.GuestPoliciesPackageRepositoryZypperArgs.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.GuestPoliciesPackageRepositoryZypperArgs.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 zypper config file and also the displayName
 * if displayName is omitted. This id is also used as the unique identifier when checking for guest policy conflicts.
 */
public data class GuestPoliciesPackageRepositoryZypperArgs(
    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.GuestPoliciesPackageRepositoryZypperArgs =
        com.pulumi.gcp.osconfig.inputs.GuestPoliciesPackageRepositoryZypperArgs.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 [GuestPoliciesPackageRepositoryZypperArgs].
 */
@PulumiTagMarker
public class GuestPoliciesPackageRepositoryZypperArgsBuilder 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("hcmxkpwcwlrvrcuc")
    public suspend fun baseUrl(`value`: Output) {
        this.baseUrl = value
    }

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

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

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

    /**
     * @param values URIs of GPG keys.
     */
    @JvmName("clawnrtebqjdgcpv")
    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 zypper config file and also the displayName
     * if displayName is omitted. This id is also used as the unique identifier when checking for guest policy conflicts.
     */
    @JvmName("xvxowysgupiwccfw")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value The location of the repository directory.
     */
    @JvmName("okdtvjskqtsuwmul")
    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("oousafvnkewkcihk")
    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("qbraolfooobvtfjv")
    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("nfonvfpnkfphqolq")
    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 zypper config file and also the displayName
     * if displayName is omitted. This id is also used as the unique identifier when checking for guest policy conflicts.
     */
    @JvmName("fdccmenxvupocxeo")
    public suspend fun id(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.id = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy