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

com.pulumi.gcp.monitoring.kotlin.inputs.UptimeCheckConfigTcpCheckPingConfigArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.monitoring.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.monitoring.inputs.UptimeCheckConfigTcpCheckPingConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property pingsCount Number of ICMP pings. A maximum of 3 ICMP pings is currently supported.
 */
public data class UptimeCheckConfigTcpCheckPingConfigArgs(
    public val pingsCount: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.monitoring.inputs.UptimeCheckConfigTcpCheckPingConfigArgs =
        com.pulumi.gcp.monitoring.inputs.UptimeCheckConfigTcpCheckPingConfigArgs.builder()
            .pingsCount(pingsCount.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [UptimeCheckConfigTcpCheckPingConfigArgs].
 */
@PulumiTagMarker
public class UptimeCheckConfigTcpCheckPingConfigArgsBuilder internal constructor() {
    private var pingsCount: Output? = null

    /**
     * @param value Number of ICMP pings. A maximum of 3 ICMP pings is currently supported.
     */
    @JvmName("ckdjitwihtmesunc")
    public suspend fun pingsCount(`value`: Output) {
        this.pingsCount = value
    }

    /**
     * @param value Number of ICMP pings. A maximum of 3 ICMP pings is currently supported.
     */
    @JvmName("xsaaawjuwqlswhlp")
    public suspend fun pingsCount(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.pingsCount = mapped
    }

    internal fun build(): UptimeCheckConfigTcpCheckPingConfigArgs =
        UptimeCheckConfigTcpCheckPingConfigArgs(
            pingsCount = pingsCount ?: throw PulumiNullFieldException("pingsCount"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy