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

com.pulumi.aws.opensearch.kotlin.inputs.GetDomainOffPeakWindowOptionsOffPeakWindow.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.opensearch.kotlin.inputs

import com.pulumi.aws.opensearch.inputs.GetDomainOffPeakWindowOptionsOffPeakWindow.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property windowStartTimes 10h window for updates
 */
public data class GetDomainOffPeakWindowOptionsOffPeakWindow(
    public val windowStartTimes: List,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.opensearch.inputs.GetDomainOffPeakWindowOptionsOffPeakWindow = com.pulumi.aws.opensearch.inputs.GetDomainOffPeakWindowOptionsOffPeakWindow.builder()
        .windowStartTimes(
            windowStartTimes.let({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        ).build()
}

/**
 * Builder for [GetDomainOffPeakWindowOptionsOffPeakWindow].
 */
@PulumiTagMarker
public class GetDomainOffPeakWindowOptionsOffPeakWindowBuilder internal constructor() {
    private var windowStartTimes: List? =
        null

    /**
     * @param value 10h window for updates
     */
    @JvmName("cryihwqsicphgxdm")
    public suspend fun windowStartTimes(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.windowStartTimes = mapped
    }

    /**
     * @param argument 10h window for updates
     */
    @JvmName("aruqqgfevtvnbhqo")
    public suspend fun windowStartTimes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GetDomainOffPeakWindowOptionsOffPeakWindowWindowStartTimeBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = toBeMapped
        this.windowStartTimes = mapped
    }

    /**
     * @param argument 10h window for updates
     */
    @JvmName("ukbsiudtnvisogvb")
    public suspend fun windowStartTimes(vararg argument: suspend GetDomainOffPeakWindowOptionsOffPeakWindowWindowStartTimeBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GetDomainOffPeakWindowOptionsOffPeakWindowWindowStartTimeBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = toBeMapped
        this.windowStartTimes = mapped
    }

    /**
     * @param argument 10h window for updates
     */
    @JvmName("orlxhduedhssxdjb")
    public suspend fun windowStartTimes(argument: suspend GetDomainOffPeakWindowOptionsOffPeakWindowWindowStartTimeBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                GetDomainOffPeakWindowOptionsOffPeakWindowWindowStartTimeBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = toBeMapped
        this.windowStartTimes = mapped
    }

    /**
     * @param values 10h window for updates
     */
    @JvmName("grbqfgbdjlcuykfo")
    public suspend fun windowStartTimes(vararg values: GetDomainOffPeakWindowOptionsOffPeakWindowWindowStartTime) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.windowStartTimes = mapped
    }

    internal fun build(): GetDomainOffPeakWindowOptionsOffPeakWindow =
        GetDomainOffPeakWindowOptionsOffPeakWindow(
            windowStartTimes = windowStartTimes ?: throw PulumiNullFieldException("windowStartTimes"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy