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.12.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.InstanceFromTemplateBootDiskInitializeParamsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Any
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 size The size of the image in gigabytes.
 * @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 size: 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()
                }),
            )
            .size(size?.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 size: Output? = null

    private var type: Output? = null

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

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

    /**
     * @param value A set of key/value label pairs assigned to the disk.
     */
    @JvmName("shmjrqufujgjfxhs")
    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("mcbgvofnshcrwaxx")
    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("vaywegxvnlowcsen")
    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("qdfgwfqqdhhyracv")
    public suspend fun resourceManagerTags(`value`: Output>) {
        this.resourceManagerTags = value
    }

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

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

    /**
     * @param value A flag to enable confidential compute mode on boot disk
     */
    @JvmName("vomgcnlqvdqjjskv")
    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("wkogpnugnuwariqu")
    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("hpwjoaevsplunvxu")
    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("oojuyxobbnmxyfld")
    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("wnsqqiwntkeotmry")
    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("vtatjagmcerulkjw")
    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("sdrvvprxendctlxo")
    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("erqpefiiranukslu")
    public fun resourceManagerTags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceManagerTags = mapped
    }

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

    /**
     * @param value The Google Compute Engine disk type. Such as pd-standard, pd-ssd or pd-balanced.
     */
    @JvmName("labgyqhgbvvgxgwd")
    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,
            size = size,
            type = type,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy