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

com.pulumi.gcp.databasemigrationservice.kotlin.inputs.ConnectionProfileOracleForwardSshConnectivityArgs.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.databasemigrationservice.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.databasemigrationservice.inputs.ConnectionProfileOracleForwardSshConnectivityArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property hostname Required. Hostname for the SSH tunnel.
 * @property password Input only. SSH password. Only one of `password` and `private_key` can be configured.
 * **Note**: This property is sensitive and will not be displayed in the plan.
 * @property port Port for the SSH tunnel, default value is 22.
 * @property privateKey Input only. SSH private key. Only one of `password` and `private_key` can be configured.
 * **Note**: This property is sensitive and will not be displayed in the plan.
 * @property username Required. Username for the SSH tunnel.
 */
public data class ConnectionProfileOracleForwardSshConnectivityArgs(
    public val hostname: Output,
    public val password: Output? = null,
    public val port: Output,
    public val privateKey: Output? = null,
    public val username: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.databasemigrationservice.inputs.ConnectionProfileOracleForwardSshConnectivityArgs =
        com.pulumi.gcp.databasemigrationservice.inputs.ConnectionProfileOracleForwardSshConnectivityArgs.builder()
            .hostname(hostname.applyValue({ args0 -> args0 }))
            .password(password?.applyValue({ args0 -> args0 }))
            .port(port.applyValue({ args0 -> args0 }))
            .privateKey(privateKey?.applyValue({ args0 -> args0 }))
            .username(username.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ConnectionProfileOracleForwardSshConnectivityArgs].
 */
@PulumiTagMarker
public class ConnectionProfileOracleForwardSshConnectivityArgsBuilder internal constructor() {
    private var hostname: Output? = null

    private var password: Output? = null

    private var port: Output? = null

    private var privateKey: Output? = null

    private var username: Output? = null

    /**
     * @param value Required. Hostname for the SSH tunnel.
     */
    @JvmName("uiwycahujwjxgieo")
    public suspend fun hostname(`value`: Output) {
        this.hostname = value
    }

    /**
     * @param value Input only. SSH password. Only one of `password` and `private_key` can be configured.
     * **Note**: This property is sensitive and will not be displayed in the plan.
     */
    @JvmName("qruainqibplqutpu")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

    /**
     * @param value Port for the SSH tunnel, default value is 22.
     */
    @JvmName("scyrnebtetyweyat")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value Input only. SSH private key. Only one of `password` and `private_key` can be configured.
     * **Note**: This property is sensitive and will not be displayed in the plan.
     */
    @JvmName("jjkdknukxesirrth")
    public suspend fun privateKey(`value`: Output) {
        this.privateKey = value
    }

    /**
     * @param value Required. Username for the SSH tunnel.
     */
    @JvmName("ynffllihgihndhhd")
    public suspend fun username(`value`: Output) {
        this.username = value
    }

    /**
     * @param value Required. Hostname for the SSH tunnel.
     */
    @JvmName("wfvcuppefdvfhaly")
    public suspend fun hostname(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hostname = mapped
    }

    /**
     * @param value Input only. SSH password. Only one of `password` and `private_key` can be configured.
     * **Note**: This property is sensitive and will not be displayed in the plan.
     */
    @JvmName("brpbnvsgeowimuth")
    public suspend fun password(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param value Port for the SSH tunnel, default value is 22.
     */
    @JvmName("seuleijvssmalokq")
    public suspend fun port(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.port = mapped
    }

    /**
     * @param value Input only. SSH private key. Only one of `password` and `private_key` can be configured.
     * **Note**: This property is sensitive and will not be displayed in the plan.
     */
    @JvmName("wrwnwoovivtjxoqq")
    public suspend fun privateKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateKey = mapped
    }

    /**
     * @param value Required. Username for the SSH tunnel.
     */
    @JvmName("kkkqrqymxpfrdbns")
    public suspend fun username(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.username = mapped
    }

    internal fun build(): ConnectionProfileOracleForwardSshConnectivityArgs =
        ConnectionProfileOracleForwardSshConnectivityArgs(
            hostname = hostname ?: throw PulumiNullFieldException("hostname"),
            password = password,
            port = port ?: throw PulumiNullFieldException("port"),
            privateKey = privateKey,
            username = username ?: throw PulumiNullFieldException("username"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy