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

com.pulumi.awsnative.systemsmanagersap.kotlin.ApplicationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.systemsmanagersap.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.systemsmanagersap.ApplicationArgs.builder
import com.pulumi.awsnative.systemsmanagersap.kotlin.enums.ApplicationType
import com.pulumi.awsnative.systemsmanagersap.kotlin.inputs.ApplicationCredentialArgs
import com.pulumi.awsnative.systemsmanagersap.kotlin.inputs.ApplicationCredentialArgsBuilder
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

/**
 * Resource schema for AWS::SystemsManagerSAP::Application
 * @property applicationId The ID of the application.
 * @property applicationType The type of the application.
 * @property credentials The credentials of the SAP application.
 * @property databaseArn The ARN of the SAP HANA database
 * @property instances The Amazon EC2 instances on which your SAP application is running.
 * @property sapInstanceNumber The SAP instance number of the application.
 * @property sid The System ID of the application.
 * @property tags The tags of a SystemsManagerSAP application.
 */
public data class ApplicationArgs(
    public val applicationId: Output? = null,
    public val applicationType: Output? = null,
    public val credentials: Output>? = null,
    public val databaseArn: Output? = null,
    public val instances: Output>? = null,
    public val sapInstanceNumber: Output? = null,
    public val sid: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.systemsmanagersap.ApplicationArgs =
        com.pulumi.awsnative.systemsmanagersap.ApplicationArgs.builder()
            .applicationId(applicationId?.applyValue({ args0 -> args0 }))
            .applicationType(applicationType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .credentials(
                credentials?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .databaseArn(databaseArn?.applyValue({ args0 -> args0 }))
            .instances(instances?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .sapInstanceNumber(sapInstanceNumber?.applyValue({ args0 -> args0 }))
            .sid(sid?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ApplicationArgs].
 */
@PulumiTagMarker
public class ApplicationArgsBuilder internal constructor() {
    private var applicationId: Output? = null

    private var applicationType: Output? = null

    private var credentials: Output>? = null

    private var databaseArn: Output? = null

    private var instances: Output>? = null

    private var sapInstanceNumber: Output? = null

    private var sid: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The ID of the application.
     */
    @JvmName("vwlfcorpnqlqpcqb")
    public suspend fun applicationId(`value`: Output) {
        this.applicationId = value
    }

    /**
     * @param value The type of the application.
     */
    @JvmName("vnssmvdrcgcvepsk")
    public suspend fun applicationType(`value`: Output) {
        this.applicationType = value
    }

    /**
     * @param value The credentials of the SAP application.
     */
    @JvmName("dyovxjispqrbimis")
    public suspend fun credentials(`value`: Output>) {
        this.credentials = value
    }

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

    /**
     * @param values The credentials of the SAP application.
     */
    @JvmName("myqnoyrqfmhodgel")
    public suspend fun credentials(values: List>) {
        this.credentials = Output.all(values)
    }

    /**
     * @param value The ARN of the SAP HANA database
     */
    @JvmName("sprijcvimxieeqdi")
    public suspend fun databaseArn(`value`: Output) {
        this.databaseArn = value
    }

    /**
     * @param value The Amazon EC2 instances on which your SAP application is running.
     */
    @JvmName("mnynnhjhhoiniluj")
    public suspend fun instances(`value`: Output>) {
        this.instances = value
    }

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

    /**
     * @param values The Amazon EC2 instances on which your SAP application is running.
     */
    @JvmName("ltjinfevjrncgpag")
    public suspend fun instances(values: List>) {
        this.instances = Output.all(values)
    }

    /**
     * @param value The SAP instance number of the application.
     */
    @JvmName("mlufnplhgjcbpkwq")
    public suspend fun sapInstanceNumber(`value`: Output) {
        this.sapInstanceNumber = value
    }

    /**
     * @param value The System ID of the application.
     */
    @JvmName("pcujyfephxxbbyhq")
    public suspend fun sid(`value`: Output) {
        this.sid = value
    }

    /**
     * @param value The tags of a SystemsManagerSAP application.
     */
    @JvmName("nxpxlvfylskqhcua")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags of a SystemsManagerSAP application.
     */
    @JvmName("bmpbrlftojbfgtvw")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

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

    /**
     * @param value The type of the application.
     */
    @JvmName("gepjerfxhwhegwen")
    public suspend fun applicationType(`value`: ApplicationType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationType = mapped
    }

    /**
     * @param value The credentials of the SAP application.
     */
    @JvmName("tdpgwnfhokewgoxq")
    public suspend fun credentials(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.credentials = mapped
    }

    /**
     * @param argument The credentials of the SAP application.
     */
    @JvmName("yoncnjbrtqbluejo")
    public suspend fun credentials(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ApplicationCredentialArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.credentials = mapped
    }

    /**
     * @param argument The credentials of the SAP application.
     */
    @JvmName("yventteoddgxkcso")
    public suspend fun credentials(vararg argument: suspend ApplicationCredentialArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ApplicationCredentialArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.credentials = mapped
    }

    /**
     * @param argument The credentials of the SAP application.
     */
    @JvmName("elxnpggoffhqbpnn")
    public suspend fun credentials(argument: suspend ApplicationCredentialArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ApplicationCredentialArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.credentials = mapped
    }

    /**
     * @param values The credentials of the SAP application.
     */
    @JvmName("ciekwsvwyxfkyyxo")
    public suspend fun credentials(vararg values: ApplicationCredentialArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.credentials = mapped
    }

    /**
     * @param value The ARN of the SAP HANA database
     */
    @JvmName("uitiuqwnhljtuurt")
    public suspend fun databaseArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.databaseArn = mapped
    }

    /**
     * @param value The Amazon EC2 instances on which your SAP application is running.
     */
    @JvmName("feegtiydrijbdwcw")
    public suspend fun instances(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instances = mapped
    }

    /**
     * @param values The Amazon EC2 instances on which your SAP application is running.
     */
    @JvmName("kfhyjhlfoqsepgoh")
    public suspend fun instances(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.instances = mapped
    }

    /**
     * @param value The SAP instance number of the application.
     */
    @JvmName("kaqnbpxvovtgcoog")
    public suspend fun sapInstanceNumber(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sapInstanceNumber = mapped
    }

    /**
     * @param value The System ID of the application.
     */
    @JvmName("vmhpojcvjlxbgvwu")
    public suspend fun sid(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sid = mapped
    }

    /**
     * @param value The tags of a SystemsManagerSAP application.
     */
    @JvmName("ksfvqjwrvgfpluyn")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags of a SystemsManagerSAP application.
     */
    @JvmName("hfcjsyydhprgfcnk")
    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 The tags of a SystemsManagerSAP application.
     */
    @JvmName("mqfkcnonvmprergf")
    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 The tags of a SystemsManagerSAP application.
     */
    @JvmName("dhfcgihubxjwueyq")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags of a SystemsManagerSAP application.
     */
    @JvmName("abjcfceuqutvkfay")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ApplicationArgs = ApplicationArgs(
        applicationId = applicationId,
        applicationType = applicationType,
        credentials = credentials,
        databaseArn = databaseArn,
        instances = instances,
        sapInstanceNumber = sapInstanceNumber,
        sid = sid,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy