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

com.pulumi.gcp.networkservices.kotlin.inputs.EdgeCacheKeysetPublicKeyArgs.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.networkservices.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networkservices.inputs.EdgeCacheKeysetPublicKeyArgs.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 id The ID of the public key. The ID must be 1-63 characters long, and comply with RFC1035.
 * The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]*
 * which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
 * @property managed Set to true to have the CDN automatically manage this public key value.
 * @property value The base64-encoded value of the Ed25519 public key. The base64 encoding can be padded (44 bytes) or unpadded (43 bytes).
 * Representations or encodings of the public key other than this will be rejected with an error.
 * **Note**: This property is sensitive and will not be displayed in the plan.
 */
public data class EdgeCacheKeysetPublicKeyArgs(
    public val id: Output,
    public val managed: Output? = null,
    public val `value`: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networkservices.inputs.EdgeCacheKeysetPublicKeyArgs =
        com.pulumi.gcp.networkservices.inputs.EdgeCacheKeysetPublicKeyArgs.builder()
            .id(id.applyValue({ args0 -> args0 }))
            .managed(managed?.applyValue({ args0 -> args0 }))
            .`value`(`value`?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EdgeCacheKeysetPublicKeyArgs].
 */
@PulumiTagMarker
public class EdgeCacheKeysetPublicKeyArgsBuilder internal constructor() {
    private var id: Output? = null

    private var managed: Output? = null

    private var `value`: Output? = null

    /**
     * @param value The ID of the public key. The ID must be 1-63 characters long, and comply with RFC1035.
     * The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]*
     * which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
     */
    @JvmName("jqskbhujppuxmhtu")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value Set to true to have the CDN automatically manage this public key value.
     */
    @JvmName("yqxemcbcetyqbsyy")
    public suspend fun managed(`value`: Output) {
        this.managed = value
    }

    /**
     * @param value The base64-encoded value of the Ed25519 public key. The base64 encoding can be padded (44 bytes) or unpadded (43 bytes).
     * Representations or encodings of the public key other than this will be rejected with an error.
     * **Note**: This property is sensitive and will not be displayed in the plan.
     */
    @JvmName("xytqsxtjifyjigkn")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value The ID of the public key. The ID must be 1-63 characters long, and comply with RFC1035.
     * The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]*
     * which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
     */
    @JvmName("yoxciqqpfbdjqdua")
    public suspend fun id(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value Set to true to have the CDN automatically manage this public key value.
     */
    @JvmName("twjufifujbarscby")
    public suspend fun managed(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managed = mapped
    }

    /**
     * @param value The base64-encoded value of the Ed25519 public key. The base64 encoding can be padded (44 bytes) or unpadded (43 bytes).
     * Representations or encodings of the public key other than this will be rejected with an error.
     * **Note**: This property is sensitive and will not be displayed in the plan.
     */
    @JvmName("avgcsqkouaqpljdg")
    public suspend fun `value`(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): EdgeCacheKeysetPublicKeyArgs = EdgeCacheKeysetPublicKeyArgs(
        id = id ?: throw PulumiNullFieldException("id"),
        managed = managed,
        `value` = `value`,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy