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

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

package com.pulumi.gcp.sql.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsDenyMaintenancePeriodArgs.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 endDate "deny maintenance period" end date. If the year of the end date is empty, the year of the start date also must be empty. In this case, it means the no maintenance interval recurs every year. The date is in format yyyy-m-dd (the month is without leading zeros)i.e., 2020-1-01, or 2020-11-01, or mm-dd, i.e., 11-01
 * @property startDate "deny maintenance period" start date. If the year of the start date is empty, the year of the end date also must be empty. In this case, it means the deny maintenance period recurs every year. The date is in format yyyy-m-dd (the month is without leading zeros)i.e., 2020-1-01, or 2020-11-01, or mm-dd, i.e., 11-01
 * @property time Time in UTC when the "deny maintenance period" starts on startDate and ends on endDate. The time is in format: HH:mm:SS, i.e., 00:00:00
 */
public data class DatabaseInstanceSettingsDenyMaintenancePeriodArgs(
    public val endDate: Output,
    public val startDate: Output,
    public val time: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsDenyMaintenancePeriodArgs = com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsDenyMaintenancePeriodArgs.builder()
        .endDate(endDate.applyValue({ args0 -> args0 }))
        .startDate(startDate.applyValue({ args0 -> args0 }))
        .time(time.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DatabaseInstanceSettingsDenyMaintenancePeriodArgs].
 */
@PulumiTagMarker
public class DatabaseInstanceSettingsDenyMaintenancePeriodArgsBuilder internal constructor() {
    private var endDate: Output? = null

    private var startDate: Output? = null

    private var time: Output? = null

    /**
     * @param value "deny maintenance period" end date. If the year of the end date is empty, the year of the start date also must be empty. In this case, it means the no maintenance interval recurs every year. The date is in format yyyy-m-dd (the month is without leading zeros)i.e., 2020-1-01, or 2020-11-01, or mm-dd, i.e., 11-01
     */
    @JvmName("iqpqvnswxcbefwjb")
    public suspend fun endDate(`value`: Output) {
        this.endDate = value
    }

    /**
     * @param value "deny maintenance period" start date. If the year of the start date is empty, the year of the end date also must be empty. In this case, it means the deny maintenance period recurs every year. The date is in format yyyy-m-dd (the month is without leading zeros)i.e., 2020-1-01, or 2020-11-01, or mm-dd, i.e., 11-01
     */
    @JvmName("khqoxujayydekhgi")
    public suspend fun startDate(`value`: Output) {
        this.startDate = value
    }

    /**
     * @param value Time in UTC when the "deny maintenance period" starts on startDate and ends on endDate. The time is in format: HH:mm:SS, i.e., 00:00:00
     */
    @JvmName("mnuayiptpykyftbk")
    public suspend fun time(`value`: Output) {
        this.time = value
    }

    /**
     * @param value "deny maintenance period" end date. If the year of the end date is empty, the year of the start date also must be empty. In this case, it means the no maintenance interval recurs every year. The date is in format yyyy-m-dd (the month is without leading zeros)i.e., 2020-1-01, or 2020-11-01, or mm-dd, i.e., 11-01
     */
    @JvmName("lipptbeetcqeyypc")
    public suspend fun endDate(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.endDate = mapped
    }

    /**
     * @param value "deny maintenance period" start date. If the year of the start date is empty, the year of the end date also must be empty. In this case, it means the deny maintenance period recurs every year. The date is in format yyyy-m-dd (the month is without leading zeros)i.e., 2020-1-01, or 2020-11-01, or mm-dd, i.e., 11-01
     */
    @JvmName("mjwklrlqvtbbdmub")
    public suspend fun startDate(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.startDate = mapped
    }

    /**
     * @param value Time in UTC when the "deny maintenance period" starts on startDate and ends on endDate. The time is in format: HH:mm:SS, i.e., 00:00:00
     */
    @JvmName("frgjxbcjogujuwrr")
    public suspend fun time(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.time = mapped
    }

    internal fun build(): DatabaseInstanceSettingsDenyMaintenancePeriodArgs =
        DatabaseInstanceSettingsDenyMaintenancePeriodArgs(
            endDate = endDate ?: throw PulumiNullFieldException("endDate"),
            startDate = startDate ?: throw PulumiNullFieldException("startDate"),
            time = time ?: throw PulumiNullFieldException("time"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy