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

com.pulumi.gcp.compute.kotlin.inputs.RouterPeerMd5AuthenticationKeyArgs.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.RouterPeerMd5AuthenticationKeyArgs.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 key Value of the key.
 * @property name Name of this BGP peer. The name must be 1-63 characters long,
 * and comply with RFC1035. Specifically, the name must be 1-63 characters
 * long and match the regular expression `a-z?` which
 * means the first character must be a lowercase letter, and all
 * following characters must be a dash, lowercase letter, or digit,
 * except the last character, which cannot be a dash.
 */
public data class RouterPeerMd5AuthenticationKeyArgs(
    public val key: Output,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.RouterPeerMd5AuthenticationKeyArgs =
        com.pulumi.gcp.compute.inputs.RouterPeerMd5AuthenticationKeyArgs.builder()
            .key(key.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RouterPeerMd5AuthenticationKeyArgs].
 */
@PulumiTagMarker
public class RouterPeerMd5AuthenticationKeyArgsBuilder internal constructor() {
    private var key: Output? = null

    private var name: Output? = null

    /**
     * @param value Value of the key.
     */
    @JvmName("kykarnmrcxxabjcg")
    public suspend fun key(`value`: Output) {
        this.key = value
    }

    /**
     * @param value Name of this BGP peer. The name must be 1-63 characters long,
     * and comply with RFC1035. Specifically, the name must be 1-63 characters
     * long and match the regular expression `a-z?` which
     * means the first character must be a lowercase letter, and all
     * following characters must be a dash, lowercase letter, or digit,
     * except the last character, which cannot be a dash.
     */
    @JvmName("ieicuvuglatiajdj")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Value of the key.
     */
    @JvmName("xsojcefrahiyqypi")
    public suspend fun key(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.key = mapped
    }

    /**
     * @param value Name of this BGP peer. The name must be 1-63 characters long,
     * and comply with RFC1035. Specifically, the name must be 1-63 characters
     * long and match the regular expression `a-z?` which
     * means the first character must be a lowercase letter, and all
     * following characters must be a dash, lowercase letter, or digit,
     * except the last character, which cannot be a dash.
     */
    @JvmName("pcooytjtvuqhrqgi")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): RouterPeerMd5AuthenticationKeyArgs = RouterPeerMd5AuthenticationKeyArgs(
        key = key ?: throw PulumiNullFieldException("key"),
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy