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

com.pulumi.gcp.monitoring.kotlin.inputs.UptimeCheckConfigHttpCheckAcceptedResponseStatusCodeArgs.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.UptimeCheckConfigHttpCheckAcceptedResponseStatusCodeArgs.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 statusClass A class of status codes to accept.
 * Possible values are: `STATUS_CLASS_1XX`, `STATUS_CLASS_2XX`, `STATUS_CLASS_3XX`, `STATUS_CLASS_4XX`, `STATUS_CLASS_5XX`, `STATUS_CLASS_ANY`.
 * @property statusValue A status code to accept.
 */
public data class UptimeCheckConfigHttpCheckAcceptedResponseStatusCodeArgs(
    public val statusClass: Output? = null,
    public val statusValue: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.monitoring.inputs.UptimeCheckConfigHttpCheckAcceptedResponseStatusCodeArgs =
        com.pulumi.gcp.monitoring.inputs.UptimeCheckConfigHttpCheckAcceptedResponseStatusCodeArgs.builder()
            .statusClass(statusClass?.applyValue({ args0 -> args0 }))
            .statusValue(statusValue?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [UptimeCheckConfigHttpCheckAcceptedResponseStatusCodeArgs].
 */
@PulumiTagMarker
public class UptimeCheckConfigHttpCheckAcceptedResponseStatusCodeArgsBuilder internal constructor() {
    private var statusClass: Output? = null

    private var statusValue: Output? = null

    /**
     * @param value A class of status codes to accept.
     * Possible values are: `STATUS_CLASS_1XX`, `STATUS_CLASS_2XX`, `STATUS_CLASS_3XX`, `STATUS_CLASS_4XX`, `STATUS_CLASS_5XX`, `STATUS_CLASS_ANY`.
     */
    @JvmName("gtxnbglbmphuvlrq")
    public suspend fun statusClass(`value`: Output) {
        this.statusClass = value
    }

    /**
     * @param value A status code to accept.
     */
    @JvmName("jwatahpojagenkuu")
    public suspend fun statusValue(`value`: Output) {
        this.statusValue = value
    }

    /**
     * @param value A class of status codes to accept.
     * Possible values are: `STATUS_CLASS_1XX`, `STATUS_CLASS_2XX`, `STATUS_CLASS_3XX`, `STATUS_CLASS_4XX`, `STATUS_CLASS_5XX`, `STATUS_CLASS_ANY`.
     */
    @JvmName("lgopitrukikjkman")
    public suspend fun statusClass(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.statusClass = mapped
    }

    /**
     * @param value A status code to accept.
     */
    @JvmName("qmwvsoieiuxxkxuw")
    public suspend fun statusValue(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.statusValue = mapped
    }

    internal fun build(): UptimeCheckConfigHttpCheckAcceptedResponseStatusCodeArgs =
        UptimeCheckConfigHttpCheckAcceptedResponseStatusCodeArgs(
            statusClass = statusClass,
            statusValue = statusValue,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy