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

com.pulumi.awsnative.imagebuilder.kotlin.ComponentArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.imagebuilder.kotlin

import com.pulumi.awsnative.imagebuilder.ComponentArgs.builder
import com.pulumi.awsnative.imagebuilder.kotlin.enums.ComponentPlatform
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::ImageBuilder::Component
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property changeDescription The change description of the component.
 * @property data The data of the component.
 * @property description The description of the component.
 * @property kmsKeyId The KMS key identifier used to encrypt the component.
 * @property name The name of the component.
 * @property platform The platform of the component.
 * @property supportedOsVersions The operating system (OS) version supported by the component.
 * @property tags The tags associated with the component.
 * @property uri The uri of the component.
 * @property version The version of the component.
 */
public data class ComponentArgs(
    public val changeDescription: Output? = null,
    public val `data`: Output? = null,
    public val description: Output? = null,
    public val kmsKeyId: Output? = null,
    public val name: Output? = null,
    public val platform: Output? = null,
    public val supportedOsVersions: Output>? = null,
    public val tags: Output>? = null,
    public val uri: Output? = null,
    public val version: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.imagebuilder.ComponentArgs =
        com.pulumi.awsnative.imagebuilder.ComponentArgs.builder()
            .changeDescription(changeDescription?.applyValue({ args0 -> args0 }))
            .`data`(`data`?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .kmsKeyId(kmsKeyId?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .platform(platform?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .supportedOsVersions(supportedOsVersions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .uri(uri?.applyValue({ args0 -> args0 }))
            .version(version?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ComponentArgs].
 */
@PulumiTagMarker
public class ComponentArgsBuilder internal constructor() {
    private var changeDescription: Output? = null

    private var `data`: Output? = null

    private var description: Output? = null

    private var kmsKeyId: Output? = null

    private var name: Output? = null

    private var platform: Output? = null

    private var supportedOsVersions: Output>? = null

    private var tags: Output>? = null

    private var uri: Output? = null

    private var version: Output? = null

    /**
     * @param value The change description of the component.
     */
    @JvmName("dmbxgvqvomcbsgqw")
    public suspend fun changeDescription(`value`: Output) {
        this.changeDescription = value
    }

    /**
     * @param value The data of the component.
     */
    @JvmName("qrgxjjycrgtbhpmo")
    public suspend fun `data`(`value`: Output) {
        this.`data` = value
    }

    /**
     * @param value The description of the component.
     */
    @JvmName("dsyddjepwvpwbvas")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The KMS key identifier used to encrypt the component.
     */
    @JvmName("adnquxvxtwsdpcbo")
    public suspend fun kmsKeyId(`value`: Output) {
        this.kmsKeyId = value
    }

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

    /**
     * @param value The platform of the component.
     */
    @JvmName("ikbiqqpgxokqukrb")
    public suspend fun platform(`value`: Output) {
        this.platform = value
    }

    /**
     * @param value The operating system (OS) version supported by the component.
     */
    @JvmName("xxvtakmtetkesgqb")
    public suspend fun supportedOsVersions(`value`: Output>) {
        this.supportedOsVersions = value
    }

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

    /**
     * @param values The operating system (OS) version supported by the component.
     */
    @JvmName("vghskcuxyepdgjgw")
    public suspend fun supportedOsVersions(values: List>) {
        this.supportedOsVersions = Output.all(values)
    }

    /**
     * @param value The tags associated with the component.
     */
    @JvmName("oouqgshaglyfnnbn")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The uri of the component.
     */
    @JvmName("ibfmhjhcadhabyvl")
    public suspend fun uri(`value`: Output) {
        this.uri = value
    }

    /**
     * @param value The version of the component.
     */
    @JvmName("weykwhkycoetgfsm")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value The change description of the component.
     */
    @JvmName("dtomlxinwkhocwdu")
    public suspend fun changeDescription(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.changeDescription = mapped
    }

    /**
     * @param value The data of the component.
     */
    @JvmName("noptjowxxypgonom")
    public suspend fun `data`(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`data` = mapped
    }

    /**
     * @param value The description of the component.
     */
    @JvmName("lrkqpjnrcvglgxvx")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The KMS key identifier used to encrypt the component.
     */
    @JvmName("gxqeopocfejqlwfo")
    public suspend fun kmsKeyId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKeyId = mapped
    }

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

    /**
     * @param value The platform of the component.
     */
    @JvmName("tualsektfklqvois")
    public suspend fun platform(`value`: ComponentPlatform?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.platform = mapped
    }

    /**
     * @param value The operating system (OS) version supported by the component.
     */
    @JvmName("uxlwxghqdjgqpgrt")
    public suspend fun supportedOsVersions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.supportedOsVersions = mapped
    }

    /**
     * @param values The operating system (OS) version supported by the component.
     */
    @JvmName("yqevgpdpqlkqjrup")
    public suspend fun supportedOsVersions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.supportedOsVersions = mapped
    }

    /**
     * @param value The tags associated with the component.
     */
    @JvmName("ukeifrnknyfcqtwk")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values The tags associated with the component.
     */
    @JvmName("lavxhbnpxtifyaey")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The uri of the component.
     */
    @JvmName("hvftebjmiuohgxfq")
    public suspend fun uri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.uri = mapped
    }

    /**
     * @param value The version of the component.
     */
    @JvmName("nrnwaqvuiilqrrgj")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): ComponentArgs = ComponentArgs(
        changeDescription = changeDescription,
        `data` = `data`,
        description = description,
        kmsKeyId = kmsKeyId,
        name = name,
        platform = platform,
        supportedOsVersions = supportedOsVersions,
        tags = tags,
        uri = uri,
        version = version,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy