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

com.pulumi.awsnative.lightsail.kotlin.StaticIpArgs.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.lightsail.kotlin

import com.pulumi.awsnative.lightsail.StaticIpArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::Lightsail::StaticIp
 * @property attachedTo The instance where the static IP is attached.
 * @property staticIpName The name of the static IP address.
 */
public data class StaticIpArgs(
    public val attachedTo: Output? = null,
    public val staticIpName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lightsail.StaticIpArgs =
        com.pulumi.awsnative.lightsail.StaticIpArgs.builder()
            .attachedTo(attachedTo?.applyValue({ args0 -> args0 }))
            .staticIpName(staticIpName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [StaticIpArgs].
 */
@PulumiTagMarker
public class StaticIpArgsBuilder internal constructor() {
    private var attachedTo: Output? = null

    private var staticIpName: Output? = null

    /**
     * @param value The instance where the static IP is attached.
     */
    @JvmName("ucdbfwqmberevtcv")
    public suspend fun attachedTo(`value`: Output) {
        this.attachedTo = value
    }

    /**
     * @param value The name of the static IP address.
     */
    @JvmName("qfmvbqmkgegqgxig")
    public suspend fun staticIpName(`value`: Output) {
        this.staticIpName = value
    }

    /**
     * @param value The instance where the static IP is attached.
     */
    @JvmName("rltkkffankyuuwde")
    public suspend fun attachedTo(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.attachedTo = mapped
    }

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

    internal fun build(): StaticIpArgs = StaticIpArgs(
        attachedTo = attachedTo,
        staticIpName = staticIpName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy