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

com.pulumi.awsnative.panorama.kotlin.ApplicationInstanceArgs.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.panorama.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.panorama.ApplicationInstanceArgs.builder
import com.pulumi.awsnative.panorama.kotlin.inputs.ApplicationInstanceManifestOverridesPayloadArgs
import com.pulumi.awsnative.panorama.kotlin.inputs.ApplicationInstanceManifestOverridesPayloadArgsBuilder
import com.pulumi.awsnative.panorama.kotlin.inputs.ApplicationInstanceManifestPayloadArgs
import com.pulumi.awsnative.panorama.kotlin.inputs.ApplicationInstanceManifestPayloadArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Schema for ApplicationInstance CloudFormation Resource
 * @property applicationInstanceIdToReplace The ID of an application instance to replace with the new instance.
 * @property defaultRuntimeContextDevice The device's ID.
 * @property description A description for the application instance.
 * @property manifestOverridesPayload Setting overrides for the application manifest.
 * @property manifestPayload The application's manifest document.
 * @property name A name for the application instance.
 * @property runtimeRoleArn The ARN of a runtime role for the application instance.
 * @property tags Tags for the application instance.
 */
public data class ApplicationInstanceArgs(
    public val applicationInstanceIdToReplace: Output? = null,
    public val defaultRuntimeContextDevice: Output? = null,
    public val description: Output? = null,
    public val manifestOverridesPayload: Output? =
        null,
    public val manifestPayload: Output? = null,
    public val name: Output? = null,
    public val runtimeRoleArn: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.panorama.ApplicationInstanceArgs =
        com.pulumi.awsnative.panorama.ApplicationInstanceArgs.builder()
            .applicationInstanceIdToReplace(applicationInstanceIdToReplace?.applyValue({ args0 -> args0 }))
            .defaultRuntimeContextDevice(defaultRuntimeContextDevice?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .manifestOverridesPayload(
                manifestOverridesPayload?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .manifestPayload(manifestPayload?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .runtimeRoleArn(runtimeRoleArn?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ApplicationInstanceArgs].
 */
@PulumiTagMarker
public class ApplicationInstanceArgsBuilder internal constructor() {
    private var applicationInstanceIdToReplace: Output? = null

    private var defaultRuntimeContextDevice: Output? = null

    private var description: Output? = null

    private var manifestOverridesPayload: Output? =
        null

    private var manifestPayload: Output? = null

    private var name: Output? = null

    private var runtimeRoleArn: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The ID of an application instance to replace with the new instance.
     */
    @JvmName("chxoytyhelkjkwfx")
    public suspend fun applicationInstanceIdToReplace(`value`: Output) {
        this.applicationInstanceIdToReplace = value
    }

    /**
     * @param value The device's ID.
     */
    @JvmName("axystolmwyxmokko")
    public suspend fun defaultRuntimeContextDevice(`value`: Output) {
        this.defaultRuntimeContextDevice = value
    }

    /**
     * @param value A description for the application instance.
     */
    @JvmName("vjaifghlxhrjincy")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Setting overrides for the application manifest.
     */
    @JvmName("mofajcvaarnxghnv")
    public suspend fun manifestOverridesPayload(`value`: Output) {
        this.manifestOverridesPayload = value
    }

    /**
     * @param value The application's manifest document.
     */
    @JvmName("bstaahyxprtqodmf")
    public suspend fun manifestPayload(`value`: Output) {
        this.manifestPayload = value
    }

    /**
     * @param value A name for the application instance.
     */
    @JvmName("pavuvwwdpgiovune")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The ARN of a runtime role for the application instance.
     */
    @JvmName("iwewigkrhgcwalxe")
    public suspend fun runtimeRoleArn(`value`: Output) {
        this.runtimeRoleArn = value
    }

    /**
     * @param value Tags for the application instance.
     */
    @JvmName("uyjwnvgvrwttblbf")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Tags for the application instance.
     */
    @JvmName("gvvywghwodqedsja")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The ID of an application instance to replace with the new instance.
     */
    @JvmName("cxpthfpogjhgyxix")
    public suspend fun applicationInstanceIdToReplace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationInstanceIdToReplace = mapped
    }

    /**
     * @param value The device's ID.
     */
    @JvmName("irdlwwlueldhxxpq")
    public suspend fun defaultRuntimeContextDevice(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultRuntimeContextDevice = mapped
    }

    /**
     * @param value A description for the application instance.
     */
    @JvmName("qopayxcopladovfb")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Setting overrides for the application manifest.
     */
    @JvmName("rgdajxdxsjlnooph")
    public suspend fun manifestOverridesPayload(`value`: ApplicationInstanceManifestOverridesPayloadArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.manifestOverridesPayload = mapped
    }

    /**
     * @param argument Setting overrides for the application manifest.
     */
    @JvmName("sajekpxtpwqbmkfl")
    public suspend fun manifestOverridesPayload(argument: suspend ApplicationInstanceManifestOverridesPayloadArgsBuilder.() -> Unit) {
        val toBeMapped = ApplicationInstanceManifestOverridesPayloadArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.manifestOverridesPayload = mapped
    }

    /**
     * @param value The application's manifest document.
     */
    @JvmName("ewfbsyjkwivenjyb")
    public suspend fun manifestPayload(`value`: ApplicationInstanceManifestPayloadArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.manifestPayload = mapped
    }

    /**
     * @param argument The application's manifest document.
     */
    @JvmName("gylhdkwqiwceewqc")
    public suspend fun manifestPayload(argument: suspend ApplicationInstanceManifestPayloadArgsBuilder.() -> Unit) {
        val toBeMapped = ApplicationInstanceManifestPayloadArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.manifestPayload = mapped
    }

    /**
     * @param value A name for the application instance.
     */
    @JvmName("ehjvcsqfxnultohr")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The ARN of a runtime role for the application instance.
     */
    @JvmName("hysmmtyabvniclit")
    public suspend fun runtimeRoleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.runtimeRoleArn = mapped
    }

    /**
     * @param value Tags for the application instance.
     */
    @JvmName("xvspqdlhrpvsaiuy")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Tags for the application instance.
     */
    @JvmName("tfejxlchclyyivgl")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Tags for the application instance.
     */
    @JvmName("yaqvodxktdrkithr")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Tags for the application instance.
     */
    @JvmName("hpapcworxxanqgfy")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Tags for the application instance.
     */
    @JvmName("ihoknuhlutekoede")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ApplicationInstanceArgs = ApplicationInstanceArgs(
        applicationInstanceIdToReplace = applicationInstanceIdToReplace,
        defaultRuntimeContextDevice = defaultRuntimeContextDevice,
        description = description,
        manifestOverridesPayload = manifestOverridesPayload,
        manifestPayload = manifestPayload,
        name = name,
        runtimeRoleArn = runtimeRoleArn,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy