All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.resource.v1alpha3.kotlin.inputs.ResourcePoolArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 4.18.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.resource.v1alpha3.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.resource.v1alpha3.inputs.ResourcePoolArgs.builder
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * ResourcePool describes the pool that ResourceSlices belong to.
 * @property generation Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
 * Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
 * @property name Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
 * It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
 * @property resourceSliceCount ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
 * Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
 */
public data class ResourcePoolArgs(
    public val generation: Output,
    public val name: Output,
    public val resourceSliceCount: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.resource.v1alpha3.inputs.ResourcePoolArgs =
        com.pulumi.kubernetes.resource.v1alpha3.inputs.ResourcePoolArgs.builder()
            .generation(generation.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .resourceSliceCount(resourceSliceCount.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ResourcePoolArgs].
 */
@PulumiTagMarker
public class ResourcePoolArgsBuilder internal constructor() {
    private var generation: Output? = null

    private var name: Output? = null

    private var resourceSliceCount: Output? = null

    /**
     * @param value Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
     * Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
     */
    @JvmName("gmndopheearawown")
    public suspend fun generation(`value`: Output) {
        this.generation = value
    }

    /**
     * @param value Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
     * It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
     */
    @JvmName("snbbxxvvnvjktseb")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
     * Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
     */
    @JvmName("sqmjfbjqsiroccpj")
    public suspend fun resourceSliceCount(`value`: Output) {
        this.resourceSliceCount = value
    }

    /**
     * @param value Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
     * Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
     */
    @JvmName("yowvkvmbiblyuxfp")
    public suspend fun generation(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.generation = mapped
    }

    /**
     * @param value Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
     * It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
     */
    @JvmName("prthwqhtuuouvust")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
     * Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
     */
    @JvmName("lfmvnsssiqigkapn")
    public suspend fun resourceSliceCount(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceSliceCount = mapped
    }

    internal fun build(): ResourcePoolArgs = ResourcePoolArgs(
        generation = generation ?: throw PulumiNullFieldException("generation"),
        name = name ?: throw PulumiNullFieldException("name"),
        resourceSliceCount = resourceSliceCount ?: throw PulumiNullFieldException("resourceSliceCount"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy