Skip to content

Commit 4c4349f

Browse files
committed
Initial commit (#401).
1 parent 3404b18 commit 4c4349f

File tree

1 file changed

+244
-0
lines changed

1 file changed

+244
-0
lines changed
Lines changed: 244 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,244 @@
1+
package org.gitlab4j.api.services;
2+
3+
import com.fasterxml.jackson.annotation.JsonIgnore;
4+
5+
public class MattermostService extends NotificationService {
6+
7+
private String defaultChannel;
8+
9+
public MattermostService withPushEvents(Boolean pushEvents) {
10+
return withPushEvents(pushEvents, this);
11+
}
12+
13+
public MattermostService withIssuesEvents(Boolean issuesEvents) {
14+
return withIssuesEvents(issuesEvents, this);
15+
}
16+
17+
public MattermostService withConfidentialIssuesEvents(Boolean confidentialIssuesEvents) {
18+
return withConfidentialIssuesEvents(confidentialIssuesEvents, this);
19+
}
20+
21+
public MattermostService withMergeRequestsEvents(Boolean mergeRequestsEvents) {
22+
return withMergeRequestsEvents(mergeRequestsEvents, this);
23+
}
24+
25+
public MattermostService withTagPushEvents(Boolean tagPushEvents) {
26+
return withTagPushEvents(tagPushEvents, this);
27+
}
28+
29+
public MattermostService withNoteEvents(Boolean noteEvents) {
30+
return withNoteEvents(noteEvents, this);
31+
}
32+
33+
public MattermostService withConfidentialNoteEvents(Boolean confidentialNoteEvents) {
34+
return withConfidentialNoteEvents(confidentialNoteEvents, this);
35+
}
36+
37+
public MattermostService withPipelineEvents(Boolean pipelineEvents) {
38+
return withPipelineEvents(pipelineEvents, this);
39+
}
40+
41+
public MattermostService withWikiPageEvents(Boolean wikiPageEvents) {
42+
return withWikiPageEvents(wikiPageEvents, this);
43+
}
44+
45+
public MattermostService withJobEvents(Boolean jobEvents) {
46+
return withPipelineEvents(jobEvents, this);
47+
}
48+
49+
@JsonIgnore
50+
public String getWebhook() {
51+
return ((String) getProperty(WEBHOOK_PROP));
52+
}
53+
54+
public void setWebhook(String webhook) {
55+
setProperty(WEBHOOK_PROP, webhook);
56+
}
57+
58+
public MattermostService withWebhook(String webhook) {
59+
setWebhook(webhook);
60+
return (this);
61+
}
62+
63+
@JsonIgnore
64+
public String getUsername() {
65+
return ((String) getProperty(USERNAME_PROP));
66+
}
67+
68+
public void setUsername(String username) {
69+
setProperty(USERNAME_PROP, username);
70+
}
71+
72+
public MattermostService withUsername(String username) {
73+
setUsername(username);
74+
return (this);
75+
}
76+
77+
@JsonIgnore
78+
public String getDefaultChannel() {
79+
return (defaultChannel);
80+
}
81+
82+
public void setDefaultChannel(String defaultChannel) {
83+
this.defaultChannel = defaultChannel;
84+
}
85+
86+
public MattermostService withDefaultChannelk(String defaultChannel) {
87+
this.defaultChannel = defaultChannel;
88+
return (this);
89+
}
90+
91+
@JsonIgnore
92+
public Boolean getNotifyOnlyBrokenPipelines() {
93+
return ((Boolean) getProperty(NOTIFY_ONLY_BROKEN_PIPELINES_PROP, Boolean.FALSE));
94+
}
95+
96+
public void setNotifyOnlyBrokenPipelines(Boolean notifyOnlyBrokenPipelines) {
97+
setProperty(NOTIFY_ONLY_BROKEN_PIPELINES_PROP, notifyOnlyBrokenPipelines);
98+
}
99+
100+
public MattermostService withNotifyOnlyBrokenPipelines(Boolean notifyOnlyBrokenPipelines) {
101+
setNotifyOnlyBrokenPipelines(notifyOnlyBrokenPipelines);
102+
return (this);
103+
}
104+
105+
@JsonIgnore
106+
public Boolean getNotifyOnlyDefaultBranch() {
107+
return ((Boolean) getProperty(NOTIFY_ONLY_DEFAULT_BRANCH_PROP, Boolean.FALSE));
108+
}
109+
110+
public void setNotifyOnlyDefaultBranch(Boolean notifyOnlyDefaultBranch) {
111+
setProperty(NOTIFY_ONLY_DEFAULT_BRANCH_PROP, notifyOnlyDefaultBranch);
112+
}
113+
114+
public MattermostService withNotifyOnlyDefaultBranch(Boolean notifyOnlyDefaultBranch) {
115+
setNotifyOnlyDefaultBranch(notifyOnlyDefaultBranch);
116+
return (this);
117+
}
118+
119+
@JsonIgnore
120+
public String getPushChannel() {
121+
return ((String) getProperty(PUSH_CHANNEL_PROP));
122+
}
123+
124+
public void setPushChannel(String pushChannel) {
125+
setProperty(PUSH_CHANNEL_PROP, pushChannel);
126+
}
127+
128+
public MattermostService withPushChannel(String pushChannel) {
129+
setPushChannel(pushChannel);
130+
return (this);
131+
}
132+
133+
@JsonIgnore
134+
public String getIssueChannel() {
135+
return ((String) getProperty(ISSUE_CHANNEL_PROP));
136+
}
137+
138+
public void setIssueChannel(String issueChannel) {
139+
setProperty(ISSUE_CHANNEL_PROP, issueChannel);
140+
}
141+
142+
public MattermostService withIssueChannel(String issueChannel) {
143+
setIssueChannel(issueChannel);
144+
return (this);
145+
}
146+
147+
@JsonIgnore
148+
public String getConfidentialIssueChannel() {
149+
return ((String) getProperty(CONFIDENTIAL_ISSUE_CHANNEL_PROP));
150+
}
151+
152+
public void setConfidentialIssueChannel(String confidentialIssueChannel) {
153+
setProperty(CONFIDENTIAL_ISSUE_CHANNEL_PROP, confidentialIssueChannel);
154+
}
155+
156+
public MattermostService withConfidentialIssueChannel(String confidentialIssueChannel) {
157+
setConfidentialIssueChannel(confidentialIssueChannel);
158+
return (this);
159+
}
160+
161+
@JsonIgnore
162+
public String getMergeRequestChannel() {
163+
return ((String) getProperty(MERGE_REQUEST_CHANNEL_PROP));
164+
}
165+
166+
public void setMergeRequestChannel(String mergeRequestChannel) {
167+
setProperty(MERGE_REQUEST_CHANNEL_PROP, mergeRequestChannel);
168+
}
169+
170+
public MattermostService withMergeRequestChannel(String mergeRequestChannel) {
171+
setMergeRequestChannel(mergeRequestChannel);
172+
return (this);
173+
}
174+
175+
@JsonIgnore
176+
public String getNoteChannel() {
177+
return ((String) getProperty(NOTE_CHANNEL_PROP));
178+
}
179+
180+
public void setNoteChannel(String noteChannel) {
181+
setProperty(NOTE_CHANNEL_PROP, noteChannel);
182+
}
183+
184+
public MattermostService withNoteChannel(String noteChannel) {
185+
setNoteChannel(noteChannel);
186+
return (this);
187+
}
188+
189+
@JsonIgnore
190+
public String getConfidentialNoteChannel() {
191+
return ((String) getProperty(CONFIDENTIAL_NOTE_CHANNEL_PROP));
192+
}
193+
194+
public void setConfidentialNoteChannel(String noteChannel) {
195+
setProperty(NOTE_CHANNEL_PROP, noteChannel);
196+
}
197+
198+
public MattermostService withConfidentialNoteChannel(String confidentialNoteChannel) {
199+
setConfidentialNoteChannel(confidentialNoteChannel);
200+
return (this);
201+
}
202+
203+
@JsonIgnore
204+
public String getTagPushChannel() {
205+
return ((String) getProperty(TAG_PUSH_CHANNEL_PROP));
206+
}
207+
208+
public void setTagPushChannel(String tagPushChannel) {
209+
setProperty(TAG_PUSH_CHANNEL_PROP, tagPushChannel);
210+
}
211+
212+
public MattermostService withTagPushChannel(String tagPushChannel) {
213+
setTagPushChannel(tagPushChannel);
214+
return (this);
215+
}
216+
217+
@JsonIgnore
218+
public String getPipelineChannel() {
219+
return ((String) getProperty(PIPELINE_CHANNEL_PROP));
220+
}
221+
222+
public void setPipelineChannel(String pipelineChannel) {
223+
setProperty(PIPELINE_CHANNEL_PROP, pipelineChannel);
224+
}
225+
226+
public MattermostService withPipelineChannel(String pipelineChannel) {
227+
setPipelineChannel(pipelineChannel);
228+
return (this);
229+
}
230+
231+
@JsonIgnore
232+
public String getWikiPageChannel() {
233+
return ((String) getProperty(WIKI_PAGE_CHANNEL_PROP));
234+
}
235+
236+
public void setWikiPageChannel(String wikiPageChannel) {
237+
setProperty(WIKI_PAGE_CHANNEL_PROP, wikiPageChannel);
238+
}
239+
240+
public MattermostService withWikiPageChannel(String wikiPageChannel) {
241+
setWikiPageChannel(wikiPageChannel);
242+
return (this);
243+
}
244+
}

0 commit comments

Comments
 (0)