11
11
@ SuppressWarnings ("rawtypes" )
12
12
public class WorkflowReconcileResult {
13
13
14
- private List <DependentResource > reconciledDependents ;
15
- private List <DependentResource > notReadyDependents ;
16
- private Map <DependentResource , Exception > erroredDependents ;
17
- private Map <DependentResource , ReconcileResult > reconcileResults ;
14
+ private final List <DependentResource > reconciledDependents ;
15
+ private final List <DependentResource > notReadyDependents ;
16
+ private final Map <DependentResource , Exception > erroredDependents ;
17
+ private final Map <DependentResource , ReconcileResult > reconcileResults ;
18
+
19
+ public WorkflowReconcileResult (List <DependentResource > reconciledDependents ,
20
+ List <DependentResource > notReadyDependents ,
21
+ Map <DependentResource , Exception > erroredDependents ,
22
+ Map <DependentResource , ReconcileResult > reconcileResults ) {
23
+ this .reconciledDependents = reconciledDependents ;
24
+ this .notReadyDependents = notReadyDependents ;
25
+ this .erroredDependents = erroredDependents ;
26
+ this .reconcileResults = reconcileResults ;
27
+ }
18
28
19
29
public Map <DependentResource , Exception > getErroredDependents () {
20
30
return erroredDependents ;
21
31
}
22
32
23
- public WorkflowReconcileResult setErroredDependents (
24
- Map <DependentResource , Exception > erroredDependents ) {
25
- this .erroredDependents = erroredDependents ;
26
- return this ;
27
- }
28
-
29
33
public List <DependentResource > getReconciledDependents () {
30
34
return reconciledDependents ;
31
35
}
32
36
33
- public WorkflowReconcileResult setReconciledDependents (
34
- List <DependentResource > reconciledDependents ) {
35
- this .reconciledDependents = reconciledDependents ;
36
- return this ;
37
- }
38
-
39
37
public List <DependentResource > getNotReadyDependents () {
40
38
return notReadyDependents ;
41
39
}
42
40
43
- public WorkflowReconcileResult setNotReadyDependents (
44
- List <DependentResource > notReadyDependents ) {
45
- this .notReadyDependents = notReadyDependents ;
46
- return this ;
47
- }
48
-
41
+ @ SuppressWarnings ("unused" )
49
42
public Map <DependentResource , ReconcileResult > getReconcileResults () {
50
43
return reconcileResults ;
51
44
}
52
45
53
- public WorkflowReconcileResult setReconcileResults (
54
- Map <DependentResource , ReconcileResult > reconcileResults ) {
55
- this .reconcileResults = reconcileResults ;
56
- return this ;
57
- }
58
-
59
46
public void throwAggregateExceptionIfErrorsPresent () {
60
47
if (!erroredDependents .isEmpty ()) {
61
48
throw createFinalException ();
@@ -79,6 +66,7 @@ public boolean erroredDependentsExists() {
79
66
return !erroredDependents .isEmpty ();
80
67
}
81
68
69
+ @ SuppressWarnings ("unused" )
82
70
public boolean erroredDependentsExist () {
83
71
return !erroredDependents .isEmpty ();
84
72
}
0 commit comments