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

com.pulumi.gcp.networksecurity.kotlin.inputs.ClientTlsPolicyClientCertificateArgs.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.networksecurity.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networksecurity.inputs.ClientTlsPolicyClientCertificateArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property certificateProviderInstance The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information.
 * Structure is documented below.
 * @property grpcEndpoint gRPC specific configuration to access the gRPC server to obtain the cert and private key.
 * Structure is documented below.
 */
public data class ClientTlsPolicyClientCertificateArgs(
    public val certificateProviderInstance: Output? = null,
    public val grpcEndpoint: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networksecurity.inputs.ClientTlsPolicyClientCertificateArgs = com.pulumi.gcp.networksecurity.inputs.ClientTlsPolicyClientCertificateArgs.builder()
        .certificateProviderInstance(
            certificateProviderInstance?.applyValue({ args0 ->
                args0.let({ args0 ->
                    args0.toJava()
                })
            }),
        )
        .grpcEndpoint(grpcEndpoint?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ClientTlsPolicyClientCertificateArgs].
 */
@PulumiTagMarker
public class ClientTlsPolicyClientCertificateArgsBuilder internal constructor() {
    private var certificateProviderInstance:
        Output? = null

    private var grpcEndpoint: Output? = null

    /**
     * @param value The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information.
     * Structure is documented below.
     */
    @JvmName("kcdximhkwmjqcrde")
    public suspend fun certificateProviderInstance(`value`: Output) {
        this.certificateProviderInstance = value
    }

    /**
     * @param value gRPC specific configuration to access the gRPC server to obtain the cert and private key.
     * Structure is documented below.
     */
    @JvmName("edjuftvtwpjsasyi")
    public suspend fun grpcEndpoint(`value`: Output) {
        this.grpcEndpoint = value
    }

    /**
     * @param value The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information.
     * Structure is documented below.
     */
    @JvmName("xcqnrhnthdqbcsuh")
    public suspend fun certificateProviderInstance(`value`: ClientTlsPolicyClientCertificateCertificateProviderInstanceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certificateProviderInstance = mapped
    }

    /**
     * @param argument The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information.
     * Structure is documented below.
     */
    @JvmName("cyjwiiuxpvipemhr")
    public suspend fun certificateProviderInstance(argument: suspend ClientTlsPolicyClientCertificateCertificateProviderInstanceArgsBuilder.() -> Unit) {
        val toBeMapped =
            ClientTlsPolicyClientCertificateCertificateProviderInstanceArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.certificateProviderInstance = mapped
    }

    /**
     * @param value gRPC specific configuration to access the gRPC server to obtain the cert and private key.
     * Structure is documented below.
     */
    @JvmName("sgjyybwoduhrypit")
    public suspend fun grpcEndpoint(`value`: ClientTlsPolicyClientCertificateGrpcEndpointArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.grpcEndpoint = mapped
    }

    /**
     * @param argument gRPC specific configuration to access the gRPC server to obtain the cert and private key.
     * Structure is documented below.
     */
    @JvmName("qqaoudqktnqmvcpx")
    public suspend fun grpcEndpoint(argument: suspend ClientTlsPolicyClientCertificateGrpcEndpointArgsBuilder.() -> Unit) {
        val toBeMapped = ClientTlsPolicyClientCertificateGrpcEndpointArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.grpcEndpoint = mapped
    }

    internal fun build(): ClientTlsPolicyClientCertificateArgs = ClientTlsPolicyClientCertificateArgs(
        certificateProviderInstance = certificateProviderInstance,
        grpcEndpoint = grpcEndpoint,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy