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

com.pulumi.aws.ssm.kotlin.inputs.ContactsRotationRecurrenceShiftCoverageArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.ssm.kotlin.inputs

import com.pulumi.aws.ssm.inputs.ContactsRotationRecurrenceShiftCoverageArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property coverageTimes (Required) Information about when an on-call shift begins and ends. See Coverage Times for more details.
 * @property mapBlockKey
 */
public data class ContactsRotationRecurrenceShiftCoverageArgs(
    public val coverageTimes: Output>? =
        null,
    public val mapBlockKey: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.ssm.inputs.ContactsRotationRecurrenceShiftCoverageArgs =
        com.pulumi.aws.ssm.inputs.ContactsRotationRecurrenceShiftCoverageArgs.builder()
            .coverageTimes(
                coverageTimes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .mapBlockKey(mapBlockKey.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ContactsRotationRecurrenceShiftCoverageArgs].
 */
@PulumiTagMarker
public class ContactsRotationRecurrenceShiftCoverageArgsBuilder internal constructor() {
    private var coverageTimes: Output>? =
        null

    private var mapBlockKey: Output? = null

    /**
     * @param value (Required) Information about when an on-call shift begins and ends. See Coverage Times for more details.
     */
    @JvmName("kqeylnjvmifukdcg")
    public suspend fun coverageTimes(`value`: Output>) {
        this.coverageTimes = value
    }

    @JvmName("gmqtjjtqltgmwydo")
    public suspend fun coverageTimes(vararg values: Output) {
        this.coverageTimes = Output.all(values.asList())
    }

    /**
     * @param values (Required) Information about when an on-call shift begins and ends. See Coverage Times for more details.
     */
    @JvmName("xgwpoeuantnalsjx")
    public suspend fun coverageTimes(values: List>) {
        this.coverageTimes = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("gqlrsbdhiahsredk")
    public suspend fun mapBlockKey(`value`: Output) {
        this.mapBlockKey = value
    }

    /**
     * @param value (Required) Information about when an on-call shift begins and ends. See Coverage Times for more details.
     */
    @JvmName("wlvycgsmajusvjis")
    public suspend fun coverageTimes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.coverageTimes = mapped
    }

    /**
     * @param argument (Required) Information about when an on-call shift begins and ends. See Coverage Times for more details.
     */
    @JvmName("mrcgexojtkfmmdva")
    public suspend fun coverageTimes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ContactsRotationRecurrenceShiftCoverageCoverageTimeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.coverageTimes = mapped
    }

    /**
     * @param argument (Required) Information about when an on-call shift begins and ends. See Coverage Times for more details.
     */
    @JvmName("loxvqmpqiwhnbcpb")
    public suspend fun coverageTimes(vararg argument: suspend ContactsRotationRecurrenceShiftCoverageCoverageTimeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ContactsRotationRecurrenceShiftCoverageCoverageTimeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.coverageTimes = mapped
    }

    /**
     * @param argument (Required) Information about when an on-call shift begins and ends. See Coverage Times for more details.
     */
    @JvmName("xrorbxagnmesfcju")
    public suspend fun coverageTimes(argument: suspend ContactsRotationRecurrenceShiftCoverageCoverageTimeArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ContactsRotationRecurrenceShiftCoverageCoverageTimeArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.coverageTimes = mapped
    }

    /**
     * @param values (Required) Information about when an on-call shift begins and ends. See Coverage Times for more details.
     */
    @JvmName("fayvuyhqiccaogkx")
    public suspend fun coverageTimes(vararg values: ContactsRotationRecurrenceShiftCoverageCoverageTimeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.coverageTimes = mapped
    }

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

    internal fun build(): ContactsRotationRecurrenceShiftCoverageArgs =
        ContactsRotationRecurrenceShiftCoverageArgs(
            coverageTimes = coverageTimes,
            mapBlockKey = mapBlockKey ?: throw PulumiNullFieldException("mapBlockKey"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy