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

com.pulumi.awsnative.ce.kotlin.inputs.AnomalySubscriptionSubscriberArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ce.kotlin.inputs

import com.pulumi.awsnative.ce.inputs.AnomalySubscriptionSubscriberArgs.builder
import com.pulumi.awsnative.ce.kotlin.enums.AnomalySubscriptionSubscriberStatus
import com.pulumi.awsnative.ce.kotlin.enums.AnomalySubscriptionSubscriberType
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 address The email address or SNS Topic Amazon Resource Name (ARN), depending on the `Type` .
 * @property status Indicates if the subscriber accepts the notifications.
 * @property type The notification delivery channel.
 */
public data class AnomalySubscriptionSubscriberArgs(
    public val address: Output,
    public val status: Output? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ce.inputs.AnomalySubscriptionSubscriberArgs =
        com.pulumi.awsnative.ce.inputs.AnomalySubscriptionSubscriberArgs.builder()
            .address(address.applyValue({ args0 -> args0 }))
            .status(status?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [AnomalySubscriptionSubscriberArgs].
 */
@PulumiTagMarker
public class AnomalySubscriptionSubscriberArgsBuilder internal constructor() {
    private var address: Output? = null

    private var status: Output? = null

    private var type: Output? = null

    /**
     * @param value The email address or SNS Topic Amazon Resource Name (ARN), depending on the `Type` .
     */
    @JvmName("nfqotnglyqyjjlwj")
    public suspend fun address(`value`: Output) {
        this.address = value
    }

    /**
     * @param value Indicates if the subscriber accepts the notifications.
     */
    @JvmName("meytdjeqlqunisbj")
    public suspend fun status(`value`: Output) {
        this.status = value
    }

    /**
     * @param value The notification delivery channel.
     */
    @JvmName("gpprdahyemlbybrj")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The email address or SNS Topic Amazon Resource Name (ARN), depending on the `Type` .
     */
    @JvmName("ptirolmxahiwaatt")
    public suspend fun address(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.address = mapped
    }

    /**
     * @param value Indicates if the subscriber accepts the notifications.
     */
    @JvmName("hrpmetnxuxtlvqal")
    public suspend fun status(`value`: AnomalySubscriptionSubscriberStatus?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value The notification delivery channel.
     */
    @JvmName("vhqeqcaxfmbhvcrh")
    public suspend fun type(`value`: AnomalySubscriptionSubscriberType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): AnomalySubscriptionSubscriberArgs = AnomalySubscriptionSubscriberArgs(
        address = address ?: throw PulumiNullFieldException("address"),
        status = status,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy