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

com.pulumi.gcp.cloudrunv2.kotlin.inputs.JobTemplateTemplateVolumeGcsArgs.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.cloudrunv2.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateVolumeGcsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property bucket Name of the cloud storage bucket to back the volume. The resource service account must have permission to access the bucket.
 * @property readOnly If true, mount this volume as read-only in all mounts. If false, mount this volume as read-write.
 */
public data class JobTemplateTemplateVolumeGcsArgs(
    public val bucket: Output,
    public val readOnly: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateVolumeGcsArgs =
        com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateVolumeGcsArgs.builder()
            .bucket(bucket.applyValue({ args0 -> args0 }))
            .readOnly(readOnly?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [JobTemplateTemplateVolumeGcsArgs].
 */
@PulumiTagMarker
public class JobTemplateTemplateVolumeGcsArgsBuilder internal constructor() {
    private var bucket: Output? = null

    private var readOnly: Output? = null

    /**
     * @param value Name of the cloud storage bucket to back the volume. The resource service account must have permission to access the bucket.
     */
    @JvmName("iawqccoribvvjtot")
    public suspend fun bucket(`value`: Output) {
        this.bucket = value
    }

    /**
     * @param value If true, mount this volume as read-only in all mounts. If false, mount this volume as read-write.
     */
    @JvmName("abrbuwoabbtxedri")
    public suspend fun readOnly(`value`: Output) {
        this.readOnly = value
    }

    /**
     * @param value Name of the cloud storage bucket to back the volume. The resource service account must have permission to access the bucket.
     */
    @JvmName("jsicogvmlrikfrhj")
    public suspend fun bucket(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bucket = mapped
    }

    /**
     * @param value If true, mount this volume as read-only in all mounts. If false, mount this volume as read-write.
     */
    @JvmName("cbtffyqmtgikfked")
    public suspend fun readOnly(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.readOnly = mapped
    }

    internal fun build(): JobTemplateTemplateVolumeGcsArgs = JobTemplateTemplateVolumeGcsArgs(
        bucket = bucket ?: throw PulumiNullFieldException("bucket"),
        readOnly = readOnly,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy