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

com.pulumi.awsnative.backupgateway.kotlin.HypervisorArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.backupgateway.kotlin

import com.pulumi.awsnative.backupgateway.HypervisorArgs.builder
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgs
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Definition of AWS::BackupGateway::Hypervisor Resource Type
 * @property host The server host of the hypervisor. This can be either an IP address or a fully-qualified domain name (FQDN).
 * @property kmsKeyArn The Amazon Resource Name (ARN) of the AWS Key Management Service used to encrypt the hypervisor.
 * @property logGroupArn The Amazon Resource Name (ARN) of the group of gateways within the requested log.
 * @property name The name of the hypervisor.
 * @property password The password for the hypervisor.
 * @property tags The tags of the hypervisor configuration to import.
 * @property username The username for the hypervisor.
 */
public data class HypervisorArgs(
    public val host: Output? = null,
    public val kmsKeyArn: Output? = null,
    public val logGroupArn: Output? = null,
    public val name: Output? = null,
    public val password: Output? = null,
    public val tags: Output>? = null,
    public val username: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.backupgateway.HypervisorArgs =
        com.pulumi.awsnative.backupgateway.HypervisorArgs.builder()
            .host(host?.applyValue({ args0 -> args0 }))
            .kmsKeyArn(kmsKeyArn?.applyValue({ args0 -> args0 }))
            .logGroupArn(logGroupArn?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .password(password?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .username(username?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [HypervisorArgs].
 */
@PulumiTagMarker
public class HypervisorArgsBuilder internal constructor() {
    private var host: Output? = null

    private var kmsKeyArn: Output? = null

    private var logGroupArn: Output? = null

    private var name: Output? = null

    private var password: Output? = null

    private var tags: Output>? = null

    private var username: Output? = null

    /**
     * @param value The server host of the hypervisor. This can be either an IP address or a fully-qualified domain name (FQDN).
     */
    @JvmName("dspwymnspyyiiodf")
    public suspend fun host(`value`: Output) {
        this.host = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the AWS Key Management Service used to encrypt the hypervisor.
     */
    @JvmName("mujctqmfekxricff")
    public suspend fun kmsKeyArn(`value`: Output) {
        this.kmsKeyArn = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the group of gateways within the requested log.
     */
    @JvmName("faavmevfixfgdejk")
    public suspend fun logGroupArn(`value`: Output) {
        this.logGroupArn = value
    }

    /**
     * @param value The name of the hypervisor.
     */
    @JvmName("yltqyoxjxyesoxgw")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The password for the hypervisor.
     */
    @JvmName("pdskvftmwitlnvgj")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

    /**
     * @param value The tags of the hypervisor configuration to import.
     */
    @JvmName("vvjgjtemdedqjrln")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("xsfmsefvadirpwvo")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values The tags of the hypervisor configuration to import.
     */
    @JvmName("yyjvvlpnmtrlfhfc")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The username for the hypervisor.
     */
    @JvmName("rfuxgonnosovidyu")
    public suspend fun username(`value`: Output) {
        this.username = value
    }

    /**
     * @param value The server host of the hypervisor. This can be either an IP address or a fully-qualified domain name (FQDN).
     */
    @JvmName("fxdkdegmvmgqmqip")
    public suspend fun host(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.host = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the AWS Key Management Service used to encrypt the hypervisor.
     */
    @JvmName("pabqiejmwcihhptd")
    public suspend fun kmsKeyArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKeyArn = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the group of gateways within the requested log.
     */
    @JvmName("rafegsmmfmtvobje")
    public suspend fun logGroupArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logGroupArn = mapped
    }

    /**
     * @param value The name of the hypervisor.
     */
    @JvmName("yxfefqlphqhdydwu")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The password for the hypervisor.
     */
    @JvmName("dffwukxcplvyfaxn")
    public suspend fun password(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param value The tags of the hypervisor configuration to import.
     */
    @JvmName("pmudyqqaqyxospha")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags of the hypervisor configuration to import.
     */
    @JvmName("lwhoulpwwbgxcwpn")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags of the hypervisor configuration to import.
     */
    @JvmName("bvqtvdlwisjgpbsc")
    public suspend fun tags(vararg argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags of the hypervisor configuration to import.
     */
    @JvmName("asioopyfswpbsfhc")
    public suspend fun tags(argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(CreateOnlyTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags of the hypervisor configuration to import.
     */
    @JvmName("apsgvwkgnghhvwsi")
    public suspend fun tags(vararg values: CreateOnlyTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The username for the hypervisor.
     */
    @JvmName("pwhqieakepnjjllt")
    public suspend fun username(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.username = mapped
    }

    internal fun build(): HypervisorArgs = HypervisorArgs(
        host = host,
        kmsKeyArn = kmsKeyArn,
        logGroupArn = logGroupArn,
        name = name,
        password = password,
        tags = tags,
        username = username,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy