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

com.pulumi.gcp.osconfig.kotlin.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmSourceGcsArgs.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.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmSourceGcsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property bucket Bucket of the Cloud Storage object.
 * @property generation Generation number of the Cloud Storage object.
 * @property object Name of the Cloud Storage object.
 */
public data class OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmSourceGcsArgs(
    public val bucket: Output,
    public val generation: Output? = null,
    public val `object`: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmSourceGcsArgs =
        com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmSourceGcsArgs.builder()
            .bucket(bucket.applyValue({ args0 -> args0 }))
            .generation(generation?.applyValue({ args0 -> args0 }))
            .`object`(`object`.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmSourceGcsArgs].
 */
@PulumiTagMarker
public class OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmSourceGcsArgsBuilder internal constructor() {
    private var bucket: Output? = null

    private var generation: Output? = null

    private var `object`: Output? = null

    /**
     * @param value Bucket of the Cloud Storage object.
     */
    @JvmName("crmqblunkmycfqty")
    public suspend fun bucket(`value`: Output) {
        this.bucket = value
    }

    /**
     * @param value Generation number of the Cloud Storage object.
     */
    @JvmName("mvnnjbuaysyfwxxv")
    public suspend fun generation(`value`: Output) {
        this.generation = value
    }

    /**
     * @param value Name of the Cloud Storage object.
     */
    @JvmName("axyjfsvgxjmkdbdk")
    public suspend fun `object`(`value`: Output) {
        this.`object` = value
    }

    /**
     * @param value Bucket of the Cloud Storage object.
     */
    @JvmName("luprrhqbflmawakj")
    public suspend fun bucket(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bucket = mapped
    }

    /**
     * @param value Generation number of the Cloud Storage object.
     */
    @JvmName("cmjbdkecqoalxlch")
    public suspend fun generation(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.generation = mapped
    }

    /**
     * @param value Name of the Cloud Storage object.
     */
    @JvmName("ytyipqgrjwrcveav")
    public suspend fun `object`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`object` = mapped
    }

    internal fun build(): OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmSourceGcsArgs =
        OsPolicyAssignmentOsPolicyResourceGroupResourcePkgRpmSourceGcsArgs(
            bucket = bucket ?: throw PulumiNullFieldException("bucket"),
            generation = generation,
            `object` = `object` ?: throw PulumiNullFieldException("object"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy