-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFailureAction.java
More file actions
94 lines (73 loc) · 1.96 KB
/
FailureAction.java
File metadata and controls
94 lines (73 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
package com.apiflows.model;
import java.util.ArrayList;
import java.util.List;
public class FailureAction {
private String type;
private String workflowId;
private String stepId;
private Double retryAfter;
private Integer retryLimit;
private List<Criterion> criteria;
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getWorkflowId() {
return workflowId;
}
public void setWorkflowId(String workflowId) {
this.workflowId = workflowId;
}
public String getStepId() {
return stepId;
}
public void setStepId(String stepId) {
this.stepId = stepId;
}
public Double getRetryAfter() {
return retryAfter;
}
public void setRetryAfter(Double retryAfter) {
this.retryAfter = retryAfter;
}
public Integer getRetryLimit() {
return retryLimit;
}
public void setRetryLimit(Integer retryLimit) {
this.retryLimit = retryLimit;
}
public List<Criterion> getCriteria() {
return criteria;
}
public void setCriteria(List<Criterion> criteria) {
this.criteria = criteria;
}
public FailureAction type(String type) {
this.type = type;
return this;
}
public FailureAction stepId(String stepId) {
this.stepId = stepId;
return this;
}
public FailureAction workflowId(String workflowId) {
this.workflowId = workflowId;
return this;
}
public FailureAction retryAfter(Double retryAfter) {
this.retryAfter = retryAfter;
return this;
}
public FailureAction retryLimit(Integer retryLimit) {
this.retryLimit = retryLimit;
return this;
}
public void addCriteria(Criterion criterion) {
if(this.criteria == null) {
this.criteria = new ArrayList<>();
}
this.criteria.add(criterion);
}
}