forked from gitlab4j/gitlab4j-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDeploymentEvent.java
135 lines (104 loc) · 3.01 KB
/
DeploymentEvent.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
package org.gitlab4j.api.webhook;
import org.gitlab4j.api.models.User;
import org.gitlab4j.api.utils.JacksonJson;
public class DeploymentEvent extends AbstractEvent {
private static final long serialVersionUID = 1L;
public static final String X_GITLAB_EVENT = "Deployment Hook";
public static final String OBJECT_KIND = "deployment";
private String status;
private String statusChangedAt;
private Long deployableId;
private Long deploymentId;
private String deployableUrl;
private String environment;
private EventProject project;
private String shortSha;
private User user;
private String userUrl;
private String commitUrl;
private String commitTitle;
@Override
public String getObjectKind() {
return (OBJECT_KIND);
}
public void setObjectKind(String objectKind) {
if (!OBJECT_KIND.equals(objectKind))
throw new RuntimeException("Invalid object_kind (" + objectKind + "), must be '" + OBJECT_KIND + "'");
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getStatusChangedAt() {
return statusChangedAt;
}
public void setStatusChangedAt(String statusChangedAt) {
this.statusChangedAt = statusChangedAt;
}
public Long getDeployableId() {
return deployableId;
}
public void setDeployableId(Long deployableId) {
this.deployableId = deployableId;
}
public Long getDeploymentId() {
return deploymentId;
}
public void setDeploymentId(Long deploymentId) {
this.deploymentId = deploymentId;
}
public String getDeployableUrl() {
return deployableUrl;
}
public void setDeployableUrl(String deployableUrl) {
this.deployableUrl = deployableUrl;
}
public String getEnvironment() {
return environment;
}
public void setEnvironment(String environment) {
this.environment = environment;
}
public EventProject getProject() {
return project;
}
public void setProject(EventProject project) {
this.project = project;
}
public String getShortSha() {
return shortSha;
}
public void setShortSha(String shortSha) {
this.shortSha = shortSha;
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public String getUserUrl() {
return userUrl;
}
public void setUserUrl(String userUrl) {
this.userUrl = userUrl;
}
public String getCommitUrl() {
return commitUrl;
}
public void setCommitUrl(String commitUrl) {
this.commitUrl = commitUrl;
}
public String getCommitTitle() {
return commitTitle;
}
public void setCommitTitle(String commitTitle) {
this.commitTitle = commitTitle;
}
@Override
public String toString() {
return (JacksonJson.toJsonString(this));
}
}