com.pulumi.awsnative.lightsail.kotlin.inputs.InstanceNetworkingArgs.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.lightsail.kotlin.inputs
import com.pulumi.awsnative.lightsail.inputs.InstanceNetworkingArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Networking of the Instance.
* @property monthlyTransfer The monthly amount of data transfer, in GB, allocated for the instance
* @property ports Ports to the Instance.
*/
public data class InstanceNetworkingArgs(
public val monthlyTransfer: Output? = null,
public val ports: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lightsail.inputs.InstanceNetworkingArgs =
com.pulumi.awsnative.lightsail.inputs.InstanceNetworkingArgs.builder()
.monthlyTransfer(monthlyTransfer?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.ports(
ports.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [InstanceNetworkingArgs].
*/
@PulumiTagMarker
public class InstanceNetworkingArgsBuilder internal constructor() {
private var monthlyTransfer: Output? = null
private var ports: Output>? = null
/**
* @param value The monthly amount of data transfer, in GB, allocated for the instance
*/
@JvmName("jsjussajqhqncsmu")
public suspend fun monthlyTransfer(`value`: Output) {
this.monthlyTransfer = value
}
/**
* @param value Ports to the Instance.
*/
@JvmName("bhskximhypkuwlny")
public suspend fun ports(`value`: Output>) {
this.ports = value
}
@JvmName("lnbgvmgsxeqbgyrs")
public suspend fun ports(vararg values: Output) {
this.ports = Output.all(values.asList())
}
/**
* @param values Ports to the Instance.
*/
@JvmName("mtyjvftdjidexmdb")
public suspend fun ports(values: List