com.pulumi.gcp.netapp.kotlin.inputs.VolumeSnapshotPolicyMonthlyScheduleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.netapp.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.netapp.inputs.VolumeSnapshotPolicyMonthlyScheduleArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property daysOfMonth Set the day or days of the month to make a snapshot (1-31). Accepts a comma separated number of days. Defaults to '1'.
* @property hour Set the hour to create the snapshot (0-23), defaults to midnight (0).
* @property minute Set the minute of the hour to create the snapshot (0-59), defaults to the top of the hour (0).
* @property snapshotsToKeep The maximum number of snapshots to keep for the monthly schedule
*/
public data class VolumeSnapshotPolicyMonthlyScheduleArgs(
public val daysOfMonth: Output? = null,
public val hour: Output? = null,
public val minute: Output? = null,
public val snapshotsToKeep: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.netapp.inputs.VolumeSnapshotPolicyMonthlyScheduleArgs =
com.pulumi.gcp.netapp.inputs.VolumeSnapshotPolicyMonthlyScheduleArgs.builder()
.daysOfMonth(daysOfMonth?.applyValue({ args0 -> args0 }))
.hour(hour?.applyValue({ args0 -> args0 }))
.minute(minute?.applyValue({ args0 -> args0 }))
.snapshotsToKeep(snapshotsToKeep.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [VolumeSnapshotPolicyMonthlyScheduleArgs].
*/
@PulumiTagMarker
public class VolumeSnapshotPolicyMonthlyScheduleArgsBuilder internal constructor() {
private var daysOfMonth: Output? = null
private var hour: Output? = null
private var minute: Output? = null
private var snapshotsToKeep: Output? = null
/**
* @param value Set the day or days of the month to make a snapshot (1-31). Accepts a comma separated number of days. Defaults to '1'.
*/
@JvmName("darlfvdtrdsyiios")
public suspend fun daysOfMonth(`value`: Output) {
this.daysOfMonth = value
}
/**
* @param value Set the hour to create the snapshot (0-23), defaults to midnight (0).
*/
@JvmName("wvfpvnkgaoyybrbc")
public suspend fun hour(`value`: Output) {
this.hour = value
}
/**
* @param value Set the minute of the hour to create the snapshot (0-59), defaults to the top of the hour (0).
*/
@JvmName("xyffonovpaggqync")
public suspend fun minute(`value`: Output) {
this.minute = value
}
/**
* @param value The maximum number of snapshots to keep for the monthly schedule
*/
@JvmName("jcsokjevivsgbtjt")
public suspend fun snapshotsToKeep(`value`: Output) {
this.snapshotsToKeep = value
}
/**
* @param value Set the day or days of the month to make a snapshot (1-31). Accepts a comma separated number of days. Defaults to '1'.
*/
@JvmName("abmpwhniwvtcbgde")
public suspend fun daysOfMonth(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.daysOfMonth = mapped
}
/**
* @param value Set the hour to create the snapshot (0-23), defaults to midnight (0).
*/
@JvmName("mluedrqvsuatfves")
public suspend fun hour(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.hour = mapped
}
/**
* @param value Set the minute of the hour to create the snapshot (0-59), defaults to the top of the hour (0).
*/
@JvmName("guuhsrlvtcjftasx")
public suspend fun minute(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.minute = mapped
}
/**
* @param value The maximum number of snapshots to keep for the monthly schedule
*/
@JvmName("xrbljiqnbxclqfdr")
public suspend fun snapshotsToKeep(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.snapshotsToKeep = mapped
}
internal fun build(): VolumeSnapshotPolicyMonthlyScheduleArgs =
VolumeSnapshotPolicyMonthlyScheduleArgs(
daysOfMonth = daysOfMonth,
hour = hour,
minute = minute,
snapshotsToKeep = snapshotsToKeep ?: throw PulumiNullFieldException("snapshotsToKeep"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy