com.pulumi.gcp.monitoring.kotlin.inputs.UptimeCheckConfigTcpCheckArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.monitoring.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.monitoring.inputs.UptimeCheckConfigTcpCheckArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property pingConfig Contains information needed to add pings to a TCP check.
* Structure is documented below.
* @property port The port to the page to run the check against. Will be combined with host (specified within the `monitored_resource`) to construct the full URL.
*/
public data class UptimeCheckConfigTcpCheckArgs(
public val pingConfig: Output? = null,
public val port: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.monitoring.inputs.UptimeCheckConfigTcpCheckArgs =
com.pulumi.gcp.monitoring.inputs.UptimeCheckConfigTcpCheckArgs.builder()
.pingConfig(pingConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.port(port.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [UptimeCheckConfigTcpCheckArgs].
*/
@PulumiTagMarker
public class UptimeCheckConfigTcpCheckArgsBuilder internal constructor() {
private var pingConfig: Output? = null
private var port: Output? = null
/**
* @param value Contains information needed to add pings to a TCP check.
* Structure is documented below.
*/
@JvmName("ssmspecgexliwywi")
public suspend fun pingConfig(`value`: Output) {
this.pingConfig = value
}
/**
* @param value The port to the page to run the check against. Will be combined with host (specified within the `monitored_resource`) to construct the full URL.
*/
@JvmName("guwcftvthslvegxk")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value Contains information needed to add pings to a TCP check.
* Structure is documented below.
*/
@JvmName("kbjtqjifttewfwof")
public suspend fun pingConfig(`value`: UptimeCheckConfigTcpCheckPingConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.pingConfig = mapped
}
/**
* @param argument Contains information needed to add pings to a TCP check.
* Structure is documented below.
*/
@JvmName("pohegdalpxxdmrhk")
public suspend fun pingConfig(argument: suspend UptimeCheckConfigTcpCheckPingConfigArgsBuilder.() -> Unit) {
val toBeMapped = UptimeCheckConfigTcpCheckPingConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.pingConfig = mapped
}
/**
* @param value The port to the page to run the check against. Will be combined with host (specified within the `monitored_resource`) to construct the full URL.
*/
@JvmName("xovveuewaxvvbldf")
public suspend fun port(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.port = mapped
}
internal fun build(): UptimeCheckConfigTcpCheckArgs = UptimeCheckConfigTcpCheckArgs(
pingConfig = pingConfig,
port = port ?: throw PulumiNullFieldException("port"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy