Class PodFailurePolicyOnExitCodesRequirement.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement.Builder
-
- Enclosing class:
- PodFailurePolicyOnExitCodesRequirement
public static class PodFailurePolicyOnExitCodesRequirement.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodFailurePolicyOnExitCodesRequirement.Builder
addToValues(java.lang.Number addToValues)
PodFailurePolicyOnExitCodesRequirement
build()
PodFailurePolicyOnExitCodesRequirement.Builder
clearValues()
PodFailurePolicyOnExitCodesRequirement.Builder
containerName(java.lang.String containerName)
Restricts the check for exit codes to the container with the specified name.PodFailurePolicyOnExitCodesRequirement.Builder
operator(@NonNull java.lang.String operator)
Represents the relationship between the container exit code(s) and the specified values.java.lang.String
toString()
PodFailurePolicyOnExitCodesRequirement.Builder
values(java.util.Collection<? extends java.lang.Number> values)
-
-
-
Method Detail
-
containerName
public PodFailurePolicyOnExitCodesRequirement.Builder containerName(java.lang.String containerName)
Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.- Returns:
this
.
-
operator
public PodFailurePolicyOnExitCodesRequirement.Builder operator(@NonNull @NonNull java.lang.String operator)
Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are:- In: the requirement is satisfied if at least one container exit code
(might be multiple if there are multiple containers not restricted
by the 'containerName' field) is in the set of specified values.
- NotIn: the requirement is satisfied if at least one container exit code
(might be multiple if there are multiple containers not restricted
by the 'containerName' field) is not in the set of specified values.
Additional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.
- Returns:
this
.
-
addToValues
public PodFailurePolicyOnExitCodesRequirement.Builder addToValues(java.lang.Number addToValues)
-
values
public PodFailurePolicyOnExitCodesRequirement.Builder values(java.util.Collection<? extends java.lang.Number> values)
-
clearValues
public PodFailurePolicyOnExitCodesRequirement.Builder clearValues()
-
build
public PodFailurePolicyOnExitCodesRequirement build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-