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

com.pulumi.gcp.gkebackup.kotlin.inputs.BackupPlanBackupScheduleRpoConfigArgs.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.gkebackup.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkebackup.inputs.BackupPlanBackupScheduleRpoConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property exclusionWindows User specified time windows during which backup can NOT happen for this BackupPlan.
 * Backups should start and finish outside of any given exclusion window. Note: backup
 * jobs will be scheduled to start and finish outside the duration of the window as
 * much as possible, but running jobs will not get canceled when it runs into the window.
 * All the time and date values in exclusionWindows entry in the API are in UTC. We
 * only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no
 * restriction on number of single occurrence windows.
 * Structure is documented below.
 * @property targetRpoMinutes Defines the target RPO for the BackupPlan in minutes, which means the target
 * maximum data loss in time that is acceptable for this BackupPlan. This must be
 * at least 60, i.e., 1 hour, and at most 86400, i.e., 60 days.
 */
public data class BackupPlanBackupScheduleRpoConfigArgs(
    public val exclusionWindows: Output>? =
        null,
    public val targetRpoMinutes: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkebackup.inputs.BackupPlanBackupScheduleRpoConfigArgs =
        com.pulumi.gcp.gkebackup.inputs.BackupPlanBackupScheduleRpoConfigArgs.builder()
            .exclusionWindows(
                exclusionWindows?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .targetRpoMinutes(targetRpoMinutes.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BackupPlanBackupScheduleRpoConfigArgs].
 */
@PulumiTagMarker
public class BackupPlanBackupScheduleRpoConfigArgsBuilder internal constructor() {
    private var exclusionWindows: Output>? =
        null

    private var targetRpoMinutes: Output? = null

    /**
     * @param value User specified time windows during which backup can NOT happen for this BackupPlan.
     * Backups should start and finish outside of any given exclusion window. Note: backup
     * jobs will be scheduled to start and finish outside the duration of the window as
     * much as possible, but running jobs will not get canceled when it runs into the window.
     * All the time and date values in exclusionWindows entry in the API are in UTC. We
     * only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no
     * restriction on number of single occurrence windows.
     * Structure is documented below.
     */
    @JvmName("titjnvujmuanfcyd")
    public suspend fun exclusionWindows(`value`: Output>) {
        this.exclusionWindows = value
    }

    @JvmName("ydsuhsckgncnctix")
    public suspend fun exclusionWindows(vararg values: Output) {
        this.exclusionWindows = Output.all(values.asList())
    }

    /**
     * @param values User specified time windows during which backup can NOT happen for this BackupPlan.
     * Backups should start and finish outside of any given exclusion window. Note: backup
     * jobs will be scheduled to start and finish outside the duration of the window as
     * much as possible, but running jobs will not get canceled when it runs into the window.
     * All the time and date values in exclusionWindows entry in the API are in UTC. We
     * only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no
     * restriction on number of single occurrence windows.
     * Structure is documented below.
     */
    @JvmName("ybfnarrusfksrotg")
    public suspend fun exclusionWindows(values: List>) {
        this.exclusionWindows = Output.all(values)
    }

    /**
     * @param value Defines the target RPO for the BackupPlan in minutes, which means the target
     * maximum data loss in time that is acceptable for this BackupPlan. This must be
     * at least 60, i.e., 1 hour, and at most 86400, i.e., 60 days.
     */
    @JvmName("ncwaqfidwbmjbkgg")
    public suspend fun targetRpoMinutes(`value`: Output) {
        this.targetRpoMinutes = value
    }

    /**
     * @param value User specified time windows during which backup can NOT happen for this BackupPlan.
     * Backups should start and finish outside of any given exclusion window. Note: backup
     * jobs will be scheduled to start and finish outside the duration of the window as
     * much as possible, but running jobs will not get canceled when it runs into the window.
     * All the time and date values in exclusionWindows entry in the API are in UTC. We
     * only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no
     * restriction on number of single occurrence windows.
     * Structure is documented below.
     */
    @JvmName("elsjjlaybdbpnivn")
    public suspend fun exclusionWindows(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exclusionWindows = mapped
    }

    /**
     * @param argument User specified time windows during which backup can NOT happen for this BackupPlan.
     * Backups should start and finish outside of any given exclusion window. Note: backup
     * jobs will be scheduled to start and finish outside the duration of the window as
     * much as possible, but running jobs will not get canceled when it runs into the window.
     * All the time and date values in exclusionWindows entry in the API are in UTC. We
     * only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no
     * restriction on number of single occurrence windows.
     * Structure is documented below.
     */
    @JvmName("ikfbuvlrocmxtftm")
    public suspend fun exclusionWindows(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BackupPlanBackupScheduleRpoConfigExclusionWindowArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.exclusionWindows = mapped
    }

    /**
     * @param argument User specified time windows during which backup can NOT happen for this BackupPlan.
     * Backups should start and finish outside of any given exclusion window. Note: backup
     * jobs will be scheduled to start and finish outside the duration of the window as
     * much as possible, but running jobs will not get canceled when it runs into the window.
     * All the time and date values in exclusionWindows entry in the API are in UTC. We
     * only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no
     * restriction on number of single occurrence windows.
     * Structure is documented below.
     */
    @JvmName("mqmuclhynabouvoh")
    public suspend fun exclusionWindows(vararg argument: suspend BackupPlanBackupScheduleRpoConfigExclusionWindowArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BackupPlanBackupScheduleRpoConfigExclusionWindowArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.exclusionWindows = mapped
    }

    /**
     * @param argument User specified time windows during which backup can NOT happen for this BackupPlan.
     * Backups should start and finish outside of any given exclusion window. Note: backup
     * jobs will be scheduled to start and finish outside the duration of the window as
     * much as possible, but running jobs will not get canceled when it runs into the window.
     * All the time and date values in exclusionWindows entry in the API are in UTC. We
     * only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no
     * restriction on number of single occurrence windows.
     * Structure is documented below.
     */
    @JvmName("ffyovgqrftetlnik")
    public suspend fun exclusionWindows(argument: suspend BackupPlanBackupScheduleRpoConfigExclusionWindowArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                BackupPlanBackupScheduleRpoConfigExclusionWindowArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.exclusionWindows = mapped
    }

    /**
     * @param values User specified time windows during which backup can NOT happen for this BackupPlan.
     * Backups should start and finish outside of any given exclusion window. Note: backup
     * jobs will be scheduled to start and finish outside the duration of the window as
     * much as possible, but running jobs will not get canceled when it runs into the window.
     * All the time and date values in exclusionWindows entry in the API are in UTC. We
     * only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no
     * restriction on number of single occurrence windows.
     * Structure is documented below.
     */
    @JvmName("dnkvqudkgjwnsqdt")
    public suspend fun exclusionWindows(vararg values: BackupPlanBackupScheduleRpoConfigExclusionWindowArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.exclusionWindows = mapped
    }

    /**
     * @param value Defines the target RPO for the BackupPlan in minutes, which means the target
     * maximum data loss in time that is acceptable for this BackupPlan. This must be
     * at least 60, i.e., 1 hour, and at most 86400, i.e., 60 days.
     */
    @JvmName("avxpsjoqhyiovgxf")
    public suspend fun targetRpoMinutes(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetRpoMinutes = mapped
    }

    internal fun build(): BackupPlanBackupScheduleRpoConfigArgs =
        BackupPlanBackupScheduleRpoConfigArgs(
            exclusionWindows = exclusionWindows,
            targetRpoMinutes = targetRpoMinutes ?: throw PulumiNullFieldException("targetRpoMinutes"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy