11package com .apiflows .model ;
22
3- import java .util .ArrayList ;
4- import java .util .List ;
3+ public class FailureAction extends Action {
54
6- public class FailureAction {
7-
8- private String type ;
9- private String workflowId ;
10- private String stepId ;
115 private Double retryAfter ;
126 private Integer retryLimit ;
13- private List <Criterion > criteria ;
14-
15- public String getType () {
16- return type ;
17- }
18-
19- public void setType (String type ) {
20- this .type = type ;
21- }
22-
23- public String getWorkflowId () {
24- return workflowId ;
25- }
26-
27- public void setWorkflowId (String workflowId ) {
28- this .workflowId = workflowId ;
29- }
30-
31- public String getStepId () {
32- return stepId ;
33- }
34-
35- public void setStepId (String stepId ) {
36- this .stepId = stepId ;
37- }
387
398 public Double getRetryAfter () {
409 return retryAfter ;
@@ -52,26 +21,23 @@ public void setRetryLimit(Integer retryLimit) {
5221 this .retryLimit = retryLimit ;
5322 }
5423
55- public List <Criterion > getCriteria () {
56- return criteria ;
57- }
58-
59- public void setCriteria (List <Criterion > criteria ) {
60- this .criteria = criteria ;
24+ public FailureAction name (String name ) {
25+ setName (name );
26+ return this ;
6127 }
6228
6329 public FailureAction type (String type ) {
64- this . type = type ;
30+ setType ( type ) ;
6531 return this ;
6632 }
6733
6834 public FailureAction stepId (String stepId ) {
69- this . stepId = stepId ;
35+ setStepId ( stepId ) ;
7036 return this ;
7137 }
7238
7339 public FailureAction workflowId (String workflowId ) {
74- this . workflowId = workflowId ;
40+ setWorkflowId ( workflowId ) ;
7541 return this ;
7642 }
7743
@@ -84,11 +50,4 @@ public FailureAction retryLimit(Integer retryLimit) {
8450 this .retryLimit = retryLimit ;
8551 return this ;
8652 }
87-
88- public void addCriteria (Criterion criterion ) {
89- if (this .criteria == null ) {
90- this .criteria = new ArrayList <>();
91- }
92- this .criteria .add (criterion );
93- }
9453}
0 commit comments