Skip to content

Commit c8456d1

Browse files
correction
1 parent c7ff0b4 commit c8456d1

File tree

1 file changed

+115
-116
lines changed

1 file changed

+115
-116
lines changed
+115-116
Original file line numberDiff line numberDiff line change
@@ -1,116 +1,115 @@
1-
package org.gitlab4j.api.models;
2-
3-
import java.io.Serializable;
4-
import java.util.Date;
5-
6-
import org.gitlab4j.api.utils.JacksonJson;
7-
import org.gitlab4j.api.utils.JacksonJsonEnumHelper;
8-
9-
import com.fasterxml.jackson.annotation.JsonCreator;
10-
import com.fasterxml.jackson.annotation.JsonValue;
11-
12-
13-
public class Environment implements Serializable {
14-
private static final long serialVersionUID = 1L;
15-
16-
public enum EnvironmentState {
17-
AVAILABLE,
18-
STOPPED;
19-
20-
private static JacksonJsonEnumHelper<EnvironmentState> enumHelper =
21-
new JacksonJsonEnumHelper<>(EnvironmentState.class);
22-
23-
@JsonCreator
24-
public static EnvironmentState forValue(String value) {
25-
return enumHelper.forValue(value);
26-
}
27-
28-
@JsonValue
29-
public String toValue() {
30-
return (enumHelper.toString(this));
31-
}
32-
33-
@Override
34-
public String toString() {
35-
return (enumHelper.toString(this));
36-
}
37-
}
38-
39-
private Long id;
40-
private String name;
41-
private String slug;
42-
private String externalUrl;
43-
private String tier;
44-
private EnvironmentState state;
45-
private Deployment lastDeployment;
46-
private Date autoStopAt;
47-
48-
public Long getId() {
49-
return id;
50-
}
51-
52-
public void setId(Long id) {
53-
this.id = id;
54-
}
55-
56-
public String getName() {
57-
return name;
58-
}
59-
60-
public void setName(String name) {
61-
this.name = name;
62-
}
63-
64-
public String getSlug() {
65-
return slug;
66-
}
67-
68-
public void setSlug(String slug) {
69-
this.slug = slug;
70-
}
71-
72-
public String getExternalUrl() {
73-
return externalUrl;
74-
}
75-
76-
public void setExternalUrl(String externalUrl) {
77-
this.externalUrl = externalUrl;
78-
}
79-
80-
public String getTier() {
81-
return tier;
82-
}
83-
84-
public void setTier(String tier) {
85-
this.tier = tier;
86-
}
87-
88-
public EnvironmentState getState() {
89-
return state;
90-
}
91-
92-
public void setState(EnvironmentState state) {
93-
this.state = state;
94-
}
95-
96-
public Deployment getLastDeployment() {
97-
return lastDeployment;
98-
}
99-
100-
public void setLastDeployment(Deployment lastDeployment) {
101-
this.lastDeployment = lastDeployment;
102-
}
103-
104-
public Date getAutoStopAt() {
105-
return autoStopAt;
106-
}
107-
108-
public void setAutoStopAt(Date autoStopAt) {
109-
this.autoStopAt = autoStopAt;
110-
}
111-
112-
@Override
113-
public String toString() {
114-
return (JacksonJson.toJsonString(this));
115-
}
116-
}
1+
package org.gitlab4j.api.models;
2+
3+
import java.io.Serializable;
4+
import java.util.Date;
5+
6+
import org.gitlab4j.api.utils.JacksonJson;
7+
import org.gitlab4j.api.utils.JacksonJsonEnumHelper;
8+
9+
import com.fasterxml.jackson.annotation.JsonCreator;
10+
import com.fasterxml.jackson.annotation.JsonValue;
11+
12+
public class Environment implements Serializable {
13+
private static final long serialVersionUID = 1L;
14+
15+
public enum EnvironmentState {
16+
AVAILABLE,
17+
STOPPED;
18+
19+
private static JacksonJsonEnumHelper<EnvironmentState> enumHelper =
20+
new JacksonJsonEnumHelper<>(EnvironmentState.class);
21+
22+
@JsonCreator
23+
public static EnvironmentState forValue(String value) {
24+
return enumHelper.forValue(value);
25+
}
26+
27+
@JsonValue
28+
public String toValue() {
29+
return (enumHelper.toString(this));
30+
}
31+
32+
@Override
33+
public String toString() {
34+
return (enumHelper.toString(this));
35+
}
36+
}
37+
38+
private Long id;
39+
private String name;
40+
private String slug;
41+
private String externalUrl;
42+
private String tier;
43+
private EnvironmentState state;
44+
private Deployment lastDeployment;
45+
private Date autoStopAt;
46+
47+
public Long getId() {
48+
return id;
49+
}
50+
51+
public void setId(Long id) {
52+
this.id = id;
53+
}
54+
55+
public String getName() {
56+
return name;
57+
}
58+
59+
public void setName(String name) {
60+
this.name = name;
61+
}
62+
63+
public String getSlug() {
64+
return slug;
65+
}
66+
67+
public void setSlug(String slug) {
68+
this.slug = slug;
69+
}
70+
71+
public String getExternalUrl() {
72+
return externalUrl;
73+
}
74+
75+
public void setExternalUrl(String externalUrl) {
76+
this.externalUrl = externalUrl;
77+
}
78+
79+
public String getTier() {
80+
return tier;
81+
}
82+
83+
public void setTier(String tier) {
84+
this.tier = tier;
85+
}
86+
87+
public EnvironmentState getState() {
88+
return state;
89+
}
90+
91+
public void setState(EnvironmentState state) {
92+
this.state = state;
93+
}
94+
95+
public Deployment getLastDeployment() {
96+
return lastDeployment;
97+
}
98+
99+
public void setLastDeployment(Deployment lastDeployment) {
100+
this.lastDeployment = lastDeployment;
101+
}
102+
103+
public Date getAutoStopAt() {
104+
return autoStopAt;
105+
}
106+
107+
public void setAutoStopAt(Date autoStopAt) {
108+
this.autoStopAt = autoStopAt;
109+
}
110+
111+
@Override
112+
public String toString() {
113+
return (JacksonJson.toJsonString(this));
114+
}
115+
}

0 commit comments

Comments
 (0)