com.pulumi.azurenative.elastic.kotlin.inputs.MonitorPropertiesArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.elastic.kotlin.inputs
import com.pulumi.azurenative.elastic.inputs.MonitorPropertiesArgs.builder
import com.pulumi.azurenative.elastic.kotlin.enums.MonitoringStatus
import com.pulumi.azurenative.elastic.kotlin.enums.ProvisioningState
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.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Properties specific to the monitor resource.
* @property generateApiKey Flag to determine if User API Key has to be generated and shared.
* @property monitoringStatus Flag specifying if the resource monitoring is enabled or disabled.
* @property provisioningState Provisioning state of the monitor resource.
* @property userInfo User information.
* @property version Version of elastic of the monitor resource
*/
public data class MonitorPropertiesArgs(
public val generateApiKey: Output? = null,
public val monitoringStatus: Output>? = null,
public val provisioningState: Output>? = null,
public val userInfo: Output? = null,
public val version: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.elastic.inputs.MonitorPropertiesArgs =
com.pulumi.azurenative.elastic.inputs.MonitorPropertiesArgs.builder()
.generateApiKey(generateApiKey?.applyValue({ args0 -> args0 }))
.monitoringStatus(
monitoringStatus?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.provisioningState(
provisioningState?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.userInfo(userInfo?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.version(version?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [MonitorPropertiesArgs].
*/
@PulumiTagMarker
public class MonitorPropertiesArgsBuilder internal constructor() {
private var generateApiKey: Output? = null
private var monitoringStatus: Output>? = null
private var provisioningState: Output>? = null
private var userInfo: Output? = null
private var version: Output? = null
/**
* @param value Flag to determine if User API Key has to be generated and shared.
*/
@JvmName("wrnsrudgeilqygyh")
public suspend fun generateApiKey(`value`: Output) {
this.generateApiKey = value
}
/**
* @param value Flag specifying if the resource monitoring is enabled or disabled.
*/
@JvmName("bwqbjwwnakkhnqcm")
public suspend fun monitoringStatus(`value`: Output>) {
this.monitoringStatus = value
}
/**
* @param value Provisioning state of the monitor resource.
*/
@JvmName("ajdpnnvklhqculou")
public suspend fun provisioningState(`value`: Output>) {
this.provisioningState = value
}
/**
* @param value User information.
*/
@JvmName("japxuniuscernbyd")
public suspend fun userInfo(`value`: Output) {
this.userInfo = value
}
/**
* @param value Version of elastic of the monitor resource
*/
@JvmName("rjrvgoimchhlqgyt")
public suspend fun version(`value`: Output) {
this.version = value
}
/**
* @param value Flag to determine if User API Key has to be generated and shared.
*/
@JvmName("mvpjdqurqigqkohn")
public suspend fun generateApiKey(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.generateApiKey = mapped
}
/**
* @param value Flag specifying if the resource monitoring is enabled or disabled.
*/
@JvmName("hcekmbxkfminuntx")
public suspend fun monitoringStatus(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.monitoringStatus = mapped
}
/**
* @param value Flag specifying if the resource monitoring is enabled or disabled.
*/
@JvmName("skwymqwjuqjcrceg")
public fun monitoringStatus(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.monitoringStatus = mapped
}
/**
* @param value Flag specifying if the resource monitoring is enabled or disabled.
*/
@JvmName("yspbhtkypfrikttm")
public fun monitoringStatus(`value`: MonitoringStatus) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.monitoringStatus = mapped
}
/**
* @param value Provisioning state of the monitor resource.
*/
@JvmName("tehxmquavvditjqr")
public suspend fun provisioningState(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.provisioningState = mapped
}
/**
* @param value Provisioning state of the monitor resource.
*/
@JvmName("xcfsrfwcdfljskwd")
public fun provisioningState(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.provisioningState = mapped
}
/**
* @param value Provisioning state of the monitor resource.
*/
@JvmName("timqmcowsnbwlkxd")
public fun provisioningState(`value`: ProvisioningState) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.provisioningState = mapped
}
/**
* @param value User information.
*/
@JvmName("tlvqexmoqtrbaamj")
public suspend fun userInfo(`value`: UserInfoArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.userInfo = mapped
}
/**
* @param argument User information.
*/
@JvmName("kfuwvxfynsdctrmb")
public suspend fun userInfo(argument: suspend UserInfoArgsBuilder.() -> Unit) {
val toBeMapped = UserInfoArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.userInfo = mapped
}
/**
* @param value Version of elastic of the monitor resource
*/
@JvmName("mgvpcoumulbloscw")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.version = mapped
}
internal fun build(): MonitorPropertiesArgs = MonitorPropertiesArgs(
generateApiKey = generateApiKey,
monitoringStatus = monitoringStatus,
provisioningState = provisioningState,
userInfo = userInfo,
version = version,
)
}