
com.pulumi.awsnative.devicefarm.kotlin.inputs.DevicePoolRuleArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.devicefarm.kotlin.inputs
import com.pulumi.awsnative.devicefarm.inputs.DevicePoolRuleArgs.builder
import com.pulumi.awsnative.devicefarm.kotlin.enums.DevicePoolRuleAttribute
import com.pulumi.awsnative.devicefarm.kotlin.enums.DevicePoolRuleOperator
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Represents a condition for a device pool.
* @property attribute The rule's stringified attribute.
* @property operator Specifies how Device Farm compares the rule's attribute to the value.
* @property value The rule's value.
*/
public data class DevicePoolRuleArgs(
public val attribute: Output? = null,
public val `operator`: Output? = null,
public val `value`: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.devicefarm.inputs.DevicePoolRuleArgs =
com.pulumi.awsnative.devicefarm.inputs.DevicePoolRuleArgs.builder()
.attribute(attribute?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.`operator`(`operator`?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.`value`(`value`?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DevicePoolRuleArgs].
*/
@PulumiTagMarker
public class DevicePoolRuleArgsBuilder internal constructor() {
private var attribute: Output? = null
private var `operator`: Output? = null
private var `value`: Output? = null
/**
* @param value The rule's stringified attribute.
*/
@JvmName("kptjlthcpoiuwufn")
public suspend fun attribute(`value`: Output) {
this.attribute = value
}
/**
* @param value Specifies how Device Farm compares the rule's attribute to the value.
*/
@JvmName("sqaeshncvlqfugro")
public suspend fun `operator`(`value`: Output) {
this.`operator` = value
}
/**
* @param value The rule's value.
*/
@JvmName("ukqfemdhiryyvbjb")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value The rule's stringified attribute.
*/
@JvmName("kxikjqbtncrtfhmj")
public suspend fun attribute(`value`: DevicePoolRuleAttribute?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.attribute = mapped
}
/**
* @param value Specifies how Device Farm compares the rule's attribute to the value.
*/
@JvmName("kmnlciuqtdcnqroo")
public suspend fun `operator`(`value`: DevicePoolRuleOperator?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`operator` = mapped
}
/**
* @param value The rule's value.
*/
@JvmName("lmjibnouodkhstew")
public suspend fun `value`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): DevicePoolRuleArgs = DevicePoolRuleArgs(
attribute = attribute,
`operator` = `operator`,
`value` = `value`,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy