com.pulumi.gitlab.kotlin.inputs.GetReleaseAssets.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gitlab-kotlin Show documentation
Show all versions of pulumi-gitlab-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.gitlab.kotlin.inputs
import com.pulumi.gitlab.inputs.GetReleaseAssets.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property count The number of assets for a release
* @property links The links for a release
* @property sources The sources for a release
*/
public data class GetReleaseAssets(
public val count: Int,
public val links: List? = null,
public val sources: List? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gitlab.inputs.GetReleaseAssets =
com.pulumi.gitlab.inputs.GetReleaseAssets.builder()
.count(count.let({ args0 -> args0 }))
.links(links?.let({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.sources(
sources?.let({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [GetReleaseAssets].
*/
@PulumiTagMarker
public class GetReleaseAssetsBuilder internal constructor() {
private var count: Int? = null
private var links: List? = null
private var sources: List? = null
/**
* @param value The number of assets for a release
*/
@JvmName("cgvskjdyligawbjn")
public suspend fun count(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.count = mapped
}
/**
* @param value The links for a release
*/
@JvmName("kjaenquglbnwxket")
public suspend fun links(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.links = mapped
}
/**
* @param argument The links for a release
*/
@JvmName("bmdjicmibqdffiql")
public suspend fun links(argument: List Unit>) {
val toBeMapped = argument.toList().map {
GetReleaseAssetsLinkBuilder().applySuspend {
it()
}.build()
}
val mapped = toBeMapped
this.links = mapped
}
/**
* @param argument The links for a release
*/
@JvmName("ncmfkilumoguhypr")
public suspend fun links(vararg argument: suspend GetReleaseAssetsLinkBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
GetReleaseAssetsLinkBuilder().applySuspend {
it()
}.build()
}
val mapped = toBeMapped
this.links = mapped
}
/**
* @param argument The links for a release
*/
@JvmName("jhgekxohjncxnrch")
public suspend fun links(argument: suspend GetReleaseAssetsLinkBuilder.() -> Unit) {
val toBeMapped = listOf(GetReleaseAssetsLinkBuilder().applySuspend { argument() }.build())
val mapped = toBeMapped
this.links = mapped
}
/**
* @param values The links for a release
*/
@JvmName("vgmmwlheaqfcoxob")
public suspend fun links(vararg values: GetReleaseAssetsLink) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.links = mapped
}
/**
* @param value The sources for a release
*/
@JvmName("iwspkijlbymjlbdg")
public suspend fun sources(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.sources = mapped
}
/**
* @param argument The sources for a release
*/
@JvmName("epjeqrlewikoxcmh")
public suspend fun sources(argument: List Unit>) {
val toBeMapped = argument.toList().map {
GetReleaseAssetsSourceBuilder().applySuspend {
it()
}.build()
}
val mapped = toBeMapped
this.sources = mapped
}
/**
* @param argument The sources for a release
*/
@JvmName("nlrwslhvooywfdfk")
public suspend fun sources(vararg argument: suspend GetReleaseAssetsSourceBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
GetReleaseAssetsSourceBuilder().applySuspend {
it()
}.build()
}
val mapped = toBeMapped
this.sources = mapped
}
/**
* @param argument The sources for a release
*/
@JvmName("taajfrncqmtchvas")
public suspend fun sources(argument: suspend GetReleaseAssetsSourceBuilder.() -> Unit) {
val toBeMapped = listOf(GetReleaseAssetsSourceBuilder().applySuspend { argument() }.build())
val mapped = toBeMapped
this.sources = mapped
}
/**
* @param values The sources for a release
*/
@JvmName("tioecbmsgyjydkgt")
public suspend fun sources(vararg values: GetReleaseAssetsSource) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.sources = mapped
}
internal fun build(): GetReleaseAssets = GetReleaseAssets(
count = count ?: throw PulumiNullFieldException("count"),
links = links,
sources = sources,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy