com.pulumi.gcp.osconfig.kotlin.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property pullDeps Whether dependencies should also be installed. -
* install when false: `dpkg -i package` - install when true: `apt-get update
* && apt-get -y install package.deb`
* @property source A deb package. Structure is
* documented below.
*/
public data class OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebArgs(
public val pullDeps: Output? = null,
public val source: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebArgs =
com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebArgs.builder()
.pullDeps(pullDeps?.applyValue({ args0 -> args0 }))
.source(source.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebArgs].
*/
@PulumiTagMarker
public class OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebArgsBuilder internal constructor() {
private var pullDeps: Output? = null
private var source: Output? =
null
/**
* @param value Whether dependencies should also be installed. -
* install when false: `dpkg -i package` - install when true: `apt-get update
* && apt-get -y install package.deb`
*/
@JvmName("wtyswcumipcholkk")
public suspend fun pullDeps(`value`: Output) {
this.pullDeps = value
}
/**
* @param value A deb package. Structure is
* documented below.
*/
@JvmName("sxwpcryvqqiipbfe")
public suspend fun source(`value`: Output) {
this.source = value
}
/**
* @param value Whether dependencies should also be installed. -
* install when false: `dpkg -i package` - install when true: `apt-get update
* && apt-get -y install package.deb`
*/
@JvmName("kptmdaidhxfbhhwk")
public suspend fun pullDeps(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.pullDeps = mapped
}
/**
* @param value A deb package. Structure is
* documented below.
*/
@JvmName("rronssltqcfenyym")
public suspend fun source(`value`: OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebSourceArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.source = mapped
}
/**
* @param argument A deb package. Structure is
* documented below.
*/
@JvmName("ppctgodgpyjeualo")
public suspend fun source(argument: suspend OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebSourceArgsBuilder.() -> Unit) {
val toBeMapped =
OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebSourceArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.source = mapped
}
internal fun build(): OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebArgs =
OsPolicyAssignmentOsPolicyResourceGroupResourcePkgDebArgs(
pullDeps = pullDeps,
source = source ?: throw PulumiNullFieldException("source"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy