Skip to content

Commit 5249145

Browse files
committed
Adding setters for webhookUrl in Slack
1 parent ce9d3d4 commit 5249145

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

  • src/main/java/in/ashwanthkumar/slack/webhook

src/main/java/in/ashwanthkumar/slack/webhook/Slack.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ public Slack parse(String parse) {
9696
return this;
9797
}
9898

99+
/**
100+
* Update the webhook url of the underlying Slack service
101+
* @param webhookUrl
102+
* @return
103+
*/
104+
public Slack setWebhookUrl(String webhookUrl) {
105+
this.webhookUrl = webhookUrl;
106+
return this;
107+
}
108+
99109
/**
100110
* Publishes messages to Slack Webhook
101111
*

0 commit comments

Comments
 (0)