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

com.pulumi.kubernetes.apps.v1.kotlin.inputs.StatefulSetOrdinalsArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.apps.v1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.apps.v1.inputs.StatefulSetOrdinalsArgs.builder
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.
 * @property start start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:
 *   [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).
 * If unset, defaults to 0. Replica indices will be in the range:
 *   [0, .spec.replicas).
 */
public data class StatefulSetOrdinalsArgs(
    public val start: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.apps.v1.inputs.StatefulSetOrdinalsArgs =
        com.pulumi.kubernetes.apps.v1.inputs.StatefulSetOrdinalsArgs.builder()
            .start(start?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [StatefulSetOrdinalsArgs].
 */
@PulumiTagMarker
public class StatefulSetOrdinalsArgsBuilder internal constructor() {
    private var start: Output? = null

    /**
     * @param value start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:
     *   [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).
     * If unset, defaults to 0. Replica indices will be in the range:
     *   [0, .spec.replicas).
     */
    @JvmName("qqvjwfuxqvfwprja")
    public suspend fun start(`value`: Output) {
        this.start = value
    }

    /**
     * @param value start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:
     *   [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).
     * If unset, defaults to 0. Replica indices will be in the range:
     *   [0, .spec.replicas).
     */
    @JvmName("cbqprvrrfjmednjk")
    public suspend fun start(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.start = mapped
    }

    internal fun build(): StatefulSetOrdinalsArgs = StatefulSetOrdinalsArgs(
        start = start,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy