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

com.pulumi.gcp.container.kotlin.inputs.ClusterMaintenancePolicyMaintenanceExclusionArgs.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.container.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.ClusterMaintenancePolicyMaintenanceExclusionArgs.builder
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.jvm.JvmName

/**
 *
 * @property endTime
 * @property exclusionName
 * @property exclusionOptions MaintenanceExclusionOptions provides maintenance exclusion related options.
 * @property startTime
 */
public data class ClusterMaintenancePolicyMaintenanceExclusionArgs(
    public val endTime: Output,
    public val exclusionName: Output,
    public val exclusionOptions: Output? = null,
    public val startTime: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.ClusterMaintenancePolicyMaintenanceExclusionArgs =
        com.pulumi.gcp.container.inputs.ClusterMaintenancePolicyMaintenanceExclusionArgs.builder()
            .endTime(endTime.applyValue({ args0 -> args0 }))
            .exclusionName(exclusionName.applyValue({ args0 -> args0 }))
            .exclusionOptions(exclusionOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .startTime(startTime.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterMaintenancePolicyMaintenanceExclusionArgs].
 */
@PulumiTagMarker
public class ClusterMaintenancePolicyMaintenanceExclusionArgsBuilder internal constructor() {
    private var endTime: Output? = null

    private var exclusionName: Output? = null

    private var exclusionOptions:
        Output? = null

    private var startTime: Output? = null

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

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

    /**
     * @param value MaintenanceExclusionOptions provides maintenance exclusion related options.
     */
    @JvmName("gbgtoreqtpjkocoa")
    public suspend fun exclusionOptions(`value`: Output) {
        this.exclusionOptions = value
    }

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

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

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

    /**
     * @param value MaintenanceExclusionOptions provides maintenance exclusion related options.
     */
    @JvmName("anqiwpljkhhqtvvh")
    public suspend fun exclusionOptions(`value`: ClusterMaintenancePolicyMaintenanceExclusionExclusionOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exclusionOptions = mapped
    }

    /**
     * @param argument MaintenanceExclusionOptions provides maintenance exclusion related options.
     */
    @JvmName("hntgdpuwilfhnssp")
    public suspend fun exclusionOptions(argument: suspend ClusterMaintenancePolicyMaintenanceExclusionExclusionOptionsArgsBuilder.() -> Unit) {
        val toBeMapped =
            ClusterMaintenancePolicyMaintenanceExclusionExclusionOptionsArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.exclusionOptions = mapped
    }

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

    internal fun build(): ClusterMaintenancePolicyMaintenanceExclusionArgs =
        ClusterMaintenancePolicyMaintenanceExclusionArgs(
            endTime = endTime ?: throw PulumiNullFieldException("endTime"),
            exclusionName = exclusionName ?: throw PulumiNullFieldException("exclusionName"),
            exclusionOptions = exclusionOptions,
            startTime = startTime ?: throw PulumiNullFieldException("startTime"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy