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 package org.rundeck.api.domain;
26
27 import java.util.*;
28
29
30
31
32
33
34
35
36 public class RundeckJobDeleteBulk implements Iterable<RundeckJobDelete> {
37 private List<RundeckJobDelete> results;
38 private int requestCount;
39 private boolean allsuccessful;
40
41 public RundeckJobDeleteBulk(List<RundeckJobDelete> results, int requestCount, boolean allsuccessful) {
42 this.results = results;
43 this.requestCount = requestCount;
44 this.allsuccessful = allsuccessful;
45 }
46
47 public List<RundeckJobDelete> getResults() {
48 return results;
49 }
50
51
52
53
54 public int getRequestCount() {
55 return requestCount;
56 }
57
58
59
60
61 public boolean isAllsuccessful() {
62 return allsuccessful;
63 }
64
65 @Override
66 public Iterator<RundeckJobDelete> iterator() {
67 if(null!=results){
68 return results.iterator();
69 }else{
70 return null;
71 }
72 }
73
74 @Override
75 public String toString() {
76 return "RundeckJobDeleteBulk{" +
77 "results=" + results +
78 ", requestCount=" + requestCount +
79 ", allsuccessful=" + allsuccessful +
80 '}';
81 }
82 }