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("bqhhccvoqksemjjk")
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("mikleqdwlmwosyla")
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("yncrbdwgnpogovtb")
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("dvauatpmfrnbigvk")
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("spnvocmvhfxdixkh")
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("intlrgiyantqynnu")
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("scpnunfcljoinhyx")
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("jinrartwtxpqsjgs")
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("jfclsivdtelbxcpv")
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("leyggmdoshukenot")
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("klkahxurmnueetql")
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