
com.pulumi.azurenative.containerregistry.kotlin.inputs.PlatformPropertiesArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.containerregistry.kotlin.inputs
import com.pulumi.azurenative.containerregistry.inputs.PlatformPropertiesArgs.builder
import com.pulumi.azurenative.containerregistry.kotlin.enums.Architecture
import com.pulumi.azurenative.containerregistry.kotlin.enums.OS
import com.pulumi.azurenative.containerregistry.kotlin.enums.Variant
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The platform properties against which the run has to happen.
* @property architecture The OS architecture.
* @property os The operating system type required for the run.
* @property variant Variant of the CPU.
*/
public data class PlatformPropertiesArgs(
public val architecture: Output>? = null,
public val os: Output>,
public val variant: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.containerregistry.inputs.PlatformPropertiesArgs =
com.pulumi.azurenative.containerregistry.inputs.PlatformPropertiesArgs.builder()
.architecture(
architecture?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.os(
os.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.variant(
variant?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [PlatformPropertiesArgs].
*/
@PulumiTagMarker
public class PlatformPropertiesArgsBuilder internal constructor() {
private var architecture: Output>? = null
private var os: Output>? = null
private var variant: Output>? = null
/**
* @param value The OS architecture.
*/
@JvmName("ujmjlsyosxfgnnux")
public suspend fun architecture(`value`: Output>) {
this.architecture = value
}
/**
* @param value The operating system type required for the run.
*/
@JvmName("yjnmkevsiahpsitq")
public suspend fun os(`value`: Output>) {
this.os = value
}
/**
* @param value Variant of the CPU.
*/
@JvmName("ygojkbudssmhiire")
public suspend fun variant(`value`: Output>) {
this.variant = value
}
/**
* @param value The OS architecture.
*/
@JvmName("hdtcgasuspvbckiq")
public suspend fun architecture(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.architecture = mapped
}
/**
* @param value The OS architecture.
*/
@JvmName("apoflhkpvkbfsows")
public fun architecture(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.architecture = mapped
}
/**
* @param value The OS architecture.
*/
@JvmName("ekawalksqdsxllgm")
public fun architecture(`value`: Architecture) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.architecture = mapped
}
/**
* @param value The operating system type required for the run.
*/
@JvmName("mcpwamrxhdsrvhmn")
public suspend fun os(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.os = mapped
}
/**
* @param value The operating system type required for the run.
*/
@JvmName("ovpotkwxjgudnxha")
public fun os(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.os = mapped
}
/**
* @param value The operating system type required for the run.
*/
@JvmName("ditjfqkamkkvwcvc")
public fun os(`value`: OS) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.os = mapped
}
/**
* @param value Variant of the CPU.
*/
@JvmName("tuarbuywejppgioh")
public suspend fun variant(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.variant = mapped
}
/**
* @param value Variant of the CPU.
*/
@JvmName("onpnduusllxsxjhp")
public fun variant(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.variant = mapped
}
/**
* @param value Variant of the CPU.
*/
@JvmName("hgynwvrgiflpaiqd")
public fun variant(`value`: Variant) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.variant = mapped
}
internal fun build(): PlatformPropertiesArgs = PlatformPropertiesArgs(
architecture = architecture,
os = os ?: throw PulumiNullFieldException("os"),
variant = variant,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy