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

com.pulumi.gcp.gkebackup.kotlin.outputs.BackupPlanBackupScheduleRpoConfigExclusionWindow.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.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property daily The exclusion window occurs every day if set to "True".
 * Specifying this field to "False" is an error.
 * Only one of singleOccurrenceDate, daily and daysOfWeek may be set.
 * @property daysOfWeek The exclusion window occurs on these days of each week in UTC.
 * Only one of singleOccurrenceDate, daily and daysOfWeek may be set.
 * Structure is documented below.
 * @property duration Specifies duration of the window in seconds with up to nine fractional digits,
 * terminated by 's'. Example: "3.5s". Restrictions for duration based on the
 * recurrence type to allow some time for backup to happen:
 * - single_occurrence_date:  no restriction
 * - daily window: duration < 24 hours
 * - weekly window:
 * - days of week includes all seven days of a week: duration < 24 hours
 * - all other weekly window: duration < 168 hours (i.e., 24 * 7 hours)
 * @property singleOccurrenceDate No recurrence. The exclusion window occurs only once and on this date in UTC.
 * Only one of singleOccurrenceDate, daily and daysOfWeek may be set.
 * Structure is documented below.
 * @property startTime Specifies the start time of the window using time of the day in UTC.
 * Structure is documented below.
 */
public data class BackupPlanBackupScheduleRpoConfigExclusionWindow(
    public val daily: Boolean? = null,
    public val daysOfWeek: BackupPlanBackupScheduleRpoConfigExclusionWindowDaysOfWeek? = null,
    public val duration: String,
    public val singleOccurrenceDate: BackupPlanBackupScheduleRpoConfigExclusionWindowSingleOccurrenceDate? = null,
    public val startTime: BackupPlanBackupScheduleRpoConfigExclusionWindowStartTime,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.gkebackup.outputs.BackupPlanBackupScheduleRpoConfigExclusionWindow): BackupPlanBackupScheduleRpoConfigExclusionWindow =
            BackupPlanBackupScheduleRpoConfigExclusionWindow(
                daily = javaType.daily().map({ args0 -> args0 }).orElse(null),
                daysOfWeek = javaType.daysOfWeek().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.gkebackup.kotlin.outputs.BackupPlanBackupScheduleRpoConfigExclusionWindowDaysOfWeek.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                duration = javaType.duration(),
                singleOccurrenceDate = javaType.singleOccurrenceDate().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.gkebackup.kotlin.outputs.BackupPlanBackupScheduleRpoConfigExclusionWindowSingleOccurrenceDate.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                startTime = javaType.startTime().let({ args0 ->
                    com.pulumi.gcp.gkebackup.kotlin.outputs.BackupPlanBackupScheduleRpoConfigExclusionWindowStartTime.Companion.toKotlin(args0)
                }),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy