com.pulumi.kubernetes.batch.v1.outputs.SuccessPolicyRulePatch 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.batch.v1.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class SuccessPolicyRulePatch {
/**
* @return succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is "1-4", succeededCount is "3", and completed indexes are "1", "3", and "5", the Job isn't declared as succeeded because only "1" and "3" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer.
*
*/
private @Nullable Integer succeededCount;
/**
* @return succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to ".spec.completions-1" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". When this field is null, this field doesn't default to any value and is never evaluated at any time.
*
*/
private @Nullable String succeededIndexes;
private SuccessPolicyRulePatch() {}
/**
* @return succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is "1-4", succeededCount is "3", and completed indexes are "1", "3", and "5", the Job isn't declared as succeeded because only "1" and "3" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer.
*
*/
public Optional succeededCount() {
return Optional.ofNullable(this.succeededCount);
}
/**
* @return succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to ".spec.completions-1" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". When this field is null, this field doesn't default to any value and is never evaluated at any time.
*
*/
public Optional succeededIndexes() {
return Optional.ofNullable(this.succeededIndexes);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SuccessPolicyRulePatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer succeededCount;
private @Nullable String succeededIndexes;
public Builder() {}
public Builder(SuccessPolicyRulePatch defaults) {
Objects.requireNonNull(defaults);
this.succeededCount = defaults.succeededCount;
this.succeededIndexes = defaults.succeededIndexes;
}
@CustomType.Setter
public Builder succeededCount(@Nullable Integer succeededCount) {
this.succeededCount = succeededCount;
return this;
}
@CustomType.Setter
public Builder succeededIndexes(@Nullable String succeededIndexes) {
this.succeededIndexes = succeededIndexes;
return this;
}
public SuccessPolicyRulePatch build() {
final var _resultValue = new SuccessPolicyRulePatch();
_resultValue.succeededCount = succeededCount;
_resultValue.succeededIndexes = succeededIndexes;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy