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

com.pulumi.gcp.storage.kotlin.inputs.BucketObjectCustomerEncryptionArgs.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.storage.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.storage.inputs.BucketObjectCustomerEncryptionArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property encryptionAlgorithm Encryption algorithm. Default: AES256
 * @property encryptionKey Base64 encoded Customer-Supplied Encryption Key.
 */
public data class BucketObjectCustomerEncryptionArgs(
    public val encryptionAlgorithm: Output? = null,
    public val encryptionKey: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.storage.inputs.BucketObjectCustomerEncryptionArgs =
        com.pulumi.gcp.storage.inputs.BucketObjectCustomerEncryptionArgs.builder()
            .encryptionAlgorithm(encryptionAlgorithm?.applyValue({ args0 -> args0 }))
            .encryptionKey(encryptionKey.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BucketObjectCustomerEncryptionArgs].
 */
@PulumiTagMarker
public class BucketObjectCustomerEncryptionArgsBuilder internal constructor() {
    private var encryptionAlgorithm: Output? = null

    private var encryptionKey: Output? = null

    /**
     * @param value Encryption algorithm. Default: AES256
     */
    @JvmName("ycuwwnmbiaydmhtb")
    public suspend fun encryptionAlgorithm(`value`: Output) {
        this.encryptionAlgorithm = value
    }

    /**
     * @param value Base64 encoded Customer-Supplied Encryption Key.
     */
    @JvmName("qpprnhnssbdktcfa")
    public suspend fun encryptionKey(`value`: Output) {
        this.encryptionKey = value
    }

    /**
     * @param value Encryption algorithm. Default: AES256
     */
    @JvmName("vmiqkvvyjvxnfrdf")
    public suspend fun encryptionAlgorithm(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryptionAlgorithm = mapped
    }

    /**
     * @param value Base64 encoded Customer-Supplied Encryption Key.
     */
    @JvmName("jxmgwnvwyvmkdikx")
    public suspend fun encryptionKey(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.encryptionKey = mapped
    }

    internal fun build(): BucketObjectCustomerEncryptionArgs = BucketObjectCustomerEncryptionArgs(
        encryptionAlgorithm = encryptionAlgorithm,
        encryptionKey = encryptionKey ?: throw PulumiNullFieldException("encryptionKey"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy