com.pulumi.kubernetes.apps.v1.outputs.StatefulSetOrdinalsPatch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kubernetes Show documentation
Show all versions of kubernetes Show documentation
A Pulumi package for creating and managing Kubernetes resources.
// *** 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.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class StatefulSetOrdinalsPatch {
/**
* @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).
*
*/
private @Nullable Integer start;
private StatefulSetOrdinalsPatch() {}
/**
* @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);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(StatefulSetOrdinalsPatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer start;
public Builder() {}
public Builder(StatefulSetOrdinalsPatch defaults) {
Objects.requireNonNull(defaults);
this.start = defaults.start;
}
@CustomType.Setter
public Builder start(@Nullable Integer start) {
this.start = start;
return this;
}
public StatefulSetOrdinalsPatch build() {
final var _resultValue = new StatefulSetOrdinalsPatch();
_resultValue.start = start;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy