All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.iotoperations.kotlin.inputs.SelfCheckArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.iotoperations.kotlin.inputs

import com.pulumi.azurenative.iotoperations.inputs.SelfCheckArgs.builder
import com.pulumi.azurenative.iotoperations.kotlin.enums.OperationalMode
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 kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Broker Diagnostic Self check properties
 * @property intervalSeconds The self check interval.
 * @property mode The toggle to enable/disable self check.
 * @property timeoutSeconds The timeout for self check.
 */
public data class SelfCheckArgs(
    public val intervalSeconds: Output? = null,
    public val mode: Output>? = null,
    public val timeoutSeconds: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.iotoperations.inputs.SelfCheckArgs =
        com.pulumi.azurenative.iotoperations.inputs.SelfCheckArgs.builder()
            .intervalSeconds(intervalSeconds?.applyValue({ args0 -> args0 }))
            .mode(
                mode?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .timeoutSeconds(timeoutSeconds?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SelfCheckArgs].
 */
@PulumiTagMarker
public class SelfCheckArgsBuilder internal constructor() {
    private var intervalSeconds: Output? = null

    private var mode: Output>? = null

    private var timeoutSeconds: Output? = null

    /**
     * @param value The self check interval.
     */
    @JvmName("ovuwwjuwvgksncdy")
    public suspend fun intervalSeconds(`value`: Output) {
        this.intervalSeconds = value
    }

    /**
     * @param value The toggle to enable/disable self check.
     */
    @JvmName("lpleggbjnbgnnxvd")
    public suspend fun mode(`value`: Output>) {
        this.mode = value
    }

    /**
     * @param value The timeout for self check.
     */
    @JvmName("ojhhpdwmqqtqyiui")
    public suspend fun timeoutSeconds(`value`: Output) {
        this.timeoutSeconds = value
    }

    /**
     * @param value The self check interval.
     */
    @JvmName("ndhscmqispcheaju")
    public suspend fun intervalSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.intervalSeconds = mapped
    }

    /**
     * @param value The toggle to enable/disable self check.
     */
    @JvmName("yctyjgruqluaamds")
    public suspend fun mode(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    /**
     * @param value The toggle to enable/disable self check.
     */
    @JvmName("jgpdlkxaoxpxymqu")
    public fun mode(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    /**
     * @param value The toggle to enable/disable self check.
     */
    @JvmName("hlgcftqliocifqvh")
    public fun mode(`value`: OperationalMode) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    /**
     * @param value The timeout for self check.
     */
    @JvmName("rupoiykpanibhqfa")
    public suspend fun timeoutSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeoutSeconds = mapped
    }

    internal fun build(): SelfCheckArgs = SelfCheckArgs(
        intervalSeconds = intervalSeconds,
        mode = mode,
        timeoutSeconds = timeoutSeconds,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy