com.pulumi.aws.ec2.kotlin.inputs.NetworkInterfaceAttachmentArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.ec2.kotlin.inputs
import com.pulumi.aws.ec2.inputs.NetworkInterfaceAttachmentArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property attachmentId
* @property deviceIndex Integer to define the devices index.
* @property instance ID of the instance to attach to.
*/
public data class NetworkInterfaceAttachmentArgs(
public val attachmentId: Output? = null,
public val deviceIndex: Output,
public val instance: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.ec2.inputs.NetworkInterfaceAttachmentArgs =
com.pulumi.aws.ec2.inputs.NetworkInterfaceAttachmentArgs.builder()
.attachmentId(attachmentId?.applyValue({ args0 -> args0 }))
.deviceIndex(deviceIndex.applyValue({ args0 -> args0 }))
.instance(instance.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [NetworkInterfaceAttachmentArgs].
*/
@PulumiTagMarker
public class NetworkInterfaceAttachmentArgsBuilder internal constructor() {
private var attachmentId: Output? = null
private var deviceIndex: Output? = null
private var instance: Output? = null
/**
* @param value
*/
@JvmName("rfijkhytttjiqyfh")
public suspend fun attachmentId(`value`: Output) {
this.attachmentId = value
}
/**
* @param value Integer to define the devices index.
*/
@JvmName("tvfnylinrutahgku")
public suspend fun deviceIndex(`value`: Output) {
this.deviceIndex = value
}
/**
* @param value ID of the instance to attach to.
*/
@JvmName("nrbjhoxmxhjpyahs")
public suspend fun instance(`value`: Output) {
this.instance = value
}
/**
* @param value
*/
@JvmName("fycsajbcnctqqgde")
public suspend fun attachmentId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.attachmentId = mapped
}
/**
* @param value Integer to define the devices index.
*/
@JvmName("qrwfnxkndpfidbqq")
public suspend fun deviceIndex(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.deviceIndex = mapped
}
/**
* @param value ID of the instance to attach to.
*/
@JvmName("ogiwpbmcaswpsptc")
public suspend fun instance(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.instance = mapped
}
internal fun build(): NetworkInterfaceAttachmentArgs = NetworkInterfaceAttachmentArgs(
attachmentId = attachmentId,
deviceIndex = deviceIndex ?: throw PulumiNullFieldException("deviceIndex"),
instance = instance ?: throw PulumiNullFieldException("instance"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy