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

com.pulumi.awsnative.ssmcontacts.kotlin.inputs.PlanTargetsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ssmcontacts.kotlin.inputs

import com.pulumi.awsnative.ssmcontacts.inputs.PlanTargetsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The contacts or contact methods that the escalation plan or engagement plan is engaging.
 * @property channelTargetInfo Information about the contact channel that Incident Manager engages.
 * @property contactTargetInfo Information about the contact that Incident Manager engages.
 */
public data class PlanTargetsArgs(
    public val channelTargetInfo: Output? = null,
    public val contactTargetInfo: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ssmcontacts.inputs.PlanTargetsArgs =
        com.pulumi.awsnative.ssmcontacts.inputs.PlanTargetsArgs.builder()
            .channelTargetInfo(channelTargetInfo?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .contactTargetInfo(
                contactTargetInfo?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [PlanTargetsArgs].
 */
@PulumiTagMarker
public class PlanTargetsArgsBuilder internal constructor() {
    private var channelTargetInfo: Output? = null

    private var contactTargetInfo: Output? = null

    /**
     * @param value Information about the contact channel that Incident Manager engages.
     */
    @JvmName("xmsxmsfwytmdwcln")
    public suspend fun channelTargetInfo(`value`: Output) {
        this.channelTargetInfo = value
    }

    /**
     * @param value Information about the contact that Incident Manager engages.
     */
    @JvmName("fkqxtnbnbexnnmwg")
    public suspend fun contactTargetInfo(`value`: Output) {
        this.contactTargetInfo = value
    }

    /**
     * @param value Information about the contact channel that Incident Manager engages.
     */
    @JvmName("bfvdjbmeunxkknmn")
    public suspend fun channelTargetInfo(`value`: PlanChannelTargetInfoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.channelTargetInfo = mapped
    }

    /**
     * @param argument Information about the contact channel that Incident Manager engages.
     */
    @JvmName("afrimraksmqblsgo")
    public suspend fun channelTargetInfo(argument: suspend PlanChannelTargetInfoArgsBuilder.() -> Unit) {
        val toBeMapped = PlanChannelTargetInfoArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.channelTargetInfo = mapped
    }

    /**
     * @param value Information about the contact that Incident Manager engages.
     */
    @JvmName("cvjglprvjxptmovx")
    public suspend fun contactTargetInfo(`value`: PlanContactTargetInfoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contactTargetInfo = mapped
    }

    /**
     * @param argument Information about the contact that Incident Manager engages.
     */
    @JvmName("uuuvggdyedtqhxpw")
    public suspend fun contactTargetInfo(argument: suspend PlanContactTargetInfoArgsBuilder.() -> Unit) {
        val toBeMapped = PlanContactTargetInfoArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.contactTargetInfo = mapped
    }

    internal fun build(): PlanTargetsArgs = PlanTargetsArgs(
        channelTargetInfo = channelTargetInfo,
        contactTargetInfo = contactTargetInfo,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy