![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.kinesisanalyticsv2.kotlin.inputs.ApplicationCodeConfigurationArgs.kt Maven / Gradle / Ivy
@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("kalbxhqpkltbyuih")
public suspend fun codeContent(`value`: Output) {
this.codeContent = value
}
/**
* @param value Specifies whether the code content is in text or zip format.
*/
@JvmName("wutilplkijgjralc")
public suspend fun codeContentType(`value`: Output) {
this.codeContentType = value
}
/**
* @param value The location and type of the application code.
*/
@JvmName("wdkcoendgomfsjma")
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("sawjmxnaofmntbfw")
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("mchgabjqwmoednwf")
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