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

com.pulumi.gcp.container.kotlin.inputs.ClusterMaintenancePolicyDailyMaintenanceWindowArgs.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.ClusterMaintenancePolicyDailyMaintenanceWindowArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property duration Duration of the time window, automatically chosen to be
 * smallest possible in the given scenario.
 * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) format "PTnHnMnS".
 * @property startTime
 */
public data class ClusterMaintenancePolicyDailyMaintenanceWindowArgs(
    public val duration: Output? = null,
    public val startTime: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.ClusterMaintenancePolicyDailyMaintenanceWindowArgs =
        com.pulumi.gcp.container.inputs.ClusterMaintenancePolicyDailyMaintenanceWindowArgs.builder()
            .duration(duration?.applyValue({ args0 -> args0 }))
            .startTime(startTime.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterMaintenancePolicyDailyMaintenanceWindowArgs].
 */
@PulumiTagMarker
public class ClusterMaintenancePolicyDailyMaintenanceWindowArgsBuilder internal constructor() {
    private var duration: Output? = null

    private var startTime: Output? = null

    /**
     * @param value Duration of the time window, automatically chosen to be
     * smallest possible in the given scenario.
     * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) format "PTnHnMnS".
     */
    @JvmName("aistabhryntiromp")
    public suspend fun duration(`value`: Output) {
        this.duration = value
    }

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

    /**
     * @param value Duration of the time window, automatically chosen to be
     * smallest possible in the given scenario.
     * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) format "PTnHnMnS".
     */
    @JvmName("vbefgsluvjhopwij")
    public suspend fun duration(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.duration = mapped
    }

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

    internal fun build(): ClusterMaintenancePolicyDailyMaintenanceWindowArgs =
        ClusterMaintenancePolicyDailyMaintenanceWindowArgs(
            duration = duration,
            startTime = startTime ?: throw PulumiNullFieldException("startTime"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy