com.pulumi.aws.kinesisanalyticsv2.kotlin.inputs.ApplicationApplicationConfigurationApplicationCodeConfigurationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.kinesisanalyticsv2.kotlin.inputs
import com.pulumi.aws.kinesisanalyticsv2.inputs.ApplicationApplicationConfigurationApplicationCodeConfigurationArgs.builder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property codeContent The location and type of the application code.
* @property codeContentType Specifies whether the code content is in text or zip format. Valid values: `PLAINTEXT`, `ZIPFILE`.
*/
public data class ApplicationApplicationConfigurationApplicationCodeConfigurationArgs(
public val codeContent: Output? =
null,
public val codeContentType: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.kinesisanalyticsv2.inputs.ApplicationApplicationConfigurationApplicationCodeConfigurationArgs =
com.pulumi.aws.kinesisanalyticsv2.inputs.ApplicationApplicationConfigurationApplicationCodeConfigurationArgs.builder()
.codeContent(codeContent?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.codeContentType(codeContentType.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ApplicationApplicationConfigurationApplicationCodeConfigurationArgs].
*/
@PulumiTagMarker
public class ApplicationApplicationConfigurationApplicationCodeConfigurationArgsBuilder internal constructor() {
private var codeContent:
Output? = null
private var codeContentType: Output? = null
/**
* @param value The location and type of the application code.
*/
@JvmName("enffypyasnvngpmu")
public suspend fun codeContent(`value`: Output) {
this.codeContent = value
}
/**
* @param value Specifies whether the code content is in text or zip format. Valid values: `PLAINTEXT`, `ZIPFILE`.
*/
@JvmName("tglagfxtrmvfrkjo")
public suspend fun codeContentType(`value`: Output) {
this.codeContentType = value
}
/**
* @param value The location and type of the application code.
*/
@JvmName("rqtroycioddloteo")
public suspend fun codeContent(`value`: ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContentArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.codeContent = mapped
}
/**
* @param argument The location and type of the application code.
*/
@JvmName("alstvabbisfrqlpj")
public suspend fun codeContent(argument: suspend ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContentArgsBuilder.() -> Unit) {
val toBeMapped =
ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContentArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.codeContent = mapped
}
/**
* @param value Specifies whether the code content is in text or zip format. Valid values: `PLAINTEXT`, `ZIPFILE`.
*/
@JvmName("kvlwcgnygsavblxa")
public suspend fun codeContentType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.codeContentType = mapped
}
internal fun build(): ApplicationApplicationConfigurationApplicationCodeConfigurationArgs =
ApplicationApplicationConfigurationApplicationCodeConfigurationArgs(
codeContent = codeContent,
codeContentType = codeContentType ?: throw PulumiNullFieldException("codeContentType"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy