forked from gitlab4j/gitlab4j-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContainerExpirationPolicy.java
109 lines (83 loc) · 2.38 KB
/
ContainerExpirationPolicy.java
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
package org.gitlab4j.api.models;
import java.io.Serializable;
import org.gitlab4j.models.utils.JacksonJson;
public class ContainerExpirationPolicy implements Serializable {
private static final long serialVersionUID = 1L;
private String cadence;
private Boolean enabled;
private Integer keepN;
private String olderThan;
private String nameRegex;
private String nameRegexKeep;
private String nextRunAt;
public String getCadence() {
return cadence;
}
public void setCadence(String cadence) {
this.cadence = cadence;
}
public ContainerExpirationPolicy withCadence(String cadence) {
this.cadence = cadence;
return this;
}
public Boolean getEnabled() {
return enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
public ContainerExpirationPolicy withEnabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
public Integer getKeepN() {
return keepN;
}
public void setKeepN(Integer keepN) {
this.keepN = keepN;
}
public ContainerExpirationPolicy withKeepN(Integer keepN) {
this.keepN = keepN;
return this;
}
public String getOlderThan() {
return olderThan;
}
public void setOlderThan(String olderThan) {
this.olderThan = olderThan;
}
public ContainerExpirationPolicy withOlderThan(String olderThan) {
this.olderThan = olderThan;
return this;
}
public String getNameRegex() {
return nameRegex;
}
public void setNameRegex(String nameRegex) {
this.nameRegex = nameRegex;
}
public ContainerExpirationPolicy withNameRegex(String nameRegex) {
this.nameRegex = nameRegex;
return this;
}
public String getNameRegexKeep() {
return nameRegexKeep;
}
public void setNameRegexKeep(String nameRegexKeep) {
this.nameRegexKeep = nameRegexKeep;
}
public ContainerExpirationPolicy withNameRegexKeep(String nameRegexKeep) {
this.nameRegexKeep = nameRegexKeep;
return this;
}
public String getNextRunAt() {
return nextRunAt;
}
public void setNextRunAt(String nextRunAt) {
this.nextRunAt = nextRunAt;
}
@Override
public String toString() {
return (JacksonJson.toJsonString(this));
}
}