@CustomType.Setter
        public Builder rules(List<SuccessPolicyRule> rules) {
            if (rules == null) {
              throw new MissingRequiredPropertyException("SuccessPolicy", "rules");
            }
            this.rules = rules;
            return this;
        }
@return rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded &gt;= .spec.completions`. Once any of the rules are met, the &#34;SucceededCriteriaMet&#34; condition is added, and the lingering pods are removed. The terminal state for such a Job has the &#34;Complete&#34; condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.
sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/SuccessPolicy.java