com.pulumi.gcp.netapp.kotlin.inputs.VolumeSnapshotPolicyHourlyScheduleArgs.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.VolumeSnapshotPolicyHourlyScheduleArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @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 hourly schedule.
*/
public data class VolumeSnapshotPolicyHourlyScheduleArgs(
public val minute: Output? = null,
public val snapshotsToKeep: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.netapp.inputs.VolumeSnapshotPolicyHourlyScheduleArgs =
com.pulumi.gcp.netapp.inputs.VolumeSnapshotPolicyHourlyScheduleArgs.builder()
.minute(minute?.applyValue({ args0 -> args0 }))
.snapshotsToKeep(snapshotsToKeep.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [VolumeSnapshotPolicyHourlyScheduleArgs].
*/
@PulumiTagMarker
public class VolumeSnapshotPolicyHourlyScheduleArgsBuilder internal constructor() {
private var minute: Output? = null
private var snapshotsToKeep: Output? = null
/**
* @param value Set the minute of the hour to create the snapshot (0-59), defaults to the top of the hour (0).
*/
@JvmName("cywedweyrerkecns")
public suspend fun minute(`value`: Output) {
this.minute = value
}
/**
* @param value The maximum number of snapshots to keep for the hourly schedule.
*/
@JvmName("gemxdyutonsjxjej")
public suspend fun snapshotsToKeep(`value`: Output) {
this.snapshotsToKeep = value
}
/**
* @param value Set the minute of the hour to create the snapshot (0-59), defaults to the top of the hour (0).
*/
@JvmName("swovhgaxtxqmpgad")
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 hourly schedule.
*/
@JvmName("rnuhvaqfkwehiuph")
public suspend fun snapshotsToKeep(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.snapshotsToKeep = mapped
}
internal fun build(): VolumeSnapshotPolicyHourlyScheduleArgs =
VolumeSnapshotPolicyHourlyScheduleArgs(
minute = minute,
snapshotsToKeep = snapshotsToKeep ?: throw PulumiNullFieldException("snapshotsToKeep"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy