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

com.pulumi.gcp.dataproc.kotlin.inputs.MetastoreServiceScheduledBackupArgs.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.dataproc.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataproc.inputs.MetastoreServiceScheduledBackupArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property backupLocation A Cloud Storage URI of a folder, in the format gs:///. A sub-folder  containing backup files will be stored below it.
 * @property cronSchedule The scheduled interval in Cron format, see https://en.wikipedia.org/wiki/Cron The default is empty: scheduled backup is not enabled. Must be specified to enable scheduled backups.
 * @property enabled Defines whether the scheduled backup is enabled. The default value is false.
 * @property timeZone Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. America/Los_Angeles or Africa/Abidjan. If left unspecified, the default is UTC.
 */
public data class MetastoreServiceScheduledBackupArgs(
    public val backupLocation: Output,
    public val cronSchedule: Output? = null,
    public val enabled: Output? = null,
    public val timeZone: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.MetastoreServiceScheduledBackupArgs =
        com.pulumi.gcp.dataproc.inputs.MetastoreServiceScheduledBackupArgs.builder()
            .backupLocation(backupLocation.applyValue({ args0 -> args0 }))
            .cronSchedule(cronSchedule?.applyValue({ args0 -> args0 }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .timeZone(timeZone?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [MetastoreServiceScheduledBackupArgs].
 */
@PulumiTagMarker
public class MetastoreServiceScheduledBackupArgsBuilder internal constructor() {
    private var backupLocation: Output? = null

    private var cronSchedule: Output? = null

    private var enabled: Output? = null

    private var timeZone: Output? = null

    /**
     * @param value A Cloud Storage URI of a folder, in the format gs:///. A sub-folder  containing backup files will be stored below it.
     */
    @JvmName("tpibxcumvbmrfrin")
    public suspend fun backupLocation(`value`: Output) {
        this.backupLocation = value
    }

    /**
     * @param value The scheduled interval in Cron format, see https://en.wikipedia.org/wiki/Cron The default is empty: scheduled backup is not enabled. Must be specified to enable scheduled backups.
     */
    @JvmName("yicroikbxkjuvmbc")
    public suspend fun cronSchedule(`value`: Output) {
        this.cronSchedule = value
    }

    /**
     * @param value Defines whether the scheduled backup is enabled. The default value is false.
     */
    @JvmName("kcwgmvlrtwepddaa")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. America/Los_Angeles or Africa/Abidjan. If left unspecified, the default is UTC.
     */
    @JvmName("oftvdhjhpqflmrux")
    public suspend fun timeZone(`value`: Output) {
        this.timeZone = value
    }

    /**
     * @param value A Cloud Storage URI of a folder, in the format gs:///. A sub-folder  containing backup files will be stored below it.
     */
    @JvmName("iiqraemtfnmhcyrk")
    public suspend fun backupLocation(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.backupLocation = mapped
    }

    /**
     * @param value The scheduled interval in Cron format, see https://en.wikipedia.org/wiki/Cron The default is empty: scheduled backup is not enabled. Must be specified to enable scheduled backups.
     */
    @JvmName("lwpweadhrvemaxuf")
    public suspend fun cronSchedule(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cronSchedule = mapped
    }

    /**
     * @param value Defines whether the scheduled backup is enabled. The default value is false.
     */
    @JvmName("iteyohqvfginhlvk")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. America/Los_Angeles or Africa/Abidjan. If left unspecified, the default is UTC.
     */
    @JvmName("kxgwuiisrjqndvjm")
    public suspend fun timeZone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeZone = mapped
    }

    internal fun build(): MetastoreServiceScheduledBackupArgs = MetastoreServiceScheduledBackupArgs(
        backupLocation = backupLocation ?: throw PulumiNullFieldException("backupLocation"),
        cronSchedule = cronSchedule,
        enabled = enabled,
        timeZone = timeZone,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy