
com.pulumi.awsnative.kinesisanalyticsv2.kotlin.inputs.ApplicationCodeConfigurationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.kinesisanalyticsv2.kotlin.inputs
import com.pulumi.awsnative.kinesisanalyticsv2.inputs.ApplicationCodeConfigurationArgs.builder
import com.pulumi.awsnative.kinesisanalyticsv2.kotlin.enums.ApplicationCodeConfigurationCodeContentType
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 com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Describes code configuration for an application.
* @property codeContent The location and type of the application code.
* @property codeContentType Specifies whether the code content is in text or zip format.
*/
public data class ApplicationCodeConfigurationArgs(
public val codeContent: Output,
public val codeContentType: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.kinesisanalyticsv2.inputs.ApplicationCodeConfigurationArgs =
com.pulumi.awsnative.kinesisanalyticsv2.inputs.ApplicationCodeConfigurationArgs.builder()
.codeContent(codeContent.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.codeContentType(
codeContentType.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [ApplicationCodeConfigurationArgs].
*/
@PulumiTagMarker
public class ApplicationCodeConfigurationArgsBuilder internal constructor() {
private var codeContent: Output? = null
private var codeContentType: Output? = null
/**
* @param value The location and type of the application code.
*/
@JvmName("knlevcyxecanephd")
public suspend fun codeContent(`value`: Output) {
this.codeContent = value
}
/**
* @param value Specifies whether the code content is in text or zip format.
*/
@JvmName("anwwhasqahpqfxyb")
public suspend fun codeContentType(`value`: Output) {
this.codeContentType = value
}
/**
* @param value The location and type of the application code.
*/
@JvmName("eccojolxqlqmsusg")
public suspend fun codeContent(`value`: ApplicationCodeContentArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.codeContent = mapped
}
/**
* @param argument The location and type of the application code.
*/
@JvmName("eagskinxmrjlnbww")
public suspend fun codeContent(argument: suspend ApplicationCodeContentArgsBuilder.() -> Unit) {
val toBeMapped = ApplicationCodeContentArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.codeContent = mapped
}
/**
* @param value Specifies whether the code content is in text or zip format.
*/
@JvmName("ailsvafdfyktkspn")
public suspend fun codeContentType(`value`: ApplicationCodeConfigurationCodeContentType) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.codeContentType = mapped
}
internal fun build(): ApplicationCodeConfigurationArgs = ApplicationCodeConfigurationArgs(
codeContent = codeContent ?: throw PulumiNullFieldException("codeContent"),
codeContentType = codeContentType ?: throw PulumiNullFieldException("codeContentType"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy