com.pulumi.nomad.kotlin.inputs.GetScalingPoliciesPlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-nomad-kotlin Show documentation
Show all versions of pulumi-nomad-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.nomad.kotlin.inputs
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.nomad.inputs.GetScalingPoliciesPlainArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getScalingPolicies.
* @property jobId `(string)` - An optional string to filter scaling policies based on the target job. If not provided, policies for all jobs are returned.
* @property type `(string)` - An optional string to filter scaling policies based on policy type. If not provided, policies of all types are returned.
*/
public data class GetScalingPoliciesPlainArgs(
public val jobId: String? = null,
public val type: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.nomad.inputs.GetScalingPoliciesPlainArgs =
com.pulumi.nomad.inputs.GetScalingPoliciesPlainArgs.builder()
.jobId(jobId?.let({ args0 -> args0 }))
.type(type?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetScalingPoliciesPlainArgs].
*/
@PulumiTagMarker
public class GetScalingPoliciesPlainArgsBuilder internal constructor() {
private var jobId: String? = null
private var type: String? = null
/**
* @param value `(string)` - An optional string to filter scaling policies based on the target job. If not provided, policies for all jobs are returned.
*/
@JvmName("tawvqvkcguyljklh")
public suspend fun jobId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.jobId = mapped
}
/**
* @param value `(string)` - An optional string to filter scaling policies based on policy type. If not provided, policies of all types are returned.
*/
@JvmName("onxklwcbjvsbcmfo")
public suspend fun type(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.type = mapped
}
internal fun build(): GetScalingPoliciesPlainArgs = GetScalingPoliciesPlainArgs(
jobId = jobId,
type = type,
)
}