com.pulumi.alicloud.apigateway.kotlin.inputs.GetBackendsPlainArgs.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.apigateway.kotlin.inputs
import com.pulumi.alicloud.apigateway.inputs.GetBackendsPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getBackends.
* @property ids A list of Backends IDs.
* @property nameRegex A regex string to filter Api Gateway Backends by name.
* @property outputFile File name where to save data source results (after running `pulumi preview`).
* @property pageNumber
* @property pageSize
*/
public data class GetBackendsPlainArgs(
public val ids: List? = null,
public val nameRegex: String? = null,
public val outputFile: String? = null,
public val pageNumber: Int? = null,
public val pageSize: Int? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.alicloud.apigateway.inputs.GetBackendsPlainArgs =
com.pulumi.alicloud.apigateway.inputs.GetBackendsPlainArgs.builder()
.ids(ids?.let({ args0 -> args0.map({ args0 -> args0 }) }))
.nameRegex(nameRegex?.let({ args0 -> args0 }))
.outputFile(outputFile?.let({ args0 -> args0 }))
.pageNumber(pageNumber?.let({ args0 -> args0 }))
.pageSize(pageSize?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetBackendsPlainArgs].
*/
@PulumiTagMarker
public class GetBackendsPlainArgsBuilder internal constructor() {
private var ids: List? = null
private var nameRegex: String? = null
private var outputFile: String? = null
private var pageNumber: Int? = null
private var pageSize: Int? = null
/**
* @param value A list of Backends IDs.
*/
@JvmName("ojqxvpxsghpbfjsq")
public suspend fun ids(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.ids = mapped
}
/**
* @param values A list of Backends IDs.
*/
@JvmName("xntjqfiehqeyxmnd")
public suspend fun ids(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.ids = mapped
}
/**
* @param value A regex string to filter Api Gateway Backends by name.
*/
@JvmName("vvjamamhdjcqmjfy")
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("xqnpniqymiuknnef")
public suspend fun outputFile(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.outputFile = mapped
}
/**
* @param value
*/
@JvmName("tvfslfteotbnqqwq")
public suspend fun pageNumber(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.pageNumber = mapped
}
/**
* @param value
*/
@JvmName("ywrqrimtxvmyvwsg")
public suspend fun pageSize(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.pageSize = mapped
}
internal fun build(): GetBackendsPlainArgs = GetBackendsPlainArgs(
ids = ids,
nameRegex = nameRegex,
outputFile = outputFile,
pageNumber = pageNumber,
pageSize = pageSize,
)
}