com.pulumi.alicloud.cs.kotlin.SwarmArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-alicloud-kotlin Show documentation
Show all versions of pulumi-alicloud-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.alicloud.cs.kotlin
import com.pulumi.alicloud.cs.SwarmArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property cidrBlock
* @property diskCategory
* @property diskSize
* @property imageId
* @property instanceType
* @property isOutdated
* @property name
* @property namePrefix
* @property needSlb
* @property nodeNumber
* @property password
* @property releaseEip
* @property size
* @property vswitchId
*/
public data class SwarmArgs(
public val cidrBlock: Output? = null,
public val diskCategory: Output? = null,
public val diskSize: Output? = null,
public val imageId: Output? = null,
public val instanceType: Output? = null,
public val isOutdated: Output? = null,
public val name: Output? = null,
public val namePrefix: Output? = null,
public val needSlb: Output? = null,
public val nodeNumber: Output? = null,
public val password: Output? = null,
public val releaseEip: Output? = null,
@Deprecated(
message = """
Field 'size' has been deprecated from provider version 1.9.1. New field 'node_number' replaces it.
""",
)
public val size: Output? = null,
public val vswitchId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.alicloud.cs.SwarmArgs =
com.pulumi.alicloud.cs.SwarmArgs.builder()
.cidrBlock(cidrBlock?.applyValue({ args0 -> args0 }))
.diskCategory(diskCategory?.applyValue({ args0 -> args0 }))
.diskSize(diskSize?.applyValue({ args0 -> args0 }))
.imageId(imageId?.applyValue({ args0 -> args0 }))
.instanceType(instanceType?.applyValue({ args0 -> args0 }))
.isOutdated(isOutdated?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.namePrefix(namePrefix?.applyValue({ args0 -> args0 }))
.needSlb(needSlb?.applyValue({ args0 -> args0 }))
.nodeNumber(nodeNumber?.applyValue({ args0 -> args0 }))
.password(password?.applyValue({ args0 -> args0 }))
.releaseEip(releaseEip?.applyValue({ args0 -> args0 }))
.size(size?.applyValue({ args0 -> args0 }))
.vswitchId(vswitchId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SwarmArgs].
*/
@PulumiTagMarker
public class SwarmArgsBuilder internal constructor() {
private var cidrBlock: Output? = null
private var diskCategory: Output? = null
private var diskSize: Output? = null
private var imageId: Output? = null
private var instanceType: Output? = null
private var isOutdated: Output? = null
private var name: Output? = null
private var namePrefix: Output? = null
private var needSlb: Output? = null
private var nodeNumber: Output? = null
private var password: Output? = null
private var releaseEip: Output? = null
private var size: Output? = null
private var vswitchId: Output? = null
/**
* @param value
*/
@JvmName("termvwojqhvrrnpt")
public suspend fun cidrBlock(`value`: Output) {
this.cidrBlock = value
}
/**
* @param value
*/
@JvmName("tsimscxjdkcjievj")
public suspend fun diskCategory(`value`: Output) {
this.diskCategory = value
}
/**
* @param value
*/
@JvmName("kwvwvkjypnqlvuhr")
public suspend fun diskSize(`value`: Output) {
this.diskSize = value
}
/**
* @param value
*/
@JvmName("rnigedbioffkntpe")
public suspend fun imageId(`value`: Output) {
this.imageId = value
}
/**
* @param value
*/
@JvmName("ihpyoxqjtdxtefrs")
public suspend fun instanceType(`value`: Output) {
this.instanceType = value
}
/**
* @param value
*/
@JvmName("bqwbcarvbqmyewof")
public suspend fun isOutdated(`value`: Output) {
this.isOutdated = value
}
/**
* @param value
*/
@JvmName("aeendpmhbwpaqrpr")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value
*/
@JvmName("fekouxaopayhtuxj")
public suspend fun namePrefix(`value`: Output) {
this.namePrefix = value
}
/**
* @param value
*/
@JvmName("muaqmnrvxlurdsxb")
public suspend fun needSlb(`value`: Output) {
this.needSlb = value
}
/**
* @param value
*/
@JvmName("gdauandsnvqiqlpn")
public suspend fun nodeNumber(`value`: Output) {
this.nodeNumber = value
}
/**
* @param value
*/
@JvmName("bwlmctabjojwriir")
public suspend fun password(`value`: Output) {
this.password = value
}
/**
* @param value
*/
@JvmName("xhdipbaqjokkjlnp")
public suspend fun releaseEip(`value`: Output) {
this.releaseEip = value
}
/**
* @param value
*/
@Deprecated(
message = """
Field 'size' has been deprecated from provider version 1.9.1. New field 'node_number' replaces it.
""",
)
@JvmName("jxgvvqyrfcmlqyjd")
public suspend fun size(`value`: Output) {
this.size = value
}
/**
* @param value
*/
@JvmName("xyrrepnpjfkgwmlh")
public suspend fun vswitchId(`value`: Output) {
this.vswitchId = value
}
/**
* @param value
*/
@JvmName("vwbjsduhrgdtsome")
public suspend fun cidrBlock(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cidrBlock = mapped
}
/**
* @param value
*/
@JvmName("tmeagnsxylldeies")
public suspend fun diskCategory(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.diskCategory = mapped
}
/**
* @param value
*/
@JvmName("xfvpnyjsnkqpktxv")
public suspend fun diskSize(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.diskSize = mapped
}
/**
* @param value
*/
@JvmName("nxfrqpxccsgqrhxs")
public suspend fun imageId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.imageId = mapped
}
/**
* @param value
*/
@JvmName("jmaqmwojqckwfwkp")
public suspend fun instanceType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.instanceType = mapped
}
/**
* @param value
*/
@JvmName("ttxeuwjctdwpxlkm")
public suspend fun isOutdated(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.isOutdated = mapped
}
/**
* @param value
*/
@JvmName("kpriiboegdpsmjru")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value
*/
@JvmName("sjnwqfvqbyiqongl")
public suspend fun namePrefix(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.namePrefix = mapped
}
/**
* @param value
*/
@JvmName("lojkreeniqhjksqu")
public suspend fun needSlb(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.needSlb = mapped
}
/**
* @param value
*/
@JvmName("vobmgdqncdoitncb")
public suspend fun nodeNumber(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.nodeNumber = mapped
}
/**
* @param value
*/
@JvmName("yunxepoxrueigfvt")
public suspend fun password(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.password = mapped
}
/**
* @param value
*/
@JvmName("ouekbscfcbtokphc")
public suspend fun releaseEip(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.releaseEip = mapped
}
/**
* @param value
*/
@Deprecated(
message = """
Field 'size' has been deprecated from provider version 1.9.1. New field 'node_number' replaces it.
""",
)
@JvmName("yputdmvwxktvoads")
public suspend fun size(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.size = mapped
}
/**
* @param value
*/
@JvmName("dxwcacrsvayuaygm")
public suspend fun vswitchId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.vswitchId = mapped
}
internal fun build(): SwarmArgs = SwarmArgs(
cidrBlock = cidrBlock,
diskCategory = diskCategory,
diskSize = diskSize,
imageId = imageId,
instanceType = instanceType,
isOutdated = isOutdated,
name = name,
namePrefix = namePrefix,
needSlb = needSlb,
nodeNumber = nodeNumber,
password = password,
releaseEip = releaseEip,
size = size,
vswitchId = vswitchId,
)
}