
com.pulumi.awsnative.devicefarm.kotlin.outputs.DevicePoolRule.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.devicefarm.kotlin.outputs
import com.pulumi.awsnative.devicefarm.kotlin.enums.DevicePoolRuleAttribute
import com.pulumi.awsnative.devicefarm.kotlin.enums.DevicePoolRuleOperator
import kotlin.String
import kotlin.Suppress
/**
* 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 DevicePoolRule(
public val attribute: DevicePoolRuleAttribute? = null,
public val `operator`: DevicePoolRuleOperator? = null,
public val `value`: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.devicefarm.outputs.DevicePoolRule): DevicePoolRule = DevicePoolRule(
attribute = javaType.attribute().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.devicefarm.kotlin.enums.DevicePoolRuleAttribute.Companion.toKotlin(args0)
})
}).orElse(null),
`operator` = javaType.`operator`().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.devicefarm.kotlin.enums.DevicePoolRuleOperator.Companion.toKotlin(args0)
})
}).orElse(null),
`value` = javaType.`value`().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy