com.pulumi.aws.auditmanager.kotlin.inputs.GetFrameworkPlainArgs.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.auditmanager.kotlin.inputs
import com.pulumi.aws.auditmanager.inputs.GetFrameworkPlainArgs.builder
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.collections.List
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getFramework.
* @property controlSets
* @property frameworkType
* @property name Name of the framework.
*/
public data class GetFrameworkPlainArgs(
public val controlSets: List? = null,
public val frameworkType: String,
public val name: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.auditmanager.inputs.GetFrameworkPlainArgs =
com.pulumi.aws.auditmanager.inputs.GetFrameworkPlainArgs.builder()
.controlSets(
controlSets?.let({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.frameworkType(frameworkType.let({ args0 -> args0 }))
.name(name.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetFrameworkPlainArgs].
*/
@PulumiTagMarker
public class GetFrameworkPlainArgsBuilder internal constructor() {
private var controlSets: List? = null
private var frameworkType: String? = null
private var name: String? = null
/**
* @param value
*/
@JvmName("wjabbpwiaestglgh")
public suspend fun controlSets(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.controlSets = mapped
}
/**
* @param argument
*/
@JvmName("vlhkdxrvomefmfxw")
public suspend fun controlSets(argument: List Unit>) {
val toBeMapped = argument.toList().map {
GetFrameworkControlSetBuilder().applySuspend {
it()
}.build()
}
val mapped = toBeMapped
this.controlSets = mapped
}
/**
* @param argument
*/
@JvmName("xyxikhpbdygeisdi")
public suspend fun controlSets(vararg argument: suspend GetFrameworkControlSetBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
GetFrameworkControlSetBuilder().applySuspend {
it()
}.build()
}
val mapped = toBeMapped
this.controlSets = mapped
}
/**
* @param argument
*/
@JvmName("djhoownrmhciilut")
public suspend fun controlSets(argument: suspend GetFrameworkControlSetBuilder.() -> Unit) {
val toBeMapped = listOf(GetFrameworkControlSetBuilder().applySuspend { argument() }.build())
val mapped = toBeMapped
this.controlSets = mapped
}
/**
* @param values
*/
@JvmName("plkepeonfvhwgqtn")
public suspend fun controlSets(vararg values: GetFrameworkControlSet) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.controlSets = mapped
}
/**
* @param value
*/
@JvmName("dargsjltvnwpsxrp")
public suspend fun frameworkType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.frameworkType = mapped
}
/**
* @param value Name of the framework.
*/
@JvmName("uxsnonoysgmnosnu")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.name = mapped
}
internal fun build(): GetFrameworkPlainArgs = GetFrameworkPlainArgs(
controlSets = controlSets,
frameworkType = frameworkType ?: throw PulumiNullFieldException("frameworkType"),
name = name ?: throw PulumiNullFieldException("name"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy