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

com.pulumi.azurenative.dbforpostgresql.kotlin.inputs.AdminCredentialsArgs.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.dbforpostgresql.kotlin.inputs

import com.pulumi.azurenative.dbforpostgresql.inputs.AdminCredentialsArgs.builder
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

/**
 * Server admin credentials.
 * @property sourceServerPassword Password for source server.
 * @property targetServerPassword Password for target server.
 */
public data class AdminCredentialsArgs(
    public val sourceServerPassword: Output,
    public val targetServerPassword: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.dbforpostgresql.inputs.AdminCredentialsArgs =
        com.pulumi.azurenative.dbforpostgresql.inputs.AdminCredentialsArgs.builder()
            .sourceServerPassword(sourceServerPassword.applyValue({ args0 -> args0 }))
            .targetServerPassword(targetServerPassword.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AdminCredentialsArgs].
 */
@PulumiTagMarker
public class AdminCredentialsArgsBuilder internal constructor() {
    private var sourceServerPassword: Output? = null

    private var targetServerPassword: Output? = null

    /**
     * @param value Password for source server.
     */
    @JvmName("kbpthxwrncrbirti")
    public suspend fun sourceServerPassword(`value`: Output) {
        this.sourceServerPassword = value
    }

    /**
     * @param value Password for target server.
     */
    @JvmName("gquqjoafpxgkhkua")
    public suspend fun targetServerPassword(`value`: Output) {
        this.targetServerPassword = value
    }

    /**
     * @param value Password for source server.
     */
    @JvmName("uthbtuhgmdnbfllt")
    public suspend fun sourceServerPassword(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceServerPassword = mapped
    }

    /**
     * @param value Password for target server.
     */
    @JvmName("bykiuliyxcxoueyd")
    public suspend fun targetServerPassword(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetServerPassword = mapped
    }

    internal fun build(): AdminCredentialsArgs = AdminCredentialsArgs(
        sourceServerPassword = sourceServerPassword ?: throw
            PulumiNullFieldException("sourceServerPassword"),
        targetServerPassword = targetServerPassword ?: throw
            PulumiNullFieldException("targetServerPassword"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy