Package org.gitlab4j.api.services
Class SlackService
- java.lang.Object
-
- org.gitlab4j.api.services.NotificationService
-
- org.gitlab4j.api.services.SlackService
-
public class SlackService extends NotificationService
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIDENTIAL_ISSUE_CHANNEL_PROP
static String
CONFIDENTIAL_NOTE_CHANNEL_PROP
static String
ISSUE_CHANNEL_PROP
static String
MERGE_REQUEST_CHANNEL_PROP
static String
NOTE_CHANNEL_PROP
static String
NOTIFY_ONLY_BROKEN_PIPELINES_PROP
static String
NOTIFY_ONLY_DEFAULT_BRANCH_PROP
static String
PIPELINE_CHANNEL_PROP
static String
PUSH_CHANNEL_PROP
static String
TAG_PUSH_CHANNEL_PROP
static String
USERNAME_PROP
static String
WEBHOOK_PROP
static String
WIKI_PAGE_CHANNEL_PROP
-
Constructor Summary
Constructors Constructor Description SlackService()
-
Method Summary
-
Methods inherited from class org.gitlab4j.api.services.NotificationService
getActive, getCommitEvents, getConfidentialIssuesEvents, getConfidentialNoteEvents, getCreatedAt, getId, getIssuesEvents, getJobEvents, getMergeRequestsEvents, getNoteEvents, getPipelineEvents, getProperties, getProperty, getProperty, getPushEvents, getTagPushEvents, getTitle, getUpdatedAt, getWikiPageEvents, setActive, setCommitEvents, setConfidentialIssuesEvents, setConfidentialNoteEvents, setCreatedAt, setId, setIssuesEvents, setJobEvents, setMergeRequestsEvents, setNoteEvents, setPipelineEvents, setProperties, setProperty, setPushEvents, setTagPushEvents, setTitle, setUpdatedAt, setWikiPageEvents, withCommitEvents, withConfidentialIssuesEvents, withConfidentialNoteEvents, withIssuesEvents, withJobEvents, withMergeRequestsEvents, withNoteEvents, withPipelineEvents, withPushEvents, withTagPushEvents, withWikiPageEvents
-
-
-
-
Field Detail
-
WEBHOOK_PROP
public static final String WEBHOOK_PROP
- See Also:
- Constant Field Values
-
USERNAME_PROP
public static final String USERNAME_PROP
- See Also:
- Constant Field Values
-
NOTIFY_ONLY_BROKEN_PIPELINES_PROP
public static final String NOTIFY_ONLY_BROKEN_PIPELINES_PROP
- See Also:
- Constant Field Values
-
NOTIFY_ONLY_DEFAULT_BRANCH_PROP
public static final String NOTIFY_ONLY_DEFAULT_BRANCH_PROP
- See Also:
- Constant Field Values
-
PUSH_CHANNEL_PROP
public static final String PUSH_CHANNEL_PROP
- See Also:
- Constant Field Values
-
ISSUE_CHANNEL_PROP
public static final String ISSUE_CHANNEL_PROP
- See Also:
- Constant Field Values
-
CONFIDENTIAL_ISSUE_CHANNEL_PROP
public static final String CONFIDENTIAL_ISSUE_CHANNEL_PROP
- See Also:
- Constant Field Values
-
MERGE_REQUEST_CHANNEL_PROP
public static final String MERGE_REQUEST_CHANNEL_PROP
- See Also:
- Constant Field Values
-
NOTE_CHANNEL_PROP
public static final String NOTE_CHANNEL_PROP
- See Also:
- Constant Field Values
-
CONFIDENTIAL_NOTE_CHANNEL_PROP
public static final String CONFIDENTIAL_NOTE_CHANNEL_PROP
- See Also:
- Constant Field Values
-
TAG_PUSH_CHANNEL_PROP
public static final String TAG_PUSH_CHANNEL_PROP
- See Also:
- Constant Field Values
-
PIPELINE_CHANNEL_PROP
public static final String PIPELINE_CHANNEL_PROP
- See Also:
- Constant Field Values
-
WIKI_PAGE_CHANNEL_PROP
public static final String WIKI_PAGE_CHANNEL_PROP
- See Also:
- Constant Field Values
-
-
Method Detail
-
withPushEvents
public SlackService withPushEvents(Boolean pushEvents)
-
withIssuesEvents
public SlackService withIssuesEvents(Boolean issuesEvents)
-
withConfidentialIssuesEvents
public SlackService withConfidentialIssuesEvents(Boolean confidentialIssuesEvents)
-
withMergeRequestsEvents
public SlackService withMergeRequestsEvents(Boolean mergeRequestsEvents)
-
withTagPushEvents
public SlackService withTagPushEvents(Boolean tagPushEvents)
-
withNoteEvents
public SlackService withNoteEvents(Boolean noteEvents)
-
withConfidentialNoteEvents
public SlackService withConfidentialNoteEvents(Boolean confidentialNoteEvents)
-
withPipelineEvents
public SlackService withPipelineEvents(Boolean pipelineEvents)
-
withWikiPageEvents
public SlackService withWikiPageEvents(Boolean wikiPageEvents)
-
withJobEvents
public SlackService withJobEvents(Boolean jobEvents)
-
getWebhook
public String getWebhook()
-
setWebhook
public void setWebhook(String webhook)
-
withWebhook
public SlackService withWebhook(String webhook)
-
getUsername
public String getUsername()
-
setUsername
public void setUsername(String username)
-
withUsername
public SlackService withUsername(String username)
-
getDefaultChannel
public String getDefaultChannel()
-
setDefaultChannel
public void setDefaultChannel(String defaultChannel)
-
withDefaultChannelk
public SlackService withDefaultChannelk(String defaultChannel)
-
getNotifyOnlyBrokenPipelines
public Boolean getNotifyOnlyBrokenPipelines()
-
setNotifyOnlyBrokenPipelines
public void setNotifyOnlyBrokenPipelines(Boolean notifyOnlyBrokenPipelines)
-
withNotifyOnlyBrokenPipelines
public SlackService withNotifyOnlyBrokenPipelines(Boolean notifyOnlyBrokenPipelines)
-
getNotifyOnlyDefaultBranch
public Boolean getNotifyOnlyDefaultBranch()
-
setNotifyOnlyDefaultBranch
public void setNotifyOnlyDefaultBranch(Boolean notifyOnlyDefaultBranch)
-
withNotifyOnlyDefaultBranch
public SlackService withNotifyOnlyDefaultBranch(Boolean notifyOnlyDefaultBranch)
-
getPushChannel
public String getPushChannel()
-
setPushChannel
public void setPushChannel(String pushChannel)
-
withPushChannel
public SlackService withPushChannel(String pushChannel)
-
getIssueChannel
public String getIssueChannel()
-
setIssueChannel
public void setIssueChannel(String issueChannel)
-
withIssueChannel
public SlackService withIssueChannel(String issueChannel)
-
getConfidentialIssueChannel
public String getConfidentialIssueChannel()
-
setConfidentialIssueChannel
public void setConfidentialIssueChannel(String confidentialIssueChannel)
-
withConfidentialIssueChannel
public SlackService withConfidentialIssueChannel(String confidentialIssueChannel)
-
getMergeRequestChannel
public String getMergeRequestChannel()
-
setMergeRequestChannel
public void setMergeRequestChannel(String mergeRequestChannel)
-
withMergeRequestChannel
public SlackService withMergeRequestChannel(String mergeRequestChannel)
-
getNoteChannel
public String getNoteChannel()
-
setNoteChannel
public void setNoteChannel(String noteChannel)
-
withNoteChannel
public SlackService withNoteChannel(String noteChannel)
-
getConfidentialNoteChannel
public String getConfidentialNoteChannel()
-
setConfidentialNoteChannel
public void setConfidentialNoteChannel(String noteChannel)
-
withConfidentialNoteChannel
public SlackService withConfidentialNoteChannel(String confidentialNoteChannel)
-
getTagPushChannel
public String getTagPushChannel()
-
setTagPushChannel
public void setTagPushChannel(String tagPushChannel)
-
withTagPushChannel
public SlackService withTagPushChannel(String tagPushChannel)
-
getPipelineChannel
public String getPipelineChannel()
-
setPipelineChannel
public void setPipelineChannel(String pipelineChannel)
-
withPipelineChannel
public SlackService withPipelineChannel(String pipelineChannel)
-
getWikiPageChannel
public String getWikiPageChannel()
-
setWikiPageChannel
public void setWikiPageChannel(String wikiPageChannel)
-
withWikiPageChannel
public SlackService withWikiPageChannel(String wikiPageChannel)
-
-