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

com.pulumi.azurenative.mobilenetwork.kotlin.inputs.LocalDiagnosticsAccessConfigurationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.mobilenetwork.kotlin.inputs

import com.pulumi.azurenative.mobilenetwork.inputs.LocalDiagnosticsAccessConfigurationArgs.builder
import com.pulumi.azurenative.mobilenetwork.kotlin.enums.AuthenticationType
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The kubernetes ingress configuration to control access to packet core diagnostics over local APIs.
 * @property authenticationType How to authenticate users who access local diagnostics APIs.
 * @property httpsServerCertificate The HTTPS server TLS certificate used to secure local access to diagnostics.
 */
public data class LocalDiagnosticsAccessConfigurationArgs(
    public val authenticationType: Output>,
    public val httpsServerCertificate: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.mobilenetwork.inputs.LocalDiagnosticsAccessConfigurationArgs =
        com.pulumi.azurenative.mobilenetwork.inputs.LocalDiagnosticsAccessConfigurationArgs.builder()
            .authenticationType(
                authenticationType.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .httpsServerCertificate(
                httpsServerCertificate?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [LocalDiagnosticsAccessConfigurationArgs].
 */
@PulumiTagMarker
public class LocalDiagnosticsAccessConfigurationArgsBuilder internal constructor() {
    private var authenticationType: Output>? = null

    private var httpsServerCertificate: Output? = null

    /**
     * @param value How to authenticate users who access local diagnostics APIs.
     */
    @JvmName("avmultvvnqhnjspa")
    public suspend fun authenticationType(`value`: Output>) {
        this.authenticationType = value
    }

    /**
     * @param value The HTTPS server TLS certificate used to secure local access to diagnostics.
     */
    @JvmName("napsscnnjbdnuwcx")
    public suspend fun httpsServerCertificate(`value`: Output) {
        this.httpsServerCertificate = value
    }

    /**
     * @param value How to authenticate users who access local diagnostics APIs.
     */
    @JvmName("whpwcgykojjpexuj")
    public suspend fun authenticationType(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.authenticationType = mapped
    }

    /**
     * @param value How to authenticate users who access local diagnostics APIs.
     */
    @JvmName("linkpxoteyujuvmr")
    public fun authenticationType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.authenticationType = mapped
    }

    /**
     * @param value How to authenticate users who access local diagnostics APIs.
     */
    @JvmName("yifsfrvkjrsoipdq")
    public fun authenticationType(`value`: AuthenticationType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.authenticationType = mapped
    }

    /**
     * @param value The HTTPS server TLS certificate used to secure local access to diagnostics.
     */
    @JvmName("jbgvywucsfmybvmo")
    public suspend fun httpsServerCertificate(`value`: HttpsServerCertificateArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.httpsServerCertificate = mapped
    }

    /**
     * @param argument The HTTPS server TLS certificate used to secure local access to diagnostics.
     */
    @JvmName("bbncvheyfshfjool")
    public suspend fun httpsServerCertificate(argument: suspend HttpsServerCertificateArgsBuilder.() -> Unit) {
        val toBeMapped = HttpsServerCertificateArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.httpsServerCertificate = mapped
    }

    internal fun build(): LocalDiagnosticsAccessConfigurationArgs =
        LocalDiagnosticsAccessConfigurationArgs(
            authenticationType = authenticationType ?: throw PulumiNullFieldException("authenticationType"),
            httpsServerCertificate = httpsServerCertificate,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy