com.pulumi.kubernetes.batch.v1.outputs.PodFailurePolicy 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 com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.batch.v1.outputs.PodFailurePolicyRule;
import java.util.List;
import java.util.Objects;
@CustomType
public final class PodFailurePolicy {
/**
* @return A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.
*
*/
private List rules;
private PodFailurePolicy() {}
/**
* @return A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.
*
*/
public List rules() {
return this.rules;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PodFailurePolicy defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List rules;
public Builder() {}
public Builder(PodFailurePolicy defaults) {
Objects.requireNonNull(defaults);
this.rules = defaults.rules;
}
@CustomType.Setter
public Builder rules(List rules) {
if (rules == null) {
throw new MissingRequiredPropertyException("PodFailurePolicy", "rules");
}
this.rules = rules;
return this;
}
public Builder rules(PodFailurePolicyRule... rules) {
return rules(List.of(rules));
}
public PodFailurePolicy build() {
final var _resultValue = new PodFailurePolicy();
_resultValue.rules = rules;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy