com.pulumi.azurenative.hdinsight.kotlin.inputs.RoleArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.hdinsight.kotlin.inputs
import com.pulumi.azurenative.hdinsight.inputs.RoleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Describes a role on the cluster.
* @property autoscaleConfiguration The autoscale configurations.
* @property dataDisksGroups The data disks groups for the role.
* @property encryptDataDisks Indicates whether encrypt the data disks.
* @property hardwareProfile The hardware profile.
* @property minInstanceCount The minimum instance count of the cluster.
* @property name The name of the role.
* @property osProfile The operating system profile.
* @property scriptActions The list of script actions on the role.
* @property targetInstanceCount The instance count of the cluster.
* @property vMGroupName The name of the virtual machine group.
* @property virtualNetworkProfile The virtual network profile.
*/
public data class RoleArgs(
public val autoscaleConfiguration: Output? = null,
public val dataDisksGroups: Output>? = null,
public val encryptDataDisks: Output? = null,
public val hardwareProfile: Output? = null,
public val minInstanceCount: Output? = null,
public val name: Output? = null,
public val osProfile: Output? = null,
public val scriptActions: Output>? = null,
public val targetInstanceCount: Output? = null,
public val vMGroupName: Output? = null,
public val virtualNetworkProfile: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.hdinsight.inputs.RoleArgs =
com.pulumi.azurenative.hdinsight.inputs.RoleArgs.builder()
.autoscaleConfiguration(
autoscaleConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.dataDisksGroups(
dataDisksGroups?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.encryptDataDisks(encryptDataDisks?.applyValue({ args0 -> args0 }))
.hardwareProfile(hardwareProfile?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.minInstanceCount(minInstanceCount?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.osProfile(osProfile?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.scriptActions(
scriptActions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.targetInstanceCount(targetInstanceCount?.applyValue({ args0 -> args0 }))
.vMGroupName(vMGroupName?.applyValue({ args0 -> args0 }))
.virtualNetworkProfile(
virtualNetworkProfile?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [RoleArgs].
*/
@PulumiTagMarker
public class RoleArgsBuilder internal constructor() {
private var autoscaleConfiguration: Output? = null
private var dataDisksGroups: Output>? = null
private var encryptDataDisks: Output? = null
private var hardwareProfile: Output? = null
private var minInstanceCount: Output? = null
private var name: Output? = null
private var osProfile: Output? = null
private var scriptActions: Output>? = null
private var targetInstanceCount: Output? = null
private var vMGroupName: Output? = null
private var virtualNetworkProfile: Output? = null
/**
* @param value The autoscale configurations.
*/
@JvmName("orcejvlxftniykep")
public suspend fun autoscaleConfiguration(`value`: Output) {
this.autoscaleConfiguration = value
}
/**
* @param value The data disks groups for the role.
*/
@JvmName("xyfwndvppwkshjaj")
public suspend fun dataDisksGroups(`value`: Output>) {
this.dataDisksGroups = value
}
@JvmName("pnnjwlbclyrlbvbh")
public suspend fun dataDisksGroups(vararg values: Output) {
this.dataDisksGroups = Output.all(values.asList())
}
/**
* @param values The data disks groups for the role.
*/
@JvmName("btphpdvbgdplgrae")
public suspend fun dataDisksGroups(values: List