com.pulumi.alicloud.eais.kotlin.inputs.GetInstancesPlainArgs.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.eais.kotlin.inputs
import com.pulumi.alicloud.eais.inputs.GetInstancesPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getInstances.
* @property ids A list of Instance IDs.
* @property instanceType EAIS instance type. Valid values: `eais.ei-a6.4xlarge`, `eais.ei-a6.2xlarge`, `eais.ei-a6.xlarge`, `eais.ei-a6.large`, `eais.ei-a6.medium`.
* @property nameRegex A regex string to filter results by Instance name.
* @property outputFile File name where to save data source results (after running `pulumi preview`).
* @property status The status of the resource. Valid values: `Attaching`, `Available`, `Detaching`, `InUse`, `Starting`, `Unavailable`.
*/
public data class GetInstancesPlainArgs(
public val ids: List? = null,
public val instanceType: String? = null,
public val nameRegex: String? = null,
public val outputFile: String? = null,
public val status: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.alicloud.eais.inputs.GetInstancesPlainArgs =
com.pulumi.alicloud.eais.inputs.GetInstancesPlainArgs.builder()
.ids(ids?.let({ args0 -> args0.map({ args0 -> args0 }) }))
.instanceType(instanceType?.let({ args0 -> args0 }))
.nameRegex(nameRegex?.let({ args0 -> args0 }))
.outputFile(outputFile?.let({ args0 -> args0 }))
.status(status?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetInstancesPlainArgs].
*/
@PulumiTagMarker
public class GetInstancesPlainArgsBuilder internal constructor() {
private var ids: List? = null
private var instanceType: String? = null
private var nameRegex: String? = null
private var outputFile: String? = null
private var status: String? = null
/**
* @param value A list of Instance IDs.
*/
@JvmName("xpqbwcptftustlwf")
public suspend fun ids(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.ids = mapped
}
/**
* @param values A list of Instance IDs.
*/
@JvmName("hucoravipsmdiyrj")
public suspend fun ids(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.ids = mapped
}
/**
* @param value EAIS instance type. Valid values: `eais.ei-a6.4xlarge`, `eais.ei-a6.2xlarge`, `eais.ei-a6.xlarge`, `eais.ei-a6.large`, `eais.ei-a6.medium`.
*/
@JvmName("yekqdussvmedjiwm")
public suspend fun instanceType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.instanceType = mapped
}
/**
* @param value A regex string to filter results by Instance name.
*/
@JvmName("igfdeldkuomjteau")
public suspend fun nameRegex(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.nameRegex = mapped
}
/**
* @param value File name where to save data source results (after running `pulumi preview`).
*/
@JvmName("forwaudewihaqvwx")
public suspend fun outputFile(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.outputFile = mapped
}
/**
* @param value The status of the resource. Valid values: `Attaching`, `Available`, `Detaching`, `InUse`, `Starting`, `Unavailable`.
*/
@JvmName("xuyltlygikkxnkke")
public suspend fun status(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.status = mapped
}
internal fun build(): GetInstancesPlainArgs = GetInstancesPlainArgs(
ids = ids,
instanceType = instanceType,
nameRegex = nameRegex,
outputFile = outputFile,
status = status,
)
}