
com.pulumi.azurenative.costmanagement.kotlin.inputs.CostAllocationRulePropertiesArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.costmanagement.kotlin.inputs
import com.pulumi.azurenative.costmanagement.inputs.CostAllocationRulePropertiesArgs.builder
import com.pulumi.azurenative.costmanagement.kotlin.enums.RuleStatus
import com.pulumi.core.Either
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
/**
* The properties of a cost allocation rule
* @property description Description of a cost allocation rule.
* @property details Resource information for the cost allocation rule
* @property status Status of the rule
*/
public data class CostAllocationRulePropertiesArgs(
public val description: Output? = null,
public val details: Output,
public val status: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.costmanagement.inputs.CostAllocationRulePropertiesArgs =
com.pulumi.azurenative.costmanagement.inputs.CostAllocationRulePropertiesArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.details(details.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.status(
status.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [CostAllocationRulePropertiesArgs].
*/
@PulumiTagMarker
public class CostAllocationRulePropertiesArgsBuilder internal constructor() {
private var description: Output? = null
private var details: Output? = null
private var status: Output>? = null
/**
* @param value Description of a cost allocation rule.
*/
@JvmName("aengpubvrvwfkbte")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Resource information for the cost allocation rule
*/
@JvmName("winobrabbmmubqyx")
public suspend fun details(`value`: Output) {
this.details = value
}
/**
* @param value Status of the rule
*/
@JvmName("cfpmkvbudcnogjkx")
public suspend fun status(`value`: Output>) {
this.status = value
}
/**
* @param value Description of a cost allocation rule.
*/
@JvmName("vvvojovmblqltntt")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value Resource information for the cost allocation rule
*/
@JvmName("tlerabxnfktyxvrn")
public suspend fun details(`value`: CostAllocationRuleDetailsArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.details = mapped
}
/**
* @param argument Resource information for the cost allocation rule
*/
@JvmName("icgbdntedyblcuvn")
public suspend fun details(argument: suspend CostAllocationRuleDetailsArgsBuilder.() -> Unit) {
val toBeMapped = CostAllocationRuleDetailsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.details = mapped
}
/**
* @param value Status of the rule
*/
@JvmName("hmoacduhulfjgksn")
public suspend fun status(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.status = mapped
}
/**
* @param value Status of the rule
*/
@JvmName("pwgahawuwiylisui")
public fun status(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.status = mapped
}
/**
* @param value Status of the rule
*/
@JvmName("grfqrsmuiegnqmlv")
public fun status(`value`: RuleStatus) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.status = mapped
}
internal fun build(): CostAllocationRulePropertiesArgs = CostAllocationRulePropertiesArgs(
description = description,
details = details ?: throw PulumiNullFieldException("details"),
status = status ?: throw PulumiNullFieldException("status"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy