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

com.pulumi.kubernetes.apps.v1.inputs.StatefulSetOrdinalsArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0-alpha.1730750641
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.
 * 
 */
public final class StatefulSetOrdinalsArgs extends com.pulumi.resources.ResourceArgs {

    public static final StatefulSetOrdinalsArgs Empty = new StatefulSetOrdinalsArgs();

    /**
     * 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).
     * 
     */
    @Import(name="start")
    private @Nullable Output start;

    /**
     * @return 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 Optional> start() {
        return Optional.ofNullable(this.start);
    }

    private StatefulSetOrdinalsArgs() {}

    private StatefulSetOrdinalsArgs(StatefulSetOrdinalsArgs $) {
        this.start = $.start;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(StatefulSetOrdinalsArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private StatefulSetOrdinalsArgs $;

        public Builder() {
            $ = new StatefulSetOrdinalsArgs();
        }

        public Builder(StatefulSetOrdinalsArgs defaults) {
            $ = new StatefulSetOrdinalsArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param 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).
         * 
         * @return builder
         * 
         */
        public Builder start(@Nullable Output start) {
            $.start = start;
            return this;
        }

        /**
         * @param 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).
         * 
         * @return builder
         * 
         */
        public Builder start(Integer start) {
            return start(Output.of(start));
        }

        public StatefulSetOrdinalsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy