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

com.pulumi.gcp.compute.kotlin.inputs.ResourcePolicySnapshotSchedulePolicySnapshotPropertiesArgs.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.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.ResourcePolicySnapshotSchedulePolicySnapshotPropertiesArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property chainName Creates the new snapshot in the snapshot chain labeled with the
 * specified name. The chain name must be 1-63 characters long and comply
 * with RFC1035.
 * @property guestFlush Whether to perform a 'guest aware' snapshot.
 * @property labels A set of key-value pairs.
 * @property storageLocations Cloud Storage bucket location to store the auto snapshot
 * (regional or multi-regional)
 */
public data class ResourcePolicySnapshotSchedulePolicySnapshotPropertiesArgs(
    public val chainName: Output? = null,
    public val guestFlush: Output? = null,
    public val labels: Output>? = null,
    public val storageLocations: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.ResourcePolicySnapshotSchedulePolicySnapshotPropertiesArgs =
        com.pulumi.gcp.compute.inputs.ResourcePolicySnapshotSchedulePolicySnapshotPropertiesArgs.builder()
            .chainName(chainName?.applyValue({ args0 -> args0 }))
            .guestFlush(guestFlush?.applyValue({ args0 -> args0 }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .storageLocations(storageLocations?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ResourcePolicySnapshotSchedulePolicySnapshotPropertiesArgs].
 */
@PulumiTagMarker
public class ResourcePolicySnapshotSchedulePolicySnapshotPropertiesArgsBuilder internal constructor() {
    private var chainName: Output? = null

    private var guestFlush: Output? = null

    private var labels: Output>? = null

    private var storageLocations: Output? = null

    /**
     * @param value Creates the new snapshot in the snapshot chain labeled with the
     * specified name. The chain name must be 1-63 characters long and comply
     * with RFC1035.
     */
    @JvmName("iuktfclfyguwdxju")
    public suspend fun chainName(`value`: Output) {
        this.chainName = value
    }

    /**
     * @param value Whether to perform a 'guest aware' snapshot.
     */
    @JvmName("xdnsweclraqcslnf")
    public suspend fun guestFlush(`value`: Output) {
        this.guestFlush = value
    }

    /**
     * @param value A set of key-value pairs.
     */
    @JvmName("qriwbapjtjaiaefx")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value Cloud Storage bucket location to store the auto snapshot
     * (regional or multi-regional)
     */
    @JvmName("aerrpxdfffmomuqv")
    public suspend fun storageLocations(`value`: Output) {
        this.storageLocations = value
    }

    /**
     * @param value Creates the new snapshot in the snapshot chain labeled with the
     * specified name. The chain name must be 1-63 characters long and comply
     * with RFC1035.
     */
    @JvmName("sxcikcltdoialhlf")
    public suspend fun chainName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.chainName = mapped
    }

    /**
     * @param value Whether to perform a 'guest aware' snapshot.
     */
    @JvmName("evqthgcojvkulhcj")
    public suspend fun guestFlush(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.guestFlush = mapped
    }

    /**
     * @param value A set of key-value pairs.
     */
    @JvmName("hrpmfckswodahrus")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values A set of key-value pairs.
     */
    @JvmName("pycwfrrrrwprxtuu")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value Cloud Storage bucket location to store the auto snapshot
     * (regional or multi-regional)
     */
    @JvmName("mubrhaonvrovjrmx")
    public suspend fun storageLocations(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageLocations = mapped
    }

    internal fun build(): ResourcePolicySnapshotSchedulePolicySnapshotPropertiesArgs =
        ResourcePolicySnapshotSchedulePolicySnapshotPropertiesArgs(
            chainName = chainName,
            guestFlush = guestFlush,
            labels = labels,
            storageLocations = storageLocations,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy