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

com.pulumi.gcp.edgecontainer.kotlin.inputs.ClusterMaintenancePolicyWindowArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.edgecontainer.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.edgecontainer.inputs.ClusterMaintenancePolicyWindowArgs.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.jvm.JvmName

/**
 *
 * @property recurringWindow Represents an arbitrary window of time that recurs.
 * Structure is documented below.
 */
public data class ClusterMaintenancePolicyWindowArgs(
    public val recurringWindow: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.edgecontainer.inputs.ClusterMaintenancePolicyWindowArgs =
        com.pulumi.gcp.edgecontainer.inputs.ClusterMaintenancePolicyWindowArgs.builder()
            .recurringWindow(
                recurringWindow.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ClusterMaintenancePolicyWindowArgs].
 */
@PulumiTagMarker
public class ClusterMaintenancePolicyWindowArgsBuilder internal constructor() {
    private var recurringWindow: Output? = null

    /**
     * @param value Represents an arbitrary window of time that recurs.
     * Structure is documented below.
     */
    @JvmName("tkxlfkmdylyohgwn")
    public suspend fun recurringWindow(`value`: Output) {
        this.recurringWindow = value
    }

    /**
     * @param value Represents an arbitrary window of time that recurs.
     * Structure is documented below.
     */
    @JvmName("vkcnwegqpwddiypw")
    public suspend fun recurringWindow(`value`: ClusterMaintenancePolicyWindowRecurringWindowArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.recurringWindow = mapped
    }

    /**
     * @param argument Represents an arbitrary window of time that recurs.
     * Structure is documented below.
     */
    @JvmName("glavtjfdxoerwebi")
    public suspend fun recurringWindow(argument: suspend ClusterMaintenancePolicyWindowRecurringWindowArgsBuilder.() -> Unit) {
        val toBeMapped = ClusterMaintenancePolicyWindowRecurringWindowArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.recurringWindow = mapped
    }

    internal fun build(): ClusterMaintenancePolicyWindowArgs = ClusterMaintenancePolicyWindowArgs(
        recurringWindow = recurringWindow ?: throw PulumiNullFieldException("recurringWindow"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy