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

com.pulumi.alicloud.log.kotlin.inputs.AlertPolicyConfigurationArgs.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: 3.62.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.alicloud.log.kotlin.inputs

import com.pulumi.alicloud.log.inputs.AlertPolicyConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property actionPolicyId Action Policy Id.
 * @property alertPolicyId Alert Policy Id.
 * @property repeatInterval Repeat interval used by alert policy, 1h, 1m.e.g.
 */
public data class AlertPolicyConfigurationArgs(
    public val actionPolicyId: Output? = null,
    public val alertPolicyId: Output,
    public val repeatInterval: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.alicloud.log.inputs.AlertPolicyConfigurationArgs =
        com.pulumi.alicloud.log.inputs.AlertPolicyConfigurationArgs.builder()
            .actionPolicyId(actionPolicyId?.applyValue({ args0 -> args0 }))
            .alertPolicyId(alertPolicyId.applyValue({ args0 -> args0 }))
            .repeatInterval(repeatInterval.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AlertPolicyConfigurationArgs].
 */
@PulumiTagMarker
public class AlertPolicyConfigurationArgsBuilder internal constructor() {
    private var actionPolicyId: Output? = null

    private var alertPolicyId: Output? = null

    private var repeatInterval: Output? = null

    /**
     * @param value Action Policy Id.
     */
    @JvmName("hudqwicpmuloeofi")
    public suspend fun actionPolicyId(`value`: Output) {
        this.actionPolicyId = value
    }

    /**
     * @param value Alert Policy Id.
     */
    @JvmName("eqjpworduiynkhfg")
    public suspend fun alertPolicyId(`value`: Output) {
        this.alertPolicyId = value
    }

    /**
     * @param value Repeat interval used by alert policy, 1h, 1m.e.g.
     */
    @JvmName("mydpuerugnbcbswg")
    public suspend fun repeatInterval(`value`: Output) {
        this.repeatInterval = value
    }

    /**
     * @param value Action Policy Id.
     */
    @JvmName("djnyyactbgfavdwg")
    public suspend fun actionPolicyId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.actionPolicyId = mapped
    }

    /**
     * @param value Alert Policy Id.
     */
    @JvmName("ewevgnkqnpgamkst")
    public suspend fun alertPolicyId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.alertPolicyId = mapped
    }

    /**
     * @param value Repeat interval used by alert policy, 1h, 1m.e.g.
     */
    @JvmName("vvubkojwryvshkqs")
    public suspend fun repeatInterval(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.repeatInterval = mapped
    }

    internal fun build(): AlertPolicyConfigurationArgs = AlertPolicyConfigurationArgs(
        actionPolicyId = actionPolicyId,
        alertPolicyId = alertPolicyId ?: throw PulumiNullFieldException("alertPolicyId"),
        repeatInterval = repeatInterval ?: throw PulumiNullFieldException("repeatInterval"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy