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

com.pulumi.azurenative.workloads.kotlin.inputs.HanaDbProviderInstancePropertiesArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.workloads.kotlin.inputs

import com.pulumi.azurenative.workloads.inputs.HanaDbProviderInstancePropertiesArgs.builder
import com.pulumi.azurenative.workloads.kotlin.enums.SslPreference
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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Gets or sets the provider properties.
 * @property dbName Gets or sets the hana database name.
 * @property dbPassword Gets or sets the database password.
 * @property dbPasswordUri Gets or sets the key vault URI to secret with the database password.
 * @property dbUsername Gets or sets the database user name.
 * @property hostname Gets or sets the target virtual machine size.
 * @property instanceNumber Gets or sets the database instance number.
 * @property providerType The provider type. For example, the value can be SapHana.
 * Expected value is 'SapHana'.
 * @property sapSid Gets or sets the SAP System Identifier.
 * @property sqlPort Gets or sets the database sql port.
 * @property sslCertificateUri Gets or sets the blob URI to SSL certificate for the DB.
 * @property sslHostNameInCertificate Gets or sets the hostname(s) in the SSL certificate.
 * @property sslPreference Gets or sets certificate preference if secure communication is enabled.
 */
public data class HanaDbProviderInstancePropertiesArgs(
    public val dbName: Output? = null,
    public val dbPassword: Output? = null,
    public val dbPasswordUri: Output? = null,
    public val dbUsername: Output? = null,
    public val hostname: Output? = null,
    public val instanceNumber: Output? = null,
    public val providerType: Output,
    public val sapSid: Output? = null,
    public val sqlPort: Output? = null,
    public val sslCertificateUri: Output? = null,
    public val sslHostNameInCertificate: Output? = null,
    public val sslPreference: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.workloads.inputs.HanaDbProviderInstancePropertiesArgs =
        com.pulumi.azurenative.workloads.inputs.HanaDbProviderInstancePropertiesArgs.builder()
            .dbName(dbName?.applyValue({ args0 -> args0 }))
            .dbPassword(dbPassword?.applyValue({ args0 -> args0 }))
            .dbPasswordUri(dbPasswordUri?.applyValue({ args0 -> args0 }))
            .dbUsername(dbUsername?.applyValue({ args0 -> args0 }))
            .hostname(hostname?.applyValue({ args0 -> args0 }))
            .instanceNumber(instanceNumber?.applyValue({ args0 -> args0 }))
            .providerType(providerType.applyValue({ args0 -> args0 }))
            .sapSid(sapSid?.applyValue({ args0 -> args0 }))
            .sqlPort(sqlPort?.applyValue({ args0 -> args0 }))
            .sslCertificateUri(sslCertificateUri?.applyValue({ args0 -> args0 }))
            .sslHostNameInCertificate(sslHostNameInCertificate?.applyValue({ args0 -> args0 }))
            .sslPreference(
                sslPreference?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [HanaDbProviderInstancePropertiesArgs].
 */
@PulumiTagMarker
public class HanaDbProviderInstancePropertiesArgsBuilder internal constructor() {
    private var dbName: Output? = null

    private var dbPassword: Output? = null

    private var dbPasswordUri: Output? = null

    private var dbUsername: Output? = null

    private var hostname: Output? = null

    private var instanceNumber: Output? = null

    private var providerType: Output? = null

    private var sapSid: Output? = null

    private var sqlPort: Output? = null

    private var sslCertificateUri: Output? = null

    private var sslHostNameInCertificate: Output? = null

    private var sslPreference: Output>? = null

    /**
     * @param value Gets or sets the hana database name.
     */
    @JvmName("mbmdbtjfnrxjpwxo")
    public suspend fun dbName(`value`: Output) {
        this.dbName = value
    }

    /**
     * @param value Gets or sets the database password.
     */
    @JvmName("njtxjiiqiupslrog")
    public suspend fun dbPassword(`value`: Output) {
        this.dbPassword = value
    }

    /**
     * @param value Gets or sets the key vault URI to secret with the database password.
     */
    @JvmName("astsqfnjsgwaqfgq")
    public suspend fun dbPasswordUri(`value`: Output) {
        this.dbPasswordUri = value
    }

    /**
     * @param value Gets or sets the database user name.
     */
    @JvmName("hiedqkrnlnxnttfn")
    public suspend fun dbUsername(`value`: Output) {
        this.dbUsername = value
    }

    /**
     * @param value Gets or sets the target virtual machine size.
     */
    @JvmName("ubmsyfgtupkfuxbi")
    public suspend fun hostname(`value`: Output) {
        this.hostname = value
    }

    /**
     * @param value Gets or sets the database instance number.
     */
    @JvmName("hcerhpsrkjmbusvq")
    public suspend fun instanceNumber(`value`: Output) {
        this.instanceNumber = value
    }

    /**
     * @param value The provider type. For example, the value can be SapHana.
     * Expected value is 'SapHana'.
     */
    @JvmName("asgccfsfiyyescbt")
    public suspend fun providerType(`value`: Output) {
        this.providerType = value
    }

    /**
     * @param value Gets or sets the SAP System Identifier.
     */
    @JvmName("ggnppuwbphvssxcb")
    public suspend fun sapSid(`value`: Output) {
        this.sapSid = value
    }

    /**
     * @param value Gets or sets the database sql port.
     */
    @JvmName("dpdofnwuijhijbpm")
    public suspend fun sqlPort(`value`: Output) {
        this.sqlPort = value
    }

    /**
     * @param value Gets or sets the blob URI to SSL certificate for the DB.
     */
    @JvmName("uravaeilpvdhdfbc")
    public suspend fun sslCertificateUri(`value`: Output) {
        this.sslCertificateUri = value
    }

    /**
     * @param value Gets or sets the hostname(s) in the SSL certificate.
     */
    @JvmName("dpdcsndpdjkbwuvp")
    public suspend fun sslHostNameInCertificate(`value`: Output) {
        this.sslHostNameInCertificate = value
    }

    /**
     * @param value Gets or sets certificate preference if secure communication is enabled.
     */
    @JvmName("evugewtswqbuofoj")
    public suspend fun sslPreference(`value`: Output>) {
        this.sslPreference = value
    }

    /**
     * @param value Gets or sets the hana database name.
     */
    @JvmName("jwbhsmcmjxvxudkj")
    public suspend fun dbName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbName = mapped
    }

    /**
     * @param value Gets or sets the database password.
     */
    @JvmName("wqpyjgcjdrehgoqc")
    public suspend fun dbPassword(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbPassword = mapped
    }

    /**
     * @param value Gets or sets the key vault URI to secret with the database password.
     */
    @JvmName("diwngbyqmvnvwcdt")
    public suspend fun dbPasswordUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbPasswordUri = mapped
    }

    /**
     * @param value Gets or sets the database user name.
     */
    @JvmName("mqsryrnekiesmlvo")
    public suspend fun dbUsername(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbUsername = mapped
    }

    /**
     * @param value Gets or sets the target virtual machine size.
     */
    @JvmName("dhsbyawcupeegpif")
    public suspend fun hostname(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hostname = mapped
    }

    /**
     * @param value Gets or sets the database instance number.
     */
    @JvmName("bmpgnewnyktlwpsg")
    public suspend fun instanceNumber(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceNumber = mapped
    }

    /**
     * @param value The provider type. For example, the value can be SapHana.
     * Expected value is 'SapHana'.
     */
    @JvmName("woopkulxjwyoxpdh")
    public suspend fun providerType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.providerType = mapped
    }

    /**
     * @param value Gets or sets the SAP System Identifier.
     */
    @JvmName("aphhiseeakouutfy")
    public suspend fun sapSid(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sapSid = mapped
    }

    /**
     * @param value Gets or sets the database sql port.
     */
    @JvmName("atsxsnrfxrqrwkbw")
    public suspend fun sqlPort(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sqlPort = mapped
    }

    /**
     * @param value Gets or sets the blob URI to SSL certificate for the DB.
     */
    @JvmName("gfgpsnaolluditxc")
    public suspend fun sslCertificateUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sslCertificateUri = mapped
    }

    /**
     * @param value Gets or sets the hostname(s) in the SSL certificate.
     */
    @JvmName("xfktbgipqgkdtkwq")
    public suspend fun sslHostNameInCertificate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sslHostNameInCertificate = mapped
    }

    /**
     * @param value Gets or sets certificate preference if secure communication is enabled.
     */
    @JvmName("mjvabdgpkglxiand")
    public suspend fun sslPreference(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sslPreference = mapped
    }

    /**
     * @param value Gets or sets certificate preference if secure communication is enabled.
     */
    @JvmName("jyakkuusssqcldjr")
    public fun sslPreference(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sslPreference = mapped
    }

    /**
     * @param value Gets or sets certificate preference if secure communication is enabled.
     */
    @JvmName("nfrrscauqauqhint")
    public fun sslPreference(`value`: SslPreference) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sslPreference = mapped
    }

    internal fun build(): HanaDbProviderInstancePropertiesArgs = HanaDbProviderInstancePropertiesArgs(
        dbName = dbName,
        dbPassword = dbPassword,
        dbPasswordUri = dbPasswordUri,
        dbUsername = dbUsername,
        hostname = hostname,
        instanceNumber = instanceNumber,
        providerType = providerType ?: throw PulumiNullFieldException("providerType"),
        sapSid = sapSid,
        sqlPort = sqlPort,
        sslCertificateUri = sslCertificateUri,
        sslHostNameInCertificate = sslHostNameInCertificate,
        sslPreference = sslPreference,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy