com.pulumi.awsnative.ec2.kotlin.inputs.GetEipPlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ec2.kotlin.inputs
import com.pulumi.awsnative.ec2.inputs.GetEipPlainArgs.builder
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
/**
*
* @property allocationId The ID that AWS assigns to represent the allocation of the address for use with Amazon VPC. This is returned only for VPC elastic IP addresses. For example, `eipalloc-5723d13e` .
* @property publicIp The Elastic IP address.
*/
public data class GetEipPlainArgs(
public val allocationId: String,
public val publicIp: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ec2.inputs.GetEipPlainArgs =
com.pulumi.awsnative.ec2.inputs.GetEipPlainArgs.builder()
.allocationId(allocationId.let({ args0 -> args0 }))
.publicIp(publicIp.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetEipPlainArgs].
*/
@PulumiTagMarker
public class GetEipPlainArgsBuilder internal constructor() {
private var allocationId: String? = null
private var publicIp: String? = null
/**
* @param value The ID that AWS assigns to represent the allocation of the address for use with Amazon VPC. This is returned only for VPC elastic IP addresses. For example, `eipalloc-5723d13e` .
*/
@JvmName("ecjyuanthbbhhuas")
public suspend fun allocationId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.allocationId = mapped
}
/**
* @param value The Elastic IP address.
*/
@JvmName("fjswbgbswanvcric")
public suspend fun publicIp(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.publicIp = mapped
}
internal fun build(): GetEipPlainArgs = GetEipPlainArgs(
allocationId = allocationId ?: throw PulumiNullFieldException("allocationId"),
publicIp = publicIp ?: throw PulumiNullFieldException("publicIp"),
)
}