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

com.pulumi.digitalocean.kotlin.inputs.AppSpecServiceHealthCheckArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.digitalocean.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.digitalocean.inputs.AppSpecServiceHealthCheckArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property failureThreshold The number of failed health checks before considered unhealthy.
 * @property httpPath The route path used for the HTTP health check ping.
 * @property initialDelaySeconds The number of seconds to wait before beginning health checks.
 * @property periodSeconds The number of seconds to wait between health checks.
 * @property port The health check will be performed on this port instead of component's HTTP port.
 * @property successThreshold The number of successful health checks before considered healthy.
 * @property timeoutSeconds The number of seconds after which the check times out.
 */
public data class AppSpecServiceHealthCheckArgs(
    public val failureThreshold: Output? = null,
    public val httpPath: Output? = null,
    public val initialDelaySeconds: Output? = null,
    public val periodSeconds: Output? = null,
    public val port: Output? = null,
    public val successThreshold: Output? = null,
    public val timeoutSeconds: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecServiceHealthCheckArgs =
        com.pulumi.digitalocean.inputs.AppSpecServiceHealthCheckArgs.builder()
            .failureThreshold(failureThreshold?.applyValue({ args0 -> args0 }))
            .httpPath(httpPath?.applyValue({ args0 -> args0 }))
            .initialDelaySeconds(initialDelaySeconds?.applyValue({ args0 -> args0 }))
            .periodSeconds(periodSeconds?.applyValue({ args0 -> args0 }))
            .port(port?.applyValue({ args0 -> args0 }))
            .successThreshold(successThreshold?.applyValue({ args0 -> args0 }))
            .timeoutSeconds(timeoutSeconds?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AppSpecServiceHealthCheckArgs].
 */
@PulumiTagMarker
public class AppSpecServiceHealthCheckArgsBuilder internal constructor() {
    private var failureThreshold: Output? = null

    private var httpPath: Output? = null

    private var initialDelaySeconds: Output? = null

    private var periodSeconds: Output? = null

    private var port: Output? = null

    private var successThreshold: Output? = null

    private var timeoutSeconds: Output? = null

    /**
     * @param value The number of failed health checks before considered unhealthy.
     */
    @JvmName("yvkbxvdxxhjmnbeb")
    public suspend fun failureThreshold(`value`: Output) {
        this.failureThreshold = value
    }

    /**
     * @param value The route path used for the HTTP health check ping.
     */
    @JvmName("inffqqxaqmyitftn")
    public suspend fun httpPath(`value`: Output) {
        this.httpPath = value
    }

    /**
     * @param value The number of seconds to wait before beginning health checks.
     */
    @JvmName("gyuuvavmnnabseaf")
    public suspend fun initialDelaySeconds(`value`: Output) {
        this.initialDelaySeconds = value
    }

    /**
     * @param value The number of seconds to wait between health checks.
     */
    @JvmName("fsfxtiqcwcqbweyt")
    public suspend fun periodSeconds(`value`: Output) {
        this.periodSeconds = value
    }

    /**
     * @param value The health check will be performed on this port instead of component's HTTP port.
     */
    @JvmName("qasspkfgdhkghowo")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value The number of successful health checks before considered healthy.
     */
    @JvmName("fdlsudakfkgstnck")
    public suspend fun successThreshold(`value`: Output) {
        this.successThreshold = value
    }

    /**
     * @param value The number of seconds after which the check times out.
     */
    @JvmName("wxqjoailryduntti")
    public suspend fun timeoutSeconds(`value`: Output) {
        this.timeoutSeconds = value
    }

    /**
     * @param value The number of failed health checks before considered unhealthy.
     */
    @JvmName("eqegiymyjblkgaon")
    public suspend fun failureThreshold(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.failureThreshold = mapped
    }

    /**
     * @param value The route path used for the HTTP health check ping.
     */
    @JvmName("ovbcfjkxhaetghnh")
    public suspend fun httpPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.httpPath = mapped
    }

    /**
     * @param value The number of seconds to wait before beginning health checks.
     */
    @JvmName("ewfwphrruewhajwd")
    public suspend fun initialDelaySeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.initialDelaySeconds = mapped
    }

    /**
     * @param value The number of seconds to wait between health checks.
     */
    @JvmName("jcdtxnbobiiwidsa")
    public suspend fun periodSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.periodSeconds = mapped
    }

    /**
     * @param value The health check will be performed on this port instead of component's HTTP port.
     */
    @JvmName("ownhgsmximycgqwa")
    public suspend fun port(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.port = mapped
    }

    /**
     * @param value The number of successful health checks before considered healthy.
     */
    @JvmName("lqfbadumoqhsyheg")
    public suspend fun successThreshold(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.successThreshold = mapped
    }

    /**
     * @param value The number of seconds after which the check times out.
     */
    @JvmName("nqrfqexnxkxycytm")
    public suspend fun timeoutSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeoutSeconds = mapped
    }

    internal fun build(): AppSpecServiceHealthCheckArgs = AppSpecServiceHealthCheckArgs(
        failureThreshold = failureThreshold,
        httpPath = httpPath,
        initialDelaySeconds = initialDelaySeconds,
        periodSeconds = periodSeconds,
        port = port,
        successThreshold = successThreshold,
        timeoutSeconds = timeoutSeconds,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy