com.pulumi.aws.outposts.kotlin.inputs.GetAssetsPlainArgs.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.outposts.kotlin.inputs
import com.pulumi.aws.outposts.inputs.GetAssetsPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getAssets.
* @property arn Outpost ARN.
* @property hostIdFilters Filters by list of Host IDs of a Dedicated Host.
* @property statusIdFilters Filters by list of state status. Valid values: "ACTIVE", "RETIRING".
*/
public data class GetAssetsPlainArgs(
public val arn: String,
public val hostIdFilters: List? = null,
public val statusIdFilters: List? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.outposts.inputs.GetAssetsPlainArgs =
com.pulumi.aws.outposts.inputs.GetAssetsPlainArgs.builder()
.arn(arn.let({ args0 -> args0 }))
.hostIdFilters(hostIdFilters?.let({ args0 -> args0.map({ args0 -> args0 }) }))
.statusIdFilters(statusIdFilters?.let({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [GetAssetsPlainArgs].
*/
@PulumiTagMarker
public class GetAssetsPlainArgsBuilder internal constructor() {
private var arn: String? = null
private var hostIdFilters: List? = null
private var statusIdFilters: List? = null
/**
* @param value Outpost ARN.
*/
@JvmName("tqvbblqfloobahxs")
public suspend fun arn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.arn = mapped
}
/**
* @param value Filters by list of Host IDs of a Dedicated Host.
*/
@JvmName("jtxskoerhginjqrf")
public suspend fun hostIdFilters(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.hostIdFilters = mapped
}
/**
* @param values Filters by list of Host IDs of a Dedicated Host.
*/
@JvmName("swgmffxecdxwruql")
public suspend fun hostIdFilters(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.hostIdFilters = mapped
}
/**
* @param value Filters by list of state status. Valid values: "ACTIVE", "RETIRING".
*/
@JvmName("kijngkqxshlbfjvr")
public suspend fun statusIdFilters(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.statusIdFilters = mapped
}
/**
* @param values Filters by list of state status. Valid values: "ACTIVE", "RETIRING".
*/
@JvmName("hkuurtfjwtbcixid")
public suspend fun statusIdFilters(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.statusIdFilters = mapped
}
internal fun build(): GetAssetsPlainArgs = GetAssetsPlainArgs(
arn = arn ?: throw PulumiNullFieldException("arn"),
hostIdFilters = hostIdFilters,
statusIdFilters = statusIdFilters,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy