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

com.pulumi.gcp.compute.kotlin.inputs.InstanceFromTemplateBootDiskInitializeParamsArgs.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.13.1.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.InstanceFromTemplateBootDiskInitializeParamsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property enableConfidentialCompute A flag to enable confidential compute mode on boot disk
 * @property image The image from which this disk was initialised.
 * @property labels A set of key/value label pairs assigned to the disk.
 * @property provisionedIops Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
 * @property provisionedThroughput Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle.
 * @property resourceManagerTags A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
 * @property resourcePolicies A list of self_links of resource policies to attach to the instance's boot disk. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
 * @property size The size of the image in gigabytes.
 * @property storagePool The URL of the storage pool in which the new disk is created
 * @property type The Google Compute Engine disk type. Such as pd-standard, pd-ssd or pd-balanced.
 */
public data class InstanceFromTemplateBootDiskInitializeParamsArgs(
    public val enableConfidentialCompute: Output? = null,
    public val image: Output? = null,
    public val labels: Output>? = null,
    public val provisionedIops: Output? = null,
    public val provisionedThroughput: Output? = null,
    public val resourceManagerTags: Output>? = null,
    public val resourcePolicies: Output? = null,
    public val size: Output? = null,
    public val storagePool: Output? = null,
    public val type: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.InstanceFromTemplateBootDiskInitializeParamsArgs =
        com.pulumi.gcp.compute.inputs.InstanceFromTemplateBootDiskInitializeParamsArgs.builder()
            .enableConfidentialCompute(enableConfidentialCompute?.applyValue({ args0 -> args0 }))
            .image(image?.applyValue({ args0 -> args0 }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .provisionedIops(provisionedIops?.applyValue({ args0 -> args0 }))
            .provisionedThroughput(provisionedThroughput?.applyValue({ args0 -> args0 }))
            .resourceManagerTags(
                resourceManagerTags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .resourcePolicies(resourcePolicies?.applyValue({ args0 -> args0 }))
            .size(size?.applyValue({ args0 -> args0 }))
            .storagePool(storagePool?.applyValue({ args0 -> args0 }))
            .type(type?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceFromTemplateBootDiskInitializeParamsArgs].
 */
@PulumiTagMarker
public class InstanceFromTemplateBootDiskInitializeParamsArgsBuilder internal constructor() {
    private var enableConfidentialCompute: Output? = null

    private var image: Output? = null

    private var labels: Output>? = null

    private var provisionedIops: Output? = null

    private var provisionedThroughput: Output? = null

    private var resourceManagerTags: Output>? = null

    private var resourcePolicies: Output? = null

    private var size: Output? = null

    private var storagePool: Output? = null

    private var type: Output? = null

    /**
     * @param value A flag to enable confidential compute mode on boot disk
     */
    @JvmName("srdnugpxhgqqrxpi")
    public suspend fun enableConfidentialCompute(`value`: Output) {
        this.enableConfidentialCompute = value
    }

    /**
     * @param value The image from which this disk was initialised.
     */
    @JvmName("ptulehvcpvvbemqj")
    public suspend fun image(`value`: Output) {
        this.image = value
    }

    /**
     * @param value A set of key/value label pairs assigned to the disk.
     */
    @JvmName("tycysylmclsdbekv")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
     */
    @JvmName("oiubravphntfqkiv")
    public suspend fun provisionedIops(`value`: Output) {
        this.provisionedIops = value
    }

    /**
     * @param value Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle.
     */
    @JvmName("vvfnkcfpwskrakli")
    public suspend fun provisionedThroughput(`value`: Output) {
        this.provisionedThroughput = value
    }

    /**
     * @param value A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
     */
    @JvmName("lvetdrfyaygiljyl")
    public suspend fun resourceManagerTags(`value`: Output>) {
        this.resourceManagerTags = value
    }

    /**
     * @param value A list of self_links of resource policies to attach to the instance's boot disk. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
     */
    @JvmName("gvjihmvgebmghbxv")
    public suspend fun resourcePolicies(`value`: Output) {
        this.resourcePolicies = value
    }

    /**
     * @param value The size of the image in gigabytes.
     */
    @JvmName("rotncvcpaaccccui")
    public suspend fun size(`value`: Output) {
        this.size = value
    }

    /**
     * @param value The URL of the storage pool in which the new disk is created
     */
    @JvmName("enionaasedlovkya")
    public suspend fun storagePool(`value`: Output) {
        this.storagePool = value
    }

    /**
     * @param value The Google Compute Engine disk type. Such as pd-standard, pd-ssd or pd-balanced.
     */
    @JvmName("pgbgroaxfsbaeott")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value A flag to enable confidential compute mode on boot disk
     */
    @JvmName("wujpodntyobitfac")
    public suspend fun enableConfidentialCompute(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableConfidentialCompute = mapped
    }

    /**
     * @param value The image from which this disk was initialised.
     */
    @JvmName("awkuiwfcijocokkd")
    public suspend fun image(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.image = mapped
    }

    /**
     * @param value A set of key/value label pairs assigned to the disk.
     */
    @JvmName("magscuinvwgtfpyb")
    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 label pairs assigned to the disk.
     */
    @JvmName("srmuhusxobhdqntq")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
     */
    @JvmName("mpvevlcjbolpuceq")
    public suspend fun provisionedIops(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.provisionedIops = mapped
    }

    /**
     * @param value Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle.
     */
    @JvmName("blqernpweqwfymly")
    public suspend fun provisionedThroughput(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.provisionedThroughput = mapped
    }

    /**
     * @param value A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
     */
    @JvmName("uiygfehbjqffhcvn")
    public suspend fun resourceManagerTags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceManagerTags = mapped
    }

    /**
     * @param values A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
     */
    @JvmName("mvlpudckbevwodaq")
    public fun resourceManagerTags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceManagerTags = mapped
    }

    /**
     * @param value A list of self_links of resource policies to attach to the instance's boot disk. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
     */
    @JvmName("byhuvgwaphrixtup")
    public suspend fun resourcePolicies(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourcePolicies = mapped
    }

    /**
     * @param value The size of the image in gigabytes.
     */
    @JvmName("nujdxjodwyqrltsp")
    public suspend fun size(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.size = mapped
    }

    /**
     * @param value The URL of the storage pool in which the new disk is created
     */
    @JvmName("foiuacvcofcpmdno")
    public suspend fun storagePool(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storagePool = mapped
    }

    /**
     * @param value The Google Compute Engine disk type. Such as pd-standard, pd-ssd or pd-balanced.
     */
    @JvmName("fhwepgccfqhkqyhx")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): InstanceFromTemplateBootDiskInitializeParamsArgs =
        InstanceFromTemplateBootDiskInitializeParamsArgs(
            enableConfidentialCompute = enableConfidentialCompute,
            image = image,
            labels = labels,
            provisionedIops = provisionedIops,
            provisionedThroughput = provisionedThroughput,
            resourceManagerTags = resourceManagerTags,
            resourcePolicies = resourcePolicies,
            size = size,
            storagePool = storagePool,
            type = type,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy